Animating scrolling

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, 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);