How to change cursor while dragging the Diagram?

How to change cursor while dragging the Diagram?

You can override the PanningTool.doActivate function and change the Diagram.currentCursor.

This can be placed in your diagram’s initialization:

"panningTool.doActivate": function() {
  go.PanningTool.prototype.doActivate.call(this); // make sure to call the base method
  this.diagram.currentCursor = 'grab';
}

Thank you. It helped me.