class RVG · Viewports

ViewportInteractivityOptions

The interactivity of a new viewport; each option left out stays off (zoomFactor: 1.1).

Properties

panningoptional

panning?: boolean

Whether dragging the viewport with the primary button moves the content (default: false).

zoomFactoroptional

zoomFactor?: number

The zoom per wheel step: wheel up multiplies the zoom by it, wheel down divides by it (default: 1.1).

zoomingoptional

zooming?: boolean

Whether the mouse wheel over the viewport zooms the content around the pointer (default: false).