Need to scroll to bottom of diagram

Hi Team,

I have a requirement to move to the bottom of the diagram.

I found a method like diagram.scrollToRect , but which bounds i need to specify to move to the bottom of the diagram.

My diagram contains Text image etc. I need to go always to the bottom of the diagram not a specific node.

Please let me know your suggestions

Thanks
S

You could compute the Rect that you want from the Diagram.documentBounds.

But I think it would be easier to call instead Diagram | GoJS API with the first argument being go.Spot.Bottom. I’m not sure what spot you want as the second argument – probably the same Bottom spot as well.