<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Hilaire,<br>
<br>
On 8/8/2020 4:17 PM, Hilaire Fernandes via Cuis-dev wrote:
<blockquote cite="mid:64f3e848-2b6c-9cd2-96c3-d984e9c5cb50@drgeo.eu"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div class="moz-cite-prefix">Le 07/08/2020 à 02:38, Juan Vuletich
via Cuis-dev a écrit :<br>
</div>
<blockquote type="cite" cite="mid:5F2CB0AE.4000808@jvuletich.org">
<div class="moz-text-html" lang="x-unicode">
<blockquote
cite="mid:1c9cc596-2388-09d5-7245-b2241f998893@drgeo.eu"
type="cite">
<p><font size="+1"> </font></p>
<p><font size="+1">- Looking at Clock morph source, it looks
you can make your origin point whatever you want, is it
that ?</font></p>
</blockquote>
<br>
Yep. Today 0@0 is the center of rotation, but we could make
that more flexible.<br>
</div>
</blockquote>
<p>I wrongly expressed myself. Look at the drawOn: method of
ClocklMorph, I understand line drawing starting at 0@0 is the
center of the morph area. While it isued to be at the top left
corner of the morph area.<br>
</p>
</blockquote>
<br>
Yes and no. The good part is that the area is defined by the morph
itself. Consider this example:<br>
<br>
Morph subclass: #BezierExample01<br>
instanceVariableNames: ''<br>
classVariableNames: ''<br>
poolDictionaries: ''<br>
category: 'VectorGraphics-Experiments'!<br>
<br>
drawOn: aCanvas<br>
aCanvas strokeWidth: 40 color: (Color black alpha: 0.7) do: [<br>
aCanvas cubicBezier: {-100@50. 150@300. 300@400. 300@100} ]<br>
<br>
That's all it is needed! Try it. The morph, in its @drawOn: method,
decides what space it uses. The position of 0@0 is a consequence of
where the morph decides to draw itself in its own coordinate system.
The framework handles all damage repair and coordinates conversions
for you.<br>
<br>
<blockquote cite="mid:64f3e848-2b6c-9cd2-96c3-d984e9c5cb50@drgeo.eu"
type="cite">
<p> </p>
<blockquote type="cite" cite="mid:5F2CB0AE.4000808@jvuletich.org">
<div class="moz-text-html" lang="x-unicode">
<blockquote
cite="mid:1c9cc596-2388-09d5-7245-b2241f998893@drgeo.eu"
type="cite">
<p><font size="+1"> </font></p>
<p><font size="+1">- With my Polygon Morph, I still have the
same issue I described in my previous sources (see
attached cs)<br>
</font></p>
</blockquote>
<br>
Oh, yes. Now I got it. Fixed too.<br>
</div>
</blockquote>
Did you commit? Because the issue is still there.<br>
</blockquote>
<br>
<br>
Cuis will not modify any code without you telling it to. So you need
to load all the updated code in your image.<br>
<br>
Be sure to:<br>
- Pull the repo<br>
- Install all the numbered updates to the base image (World /
Changes / Install New Updates is usually enough, but if your folder
structure is not the recommended in the docs, I can't be sure all
updates will be loaded. Same if changes you made to your image
modify this behavior)<br>
- Re install any packages that might have changed. VectorGraphics is
now at v1.169. You can check this near the start of the
VectorGraphics.pock.st file (it is human legible text in standard
chunk format). To see what version you have loaded, World / Open /
Installed Packages. The way to reinstall a package is to point at it
in the FileList, and click on [Install Package].<br>
<br>
Hope this helps.<br>
<br>
<blockquote cite="mid:64f3e848-2b6c-9cd2-96c3-d984e9c5cb50@drgeo.eu"
type="cite">
<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></pre>
</blockquote>
<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>