ZoomOptions
Options to control how a user manages zoom on the canvas.
Properties
fixedTransformOrigin?
optionalfixedTransformOrigin:PointXY
Optional fixed transform origin for the canvas. Defaults to null.When this is supplied the zoom function does not change the transform origin You can still zoom and pan but the zoom/pan is applied relative to the top/left corner of the content.
initialValue?
optionalinitialValue:number
Initial zoom value. Defaults to 1.
range?
optionalrange:ZoomRange
Zoom range to support. The default is [0.05, 3]
step?
optionalstep:number
When zooming by step, this defines the change in zoom for each step. Defaults to 0.25.
wheel?
optionalwheel:boolean
When true - which is the default - the wheel will be used for zoom.