Search
Events.animatedLayoutCompleted Property
See Also
 





Raised when an animated layout completes.

Namespace: MindFusion.Diagramming
File: Events.js

 Syntax

JavaScript  Copy Code

get animatedLayoutCompleted() {}
set animatedLayoutCompleted(value) {}

 Property Value

String

A string containing the event name.

 Remarks

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.addEventListener(Events.animatedLayoutCompleted, (sender, args) => {
    sender.resizeToFitItems(10);
});
diagram.arrangeAnimated(...);

 See Also