<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 6/19/2020 7:41 AM, Hilaire Fernandes via Cuis-dev wrote:
<blockquote cite="mid:5f78ec17-a6ca-d524-9301-6f289dfa65ab@drgeo.eu"
type="cite">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
...
<p>Juan, about my request. An intermediate step to the whole
Vector things for the Cuis display is a kind of PasteUpMorph
accepting sub morphs directly rendered with vectorCanvas
instance. I will be the first client with DrGeo to test and to
use it. It could be a next step to Dyanbook display too.</p>
<p>Hilaire<br>
</p>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://pouet.chapril.org/@hilaire">https://pouet.chapril.org/@hilaire</a></pre>
</blockquote>
<br>
Ok. Try the attached files. I'm not really happy with the
implementation. The design of Morphic allows for different drawing
canvases, but not really for switching between them during drawing.
So, what I'm sending here is rather hacky.<br>
<br>
Still, you can try the script below. Please set a TrueType font
before trying this. Also, do Feature require: 'SVG'. Try this is an
image without unsaved work. It is likely you'll need to kill it, for
instance by using the halos.<br>
<br>
w _ VectorGraphicsPasteUpMorph new openInWorld morphExtent:
1000@800. <br>
[<br>
[<br>
m _ SVGMainMorph fromFileNamed:
'VectorGraphics/SVGSamples/lionx.svg'.<br>
] on: SVGWarning do: [ :warning | warning print. warning resume ]<br>
] on: PathCommandError do: [ :error | error print. error return ].<br>
w addMorph: m.<br>
w addMorph: EllipseMorph new.<br>
w addMorph: BorderedRectMorph new.<br>
w addMorph: RectangleLikeMorph new.<br>
<br>
I hope this helps you get a feel of what can be done.<br>
<br>
Cheers,<br>
<pre class="moz-signature" cols="72">--
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis-smalltalk.org">www.cuis-smalltalk.org</a>
<a class="moz-txt-link-freetext" href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a>
<a class="moz-txt-link-freetext" href="https://github.com/jvuletich">https://github.com/jvuletich</a>
<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/juan-vuletich-75611b3">https://www.linkedin.com/in/juan-vuletich-75611b3</a>
@JuanVuletich</pre>
</body>
</html>