[Cuis-dev] connectors
Luciano Notarfrancesco
luchiano at gmail.com
Sat Nov 8 11:14:22 PST 2025
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.
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 :)
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 */*/*.pck.st
> */*/*/*.pck.st
>
> HTH,
> -KenD
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20251109/57730f9f/attachment.htm>
More information about the Cuis-dev
mailing list