jgraph / drawio

draw.io is a JavaScript, client-side editor for general diagramming.
https://www.drawio.com
Other
41.35k stars 7.67k forks source link

Polar/radial grid #4615

Closed slyakh closed 2 months ago

slyakh commented 2 months ago

Is your feature request related to a problem? Please describe. Although unusual, I wanted to make a circular ERD. Issues: • Some table shapes don't rotate, others rotate improperly (nested boxes stay aligned vertically). • Connectors either follow harsh angles, or have to be meticulously tweaked with goofy curves.

Describe the solution you'd like Instead of messing with individual objects, what if entire grid could be polar. This would allow standard orthogonal shapes and connectors to be "warped" according to the new type of coordinates: shapes would simply be rotated based on their position around the center point, and for connectors, the horizontal lines would follow a circular path around the main center point, and vertical lines would become radial.

Describe alternatives you've considered This is probably a tall order. So some alternatives would be: • allow shapes (like the Entity Relation ones) to be rotated, • allow shapes (like the General List one) to be properly rotated (where the list items stay within the main box), • add an option for connector (regardless of the type) to be joined perpendicularly to a shape.

Additional context image

Thank you.

davidjgraph commented 2 months ago

Thanks for the suggestion, but as you probably realised, there's no way we can implement this.