Provides animation effects.
mxEffects | Provides animation effects. |
Functions | |
animateChanges | Asynchronous animated move operation. |
cascadeOpacity | Sets the opacity on the given cell and its descendants. |
fadeOut | Asynchronous fade-out operation. |
animateChanges: function( graph, changes, done )
Asynchronous animated move operation. See also: mxMorphing.
graph.model.addListener(mxEvent.CHANGE, function(sender, evt) { var changes = evt.getProperty('edit').changes; if (changes.length < 10) { mxEffects.animateChanges(graph, changes); } });
graph | mxGraph that received the changes. |
changes | Array of changes to be animated. |
done | Optional function argument that is invoked after the last step of the animation. |
Asynchronous animated move operation.
animateChanges: function( graph, changes, done )
Sets the opacity on the given cell and its descendants.
cascadeOpacity: function( graph, cell, opacity )
Asynchronous fade-out operation.
fadeOut: function( node, from, remove, step, delay, isEnabled )