Interface: ZoomOptions
Extends
Properties
axes?
optionalaxes?:"y"|"x"|"xy"
Which axes are zoomable ('x' by default).
doubleClickReset?
optionaldoubleClickReset?:boolean
Reset on double click (true by default).
dragPan?
optionaldragPan?:boolean
Pan by dragging (true by default).
dragSelect?
optionaldragSelect?:boolean
Drag to select an area → zoom (false by default).
enabled?
optionalenabled?:boolean
Inherited from
minRatio?
optionalminRatio?:number
Minimum window width (fraction of the domain, 0.05 by default).
panKey?
optionalpanKey?:"shift"|"meta"|"alt"|"ctrl"
Modifier key for panning; without it, dragging selects an area (box-zoom).
wheelStep?
optionalwheelStep?:number
Zoom step per wheel tick (0.1 by default).
wheelZoom?
optionalwheelZoom?:boolean
Mouse wheel zoom (true by default).