NorthwoodsSoftware / GoJS

JavaScript diagramming library for interactive flowcharts, org charts, design tools, planning tools, visual languages.
http://gojs.net
Other
7.7k stars 2.86k forks source link

SuspendsRouting does not work - version 3.0.4 #215

Closed postulkam closed 2 months ago

postulkam commented 2 months ago

Hi, we used undocumented property suspendsRouting, but it doesn't exist in new version 3.0.4. Is there any other property that we can use instead?

Example with 3.0.4 version - https://jsfiddle.net/Mi_Po/8k1hcuzr/9/ Example with 2.3.16 version - https://jsfiddle.net/Mi_Po/oks6rx5e/57/

simonsarris commented 2 months ago

Thank you, we'll investigate and fix this.

simonsarris commented 2 months ago

Link.suspendsRouting is somewhat dangerous to use - you need to be very careful to reset it, and it may be better in your app if you created and removed a temporary Adornment on mouse hover instead of doing something that causes the Nodes to remeasure, broadly speaking.

However, we've decided to add Link.suspendsRouting back as an undocumented property in 3.0, starting with 3.0.6, which we will release probably next week. I will close this issue when that version is released.

postulkam commented 2 months ago

Thanks! I assumed that it can be dangerous, and we are really careful with it. However, we cannot use the Adornment because the user can decide whether they want to show the tooltip all the time, on hover, or when the object is selected.

WalterNorthwoods commented 2 months ago

We have released 3.0.7.