addTemporaryPart method

Animation addTemporaryPart(
  1. Part part,
  2. Diagram diagram
)

Add a temporary Part to this animation. This part will be added to the Diagram when the animation is started, and removed from the Diagram when the animation completes. This is intended to be used with #add, to animate properties of this Part or its elements.

The temporary part added is typically either a GraphObject#copy of an existing Part, which is to be deleted and requires a copy for animated effects, or else a wholly new temporary Part, constructed in memory for the purpose of creating some effect. @param {Part} part A part to add to the Diagram at the start of the animation and remove at the end. This is typically either a copied Part already in the Diagram, to animate its deletion, or a Part created programmatically to be used for some effect. @param {Diagram=} diagram The Diagram to add the temporary part to, and remove it from, at the start and end of animation, respectively. @return {Animation} this Animation

Implementation

_i3.Animation addTemporaryPart(
  _i3.Part part,
  _i3.Diagram diagram,
) =>
    _i4.callMethod(
      this,
      'addTemporaryPart',
      [
        part,
        diagram,
      ],
    );