GeezerVison is showing maxgraph.github.io — Effects | @maxgraph/core
Provides animation effects.
Constructors
Methods
StaticanimateChanges
-
Asynchronous animated move operation. See also: .
Parameters
- graph: AbstractGraph
- changes: UndoableChange[]
Array of changes to be animated.
Optionaldone: Function
Optional function argument that is invoked after the
last step of the animation.
Returns void
Example
graph.model.addListener(mxEvent.CHANGE, function(sender, evt)
{
var changes = evt.getProperty('edit').changes;
if (changes.length < 10)
{
Effects.animateChanges(graph, changes);
}
});
StaticcascadeOpacity
-
Sets the opacity on the given cell and its descendants.
Parameters
- graph: AbstractGraph
- cell: Cell
Cell to set the opacity for.
- opacity: number
New value for the opacity in %.
Returns void
StaticfadeOut
-
fadeOut( node: HTMLElement, from: number, remove: boolean, step: number, delay: number, isEnabled: boolean,): void
Asynchronous fade-out operation.
Parameters
- node: HTMLElement
- from: number
- remove: boolean
- step: number
- delay: number
- isEnabled: boolean
Returns void