Skip to main content

scrollTo()

sets the inner scroll of the diagram to the specified position

scrollTo(x: number, y: number): void;

Parameters:

  • x: number - horizontal scroll position
  • y: number - vertical scroll position

Example

diagram.scrollTo(100, 80);

Scrolling Diagram