interface RVG · Viewports

RvgViewportController

interface RvgViewportController

Switches user panning and zooming of a viewport.

Properties

panning

panning: boolean

Whether dragging the viewport with the primary button moves the content.

zoomFactor

zoomFactor: number

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

zooming

zooming: boolean

Whether the mouse wheel over the viewport zooms the content around the pointer.