removeParts method

void removeParts(
  1. Object coll, [
  2. bool? check
])

This method removes from this Diagram all of the Parts in a collection. Removing a Node will also remove any Links that are connected with it. Removing a Group will also remove all of its members. Removing a Link will also remove all of its label Nodes, if it has any.

This does not perform a transaction nor does it raise a DiagramEvent. Call CommandHandler#deleteSelection, which calls this method, if you want to delete all selected Parts. The CommandHandler#deleteSelection command may delete other Parts as well, depending on CommandHandler#deletesTree.

At this time there is no "addParts" method -- just call Diagram#add on each Part. @param {Iterable.

Implementation

void removeParts(
  _i2.Object coll, [
  _i2.bool? check,
]) {
  _i4.callMethod(
    this,
    'removeParts',
    [
      coll,
      check ?? _i5.undefined,
    ],
  );
}