Skip to main content
Version: 4.3

PaperScrollerViewport

Reactive zoom and viewport status returned by usePaperScrollerViewport.

Properties​

canZoomIn​

readonly canZoomIn: boolean;

Whether the scroller can zoom in further (below maxZoom).


canZoomOut​

readonly canZoomOut: boolean;

Whether the scroller can zoom out further (above minZoom).


visibleArea​

readonly visibleArea: Rect;

Visible area in graph coordinates, as a g.Rect (keeps geometry helpers).


zoom​

readonly zoom: number;

Current zoom level (1 = 100%).

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub