Skip to main content
ZoomOptions
Options to control how a user manages zoom on the canvas.
NameTypeDescription
fixedTransformOrigin?PointXYOptional 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?numberInitial zoom value. Defaults to 1.
range?ZoomRangeZoom range to support. The default is [0.05, 3]
step?numberWhen zooming by step, this defines the change in zoom for each step. Defaults to 0.25.
wheel?booleanWhen true - which is the default - the wheel will be used for zoom.