Dragging/Moving and rotating node events

I want to Perform Simple DOM events, while object is dragging/moving across the canvas and while object is rotating.

psudo code:
if (node.isMoving = true ){
document.get…
}
else{
document.get…
}

lly,

if (node.isRotating = true){
document.get…
}
eles{
document.get…
}

you can use addDiagramListener such as

myDiagram.addDiagramListener("SelectionMoved", function (e) {})
myDiagram.addDiagramListener("PartRotated", function (e) {})

That was quick! Thanks a lot gunmo! :D

Is there any way i can listen to a “dragstart” event and a “dragend” event similarly, “RotationStart” and “RotationEnd” ?

https://gojs.net/latest/api/symbols/DiagramEvent.html all the events are here.I think you can add some logics in the event function

Im not in your work,https://gojs.net/latest/api/symbols/GraphObject.html the node also has mouseDragEnter mouseDragLeave event.you can try this.

Those DiagramEvents generally occur after some operation has finished.

If you want to perform some behavior at the beginning or during some operation, you will need to override some methods of the responsible tool.

Okay, thanks walter and gunmo!