Zoom options
ZoomAnimationOptions, ZoomOptions: generated from the source of active-charts.
Exported by @workspace/. Generated from the package source; part of the index of every export.
Types#
The glide of a discrete zoom (reset, brush release, drag-select): plain, serialisable data, with the easing names of the motion contract. Zoom is navigation, not a motion class: the profile does not time it, but reduced motion and animation: false turn it into a jump.
interface ZoomAnimationOptions {
enabled?: boolean;
duration?: number;
easing?: ChartMotionEasing;
}interface ZoomOptions {
enabled?: boolean;
axes?: 'x' | 'y' | 'xy';
scrollZoom?: boolean;
dragPan?: boolean;
minVisibleItems?: number;
zoomSpeed?: number;
showResetButton?: boolean;
doubleClickReset?: boolean;
animation?: ZoomAnimationOptions | boolean;
dragSelect?: boolean;
yAutoFit?: boolean;
}