computeMove method
This method computes the new location for a Node or simple Part, given a new desired location, taking any grid-snapping into consideration, any Part#dragComputation function, and any Part#minLocation and Part#maxLocation.
This method may be overridden. 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 {DraggingOptions} dragOptions the dragging options @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 2.0
Implementation
_i3.Point computeMove(
_i3.Part n,
_i3.Point newloc,
_i3.DraggingOptions dragOptions, [
_i3.Point? result,
]) =>
_i4.callMethod(
this,
'computeMove',
[
n,
newloc,
dragOptions,
result ?? _i5.undefined,
],
);