Interface for a class ScrollSettings
Defines the maximum distance to be left between the object and the scroll bar to trigger auto scrolling
number
Specifies the interval (in milliseconds) between scroll triggers.
boolean
Enables or Disables the auto scroll option
number
Defines the currentZoom value of diagram
number
Defines horizontal offset of the scroller
number
Defines the maximum zoom value of the scroller
number
Defines the minimum zoom value of the diagram
Defines the maximum distance to be left between the object and the edge of the page.
Defines the scrollable region of diagram.
Infinity - Diagram will be extended, when we try to scroll the diagram
<div id='diagram'></div>
let diagram: Diagram = new Diagram({
...
scrollSettings: { canAutoScroll: true, scrollLimit: 'Infinity',
scrollableArea : new Rect(0, 0, 300, 300), horizontalOffset : 0
},
...
});
diagram.appendTo('#diagram');
Defines the scrollable area of diagram. Applicable, if the scroll limit is “limited”.
number
Defines vertical offset of the scroller
number
Allows to read the viewport height of the diagram
number
Allows to read the viewport width of the diagram
number
Specifies the percentage of scale value for each ZoomIn or ZoomOut functionality.