Skip to main content

Hi,

I am working on a programmatic diagramming tool which draws shapes and connects them with lines using the JSON standard import.

The shapes do not overlap with each other. I use shape endpoints for the lines, and elbow style. But the lines always cross over other boxes, making the diagram look very unclean. I am trying to make the lines avoid other shapes (go around them).

Is there a way to programmatically do this with the Lucid API?

Also, when I open the diagram in Lucid there is the option to “tidy up” the diagram. Is there a way to do this with the Lucid API?

If anyone has a solution, I would appreciate it!

The line between App A and App B crosses over App G

 

Hi miamust,

Thanks for reaching out! After reviewing your request, I can confirm that our API does not currently support the functionality you're looking for, specifically:

  • Automatically preventing lines from intersecting shapes.

  • Tidying up a board via our REST API endpoints.

I understand that this may be disappointing. While we don't have a direct solution for these cases, you can still control the endpoint position of lines by using our API. This can help with some aspects of board layout. You can find more details on how to do this in our documentation (see here).

We'll also pass your feedback along to the rest of our product team, as we're always looking for ways to improve our API.

Please let us know if you have any other questions.