Enables or disables virtual scroll mode.
Namespace: MindFusion.Diagramming
Package: Diagram.js
JavaScript Copy Code |
---|
function setVirtualScroll (value) |
true to enable virtual scroll; otherwise, false.
If this mode is enabled, the canvas stays as big as its containing div, and its content is drawn with a translation bound to the div's scrollbar positions. This allow displaying large diagrams in browsers and on mobile devices where the size of HTML canvas elements is limited.