Snap point to existing lines/points using PointDrawTool

Good morning,
I do not know if this question has been already done.
I’m using the PointDrawTool to move and modify scatter plots.
Is it possible to snap the point that I want to move to already existing lines or points?

Thank you vey much

Mattia

There is no built-in capability for this (no one has ever asked for it). I don’t think it’s completely trivial, but a custom extension is always a possibility. In this case I think you’d want to overide the _pan_end method on the tool to adjust the renderer data source data dict according to your requirements, before emitting the changes.