Branch: refs/heads/3.14.x
Home: https://github.com/cytoscape/cytoscape.js
Commit: a0a0eef617396de7545d1944ec8357e4e1893cb5
https://github.com/cytoscape/cytoscape.js/commit/a0a0eef617396de7545d1944ec8357e4e1893cb5
Author: Max Franz <[email protected]>
Date: 2020-05-29 (Fri, 29 May 2020)
Changed paths:
M src/core/animation/step-all.js
Log Message:
-----------
Allow animations to run for display:none elements.
If a `layoutPositions()` animation is cancelled for a `display:none` node, then
its animation promise will not resolve. That prevents `layoutstop` from being
emitted. While it doesn't provide much value to animate the style properties
of an element when it's invisible, it may make sense for some use cases to
animate its position. Allowing animations on invisible elements also has the
benefit of resolving this issue in a simple way.
The downside is that you lose some performance when you ask the library to
animate invisible elements to no visual effect (#1522). Then again, you get
exactly what you ask for.
Refs. : Backport 3.14.x : layoutstop event not triggered when a node is not
displayed #2700 #2693
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/cytoscape-cvs/cytoscape/cytoscape.js/push/refs/heads/3.14.x/6b5201-a0a0ee%40github.com.