insertAt method

void insertAt(
  1. num index,
  2. GraphObject element
)

Adds a GraphObject to the Panel's list of elements at the specified index.

If the element to be added is already in this Panel's list of elements, the object is moved to the specified index. You cannot add a GraphObject to a Panel that if that GraphObject is already in a different Panel. @param {number} index @param {GraphObject} element A GraphObject.

Implementation

void insertAt(
  _i2.num index,
  _i3.GraphObject element,
) {
  _i4.callMethod(
    this,
    'insertAt',
    [
      index,
      element,
    ],
  );
}