Also, I have a question. Can I make a animation for calling scrollToRect or centerRect method?
The Diagram methods Diagram.scrollToRect and Diagram.centerRect methods do not animate.
But various commands do animate. In your case, call https://gojs.net/latest/api/symbols/CommandHandler.html#scrollToPart, which does animate scrolling.
Thank you for support.
I’d like to animate scrolling to a position where there is no Part. Is there a way I could accomplish that?
const an = new go.Animation(); an.add(myDiagram, "position", myDiagram.position, newDiagramPosition); an.start();