Skip to main content
Answer

Relationships between custom shapes

  • April 11, 2025
  • 1 reply
  • 49 views

Forum|alt.badge.img+3

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.

Best answer by Connor B

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.

Comments

Connor B
Forum|alt.badge.img+2
  • Lucid product team
  • Answer
  • April 22, 2025

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.