GuidedDraggingTool.prototype.doDragOver
calls its own showHorizontalMatches
and showVerticalMatches
, which happens effectively on every mouse/touch move.
You’d want to do something similar, that is, set up a bunch of guideline parts and show them (or not) based on some criteria.
instead of doDragOver
, you’d probably want to show them at the end of LinkShiftingTool.prototype.doMouseMove
From there, it kinda depends what you want to do. Do you want the guidelines to appear when your mouse point (or when the resulting point of doReshape
) is near the center of the object? Or something else?