NorthwoodsSoftware / GoJS

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

Animation not working when collapsing subgraph #167

Closed ba2sik closed 2 years ago

ba2sik commented 2 years ago

Hello, If you look at this demo, when clicking + on Main1, the border/stroke around the items in the group, and the group header, is growing with animation, but when collapsing when clicking -, the stroke around the items and the header simply disappears, without doing it with animation.

Is it possible to override the closing animation somehow to make it work?

Thank you

ba2sik commented 2 years ago

?

WalterNorthwoods commented 2 years ago

Not easily. It might be possible to turn off that built-in animation and implement everything yourself.

This is not an issue (bug) in the library or samples or documentation, so this topic does not belong here.

ba2sik commented 2 years ago

Why is this not a bug? When expanding the group the border around the nodes is growing, and when collapsing the border disappears instead of shrinking. This is inconsistent behavior in the library...

WalterNorthwoods commented 2 years ago

Yes, that does appear to be inconsistent. However, that is how it was designed. I suppose an implementation alternative could be achieved by customizing the group's border computation to include not-visible member nodes during animation.