[Cuis-dev] connectors

Juan Vuletich juan at cuis.st
Wed Nov 19 06:03:06 PST 2025


Hi Folks,

I'm sorry for being late to the party!

(inline)

On 2025-11-08 4:14 PM, Luciano Notarfrancesco via Cuis-dev wrote:
> Yes Ken, that’s probably the reason, things that we implement as 
> morphs tend to have a clear notion of “position”. Graph edges 
> connecting two vertices and wires connecting two morphs, which are 
> actually kind of the same idea, is the only example I’ve seen AFAIR 
> where there’s no natural position, because they are just line segments 
> between two morphs, they depend on the positions of these two morphs 
> instead of having their own position.

When I designed the hierarchy, it seemed to make sense to have morphs 
without their own location, that just live in the owner's space and 
coordinate system. The example I thought about was a function like 
sin(x). It doesn't make sense for it to do anything but one cycle in 
[1..2*pi] with values in [-1..1].

I think your example is way more useful though.

>
> I’ve solved the issue tho, I got it working. The drag & drop (for 
> connecting wires) was also kind if confusing and took me a couple of 
> hours, until I found all the messages that I needed to implement in 
> order to make it work (although I did this before, I guess forgot the 
> details, and morphic changed too)… but it’s finally working, and looks 
> fantastic with antialiased vector graphics :)

Would you consider making these into a package of their own? It is not 
only useful, but also a good example of Morphic programming.

Thanks!

>
> On Sat, Nov 8, 2025 at 23:28 <ken.dickey at whidbey.com> wrote:
>
>     On 2025-11-08 04:04, Luciano Notarfrancesco via Cuis-dev wrote:
>
>     > BTW, a few years ago, for drawing graphs I made GraphEdgeMorph
>     subclass
>     > of Morph, and it works but no one seems to do that (the only
>     subclass
>     > of Morph in the base image is PlacedMorph), is there a reason
>     for this?
>     > Does anyone here have subclasses of Morph in their projects?
>
>     I think that most people want Morph location.
>
>     Interesting to look at package use:
>
>     Cuis-Smalltalk[==> grep -s "Morph subclass:" */*.pck.st
>     <http://pck.st> */*/*.pck.st <http://pck.st>
>     */*/*/*.pck.st <http://pck.st>
>
>     HTH,
>     -KenD
>
>
-- 
Juan Vuletich
www.cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20251119/9ef9bda4/attachment.htm>


More information about the Cuis-dev mailing list