computeMove method
This method computes the new location for a Node or simple Part, given a new desired location and an optional Map of dragged parts, taking any grid-snapping into consideration, any Part#dragComputation function, and any Part#minLocation and Part#maxLocation.
As of 2.0, this just calls Diagram#computeMove and remains for compatibility.
This method may be overridden, but should usually be overridden on Diagram. Please read the Introduction page on Extensions for how to override methods and how to call this base method. @expose @param {Part} n the Node or simple Part that is being moved @param {Point} newloc the proposed new location @param {Map.<Part,DraggingInfo>=} draggedparts an optional Map mapping Parts to DraggingInfo Objects that have a "point" property remembering the original location of that Part. @param {Point=} result an optional Point that is modified and returned @return {Point} the possibly grid-snapped computed Point that is within the minimum and maximum permitted locations @since 1.1
Implementation
_i3.Point computeMove(
_i3.Part n,
_i3.Point newloc, [
_i3.Map<_i3.Part, _i3.DraggingInfo>? draggedparts,
_i3.Point? result,
]) =>
_i4.callMethod(
this,
'computeMove',
[
n,
newloc,
draggedparts ?? _i5.undefined,
result ?? _i5.undefined,
],
);