moveParts method

void moveParts(
  1. Map<Part, DraggingInfo> parts,
  2. Point offset, [
  3. bool? check
])

Move a collection Map of Parts by a given offset.

If check is true this respects the Part#canMove predicate for Nodes or simple Parts when this is the Diagram#currentTool. It also respects #isGridSnapEnabled in order to try to automatically snap part locations to a grid. And it also uses the Part#dragComputation function, if any, to determine the new location for each part.

The first argument is a Map as produced by #computeEffectiveCollection, not a List or Set or Iterator of Parts. Call Diagram#moveParts if you want to move a simple collection of Parts without having to create the argument Map. @expose @param {Map.<Part,DraggingInfo>} parts a Map mapping Parts to DraggingInfo Objects that have a "point" property remembering the original location of that Part. @param {Point} offset The offset, before snapping, to move parts. This offset reflects the total amount moved during tool operation, based on original Part locations remembered when the DraggingTool activated. @param {boolean=} check Whether to check Part#canMove on each part. The default value is false. @since 1.1

Implementation

void moveParts(
  _i3.Map<_i3.Part, _i3.DraggingInfo> parts,
  _i3.Point offset, [
  _i2.bool? check,
]) {
  _i4.callMethod(
    this,
    'moveParts',
    [
      parts,
      offset,
      check ?? _i5.undefined,
    ],
  );
}