Skip to main content

Hello, I'm creating a custom extension for Lucid and trying to find a solution for customizing relationships between custom shapes.

I am thinking of Link points for custom shapes.

Let's say when I start dragging a link from the Target shape, all the connection points or link points are removed from all the custom shapes on the page except the Source shape. So I can connect only these two shapes.

Is it possible to dynamically change the connection points of a custom shape or remove them at all? And is there an event that listens to the start of dragging the link?

I would appreciate any help and advise.

Hello Darina,

 

Right now, we do not support the ability to remove link points from custom shapes. Also, we only have a click handler for custom shapes. If you wanted to be able to only create lines to other custom shapes, you should be able to use modals/panels when you click on a custom shape, and then add buttons to create connections between other custom shapes. I know this is side-stepping Lucid’s built it line dragging functionality, but it might help you achieve your goal nonetheless.

 

Let me know if you have any other questions.


Reply