getScrollState

returns the position of the diagram inner scroll

object getScrollState();

Returns

objectan object which stores positions of scrolls

Example

var state = diagram.getScrollState();
// diagram.scrollTo( state.x, state.y );

Related samples

Details

A resulting object has two properties:

  • x - horizontal scroll position
  • y - vertical scroll position
See also
Back to top