jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.78k stars 741 forks source link

Multiple snap points destabilizes drawflow #401

Closed CelticRugger closed 2 years ago

CelticRugger commented 2 years ago

Clicking on line to create multiple points (more than 2) causes problems where it draws from other points not between the two points you are splitting.

Saving and reloading with several multiple points becomes very unstable to the point all the flow lines disappear. Especially as you attach lines between other nodes and start snapping those with in points.

image

jerosoler commented 2 years ago

Add in your code to fix click point.

editor.reroute_fix_curvature = true;
jerosoler commented 2 years ago

Try new version 0.0.56 fix addreroutepoint and removereroutepoint.