Search
DiagramBase.animatedLayoutCompleted Event
See Also
 





Raised when an animated layout completes.

Namespace: MindFusion.Diagramming
File: DiagramBase.js

 Syntax

JavaScript  Copy Code
diagram.animatedLayoutCompleted.addEventListener(onAnimatedLayoutCompleted);

 Event Data

When layout is applied on a ContainerNode, event handlers receive a NodeEventArgs instance as argument.

 Example

This example handles the animatedLayoutCompleted event to resize the diagram.

JavaScript  Copy Code
diagram.animatedLayoutCompleted.addEventListener(
    (sender, args) =>
    {
        sender.resizeToFitItems(10);
    });
diagram.arrangeAnimated(...);

 See Also