add method

void add(
  1. Part part
)

Adds a Part to the Layer that matches the Part's Part#layerName, or else the default layer, which is named with the empty string.

Normally parts added to a diagram are top-level parts. If you want nodes to be members of a Group, in addition to calling this method call Group#addMembers or set each Part#containingGroup. @param {Part} part @see #remove

Implementation

void add(_i3.Part part) {
  _i4.callMethod(
    this,
    'add',
    [part],
  );
}