Skip to main content

scrollTo()

Description

Sets the inner scroll of the diagram to the specified position

Usage

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

Parameters

  • x - (required) horizontal scroll position
  • y - (required) vertical scroll position

Example

const diagram = new dhx.Diagram("diagram_container");
diagram.data.parse(data);

diagram.scrollTo(100, 80);

Related articles: Scrolling Diagram