interface RVG · Viewports
RvgViewportController
interface RvgViewportController
Switches user panning and zooming of a viewport.
Properties
panning
panning: booleanWhether dragging the viewport with the primary button moves the content.
zoomFactor
zoomFactor: numberThe zoom per wheel step: wheel up multiplies the zoom by it, wheel down divides by it (default 1.1).
zooming
zooming: booleanWhether the mouse wheel over the viewport zooms the content around the pointer.
