Attaching lines to specific magnets through the GUI?

Is there a GUI route to attaching lines to specific magnets (so that the line doesn’t flip to the nearest alternative magnet when a shape position changes) ?

In omniJS we can do this by assigning the indices of particular magnets to the .headMagnet and/or .tailMagnet properties of a line.

Is there also a GUI route to doing this manually ?

Certainly! When connecting a line to a shape (either by creating a new line with the line tool or by moving a line’s endpoint with the selection tool), you’ll see the shape’s magnets light up whenever the mouse hovers over it. You can move the mouse directly over any of the shape’s magnets to connect the line to that specific magnet rather than connecting it to the shape itself.

1 Like