freegroup / draw2d

Create Visio like drawings, diagrams or workflows with JavaScript and HTML5
https://freegroup.github.io/draw2d/#/examples
MIT License
738 stars 227 forks source link

SplineConnectionRouter #230

Closed kusigit closed 1 year ago

kusigit commented 1 year ago

Fix error if start and end position of source and target port is equal.

freegroup commented 1 year ago

The correction is not quite correct. It only mitigates symptoms but does not eliminate them. To calculate a spline, the connection must meet the minimum requirements, e.g. that the connection contains at least 3 segments instead of multiplying by "0" in the spline function.

Do you have a test case where I can check the behaviour?

freegroup commented 1 year ago

fixed and committed

kusigit commented 1 year ago

Thanks a lot.