copyParts method
Make a copy of a collection of Parts and return them in a Map mapping each original Part to its copy. It may optionally add them to a given Diagram. Copying a Group will also copy its member Nodes and Links. Copying a Link will also copy any label Nodes that it owns.
This does not perform a transaction nor does it raise a DiagramEvent. Call CommandHandler#copySelection, which calls this method, if you want to copy all selected Parts into the clipboard. The CommandHandler#copySelection command may also copy additional Parts as well, depending on CommandHandler#copiesTree. @param {Iterable.
Implementation
_i3.Map<_i3.Part, _i3.Part> copyParts(
_i2.Object coll, [
_i3.Diagram? diagram,
_i2.bool? check,
]) =>
_i4.callMethod(
this,
'copyParts',
[
coll,
diagram ?? _i5.undefined,
check ?? _i5.undefined,
],
);