Search
DiagramItem.animate Method
See Also
 






Animates the item.

Namespace: MindFusion.Diagramming
File: DiagramItem.js

 Syntax

JavaScript  Copy Code

function animate (animation)

 Parameters

animation

ItemAnimation. An ItemAnimation -derived object.

 Remarks

Item's animated values are considered transient and do not change actual property values. If you want to assign last value from animation to actual property such as bounds or opacity, set the keepLastValue flag in animation parameters as in example below.

 Example

JavaScript  Copy Code
node.animate(
    new PathAnimation(
        [
            new Point(30, 30),
            new Point(50, 30),
            new Point(75, 66),
            new Point(125, 88)
        ],
        {
            keepLastValue: true
        }));

 See Also