Bezier link control point grid snapping

Hi,

I am able to alter my link through the control points:

{ curve: go.Link.Bezier, adjusting: go.Link.Stretch, reshapable: true },

image

Is there a way to enable grid snapping for these control points? And in general to limit the control point position to be on the x or y axis of the start and end point?

Thanks

It isn’t exactly what you want, but the customization of the LinkReshapingTool to snap handle points to the grid is demonstrated by the SnapLinkReshapingTool extension: Snap Link Reshaping and https://gojs.net/latest/extensions/SnapLinkReshapingTool.js or https://gojs.net/latest/extensionsTS/SnapLinkReshapingTool.ts Look at the computeReshape override.

Thanks; I can continue from there :) !