Raised when an animated layout completes.
Namespace: MindFusion.Diagramming
File: DiagramBase.js
JavaScript Copy Code |
---|
diagram.animatedLayoutCompleted.addEventListener(onAnimatedLayoutCompleted); |
When layout is applied on a ContainerNode, event handlers receive a NodeEventArgs instance as argument.
This example handles the animatedLayoutCompleted event to resize the diagram.
JavaScript Copy Code |
---|
diagram.animatedLayoutCompleted.addEventListener( (sender, args) => { sender.resizeToFitItems(10); }); diagram.arrangeAnimated(...); |
MindFusion.Diagramming for JavaScript Programmer's Guide | © 2024 MindFusion |