doMouseDown() rotation example?

Is there an example for a rotation trigert by a mousedown event ?
And how do I handle a swipe action on a tablet ?


Rotation is implemented by RotatingTool. Read about it at and In particular, implement a “PartRotated” DiagramEvent listener.

What do you mean about “a swipe action on a tablet”? GoJS already implements all of the standard behavior on touch devices. Is there something custom that you want to implement?