Gojs-angular: enable draggingTool.isGridSnapEnabled on nodes but not on textblock

Hi friends,
There is a way to enable toolManager.draggingTool.isGridSnapEnabled on any node but text block?

I want that the text block will be ‘free’ on dragging, but I want the grid snap on other nodes…
Thanks

A TextBlock is not a Node. So you have at least two kinds of Nodes? One that shows some text and one that does not? What should happen when the user selects at the same time at least one of each kind of node – how should dragging behave?

Hi, you are right.
I am not sure that I made the right thing, but I made nodeTemplateMap that I called ‘textblock’, that defines Part wich have TextBlock. this is for purpose of adding labels to the diagram.

I want that this part will be draggable freely, but the other objects in the diagram (nodes, groups) will have the grid snap.

You can set its https://gojs.net/latest/api/symbols/Part.html#dragComputation to a function that returns the second argument, whereas for the other kind of node you can return the third argument.