Defines the duration of animations when zooming in milliseconds
Defines the easing function for animation. See TEasing for a range of functions
A callback to invalidate the parent SciChartSurfaceBase
When true, the Zoom operations are animated. See also animationDuration and easingFunction
Specifies a string ID to group modifiers.
When true, this modifier can receive mouse events
The operation that modifier should respond to
The operation that modifier should respond to
When true, the modifier is attached to a SciChartSurfaceBase
When true, the modifier is enabled
When true, the modifier is enabled
The type of Chart Modifier, see EModifierType for a list of values
When true, this modifier should receive events which have been handled by modifiers higher up in the call hierachy.
When true, this modifier should receive events which have been handled by modifiers higher up in the call hierachy.
Applies a theme (defined by IThemeProvider) to the current element
The theme data to apply
Method called when mouse double-click or touch double-tap occurs on the parent SciChartSurfaceBase
the ModifierMouseArgs containing data about the mouse event
Method called when mouse-down or touch-down occurs on the parent SciChartSurfaceBase
the ModifierMouseArgs containing data about the mouse event
Method called when mouse enters the parent SciChartSurfaceBase
the ModifierMouseArgs containing data about the mouse event
Method called when mouse leaves the parent SciChartSurfaceBase
the ModifierMouseArgs containing data about the mouse event
Method called when mouse-move or touch-move occurs on the parent SciChartSurfaceBase
the ModifierMouseArgs containing data about the mouse event
Method called when mouse-up or touch-up occurs on the parent SciChartSurfaceBase
the ModifierMouseArgs containing data about the mouse event
Method called when mouse-wheel scroll occurs on the parent SciChartSurfaceBase
the ModifierMouseArgs containing data about the mouse event
Called when the modifier is attached to a parent SciChartSurfaceBase
Called when a RenderableSeries is attached to this modifier
Called when the modifier is detached from a parent SciChartSurfaceBase
Called when a RenderableSeries is detached from this modifier
Called when the parent SciChartSurfaceBase is rendered
Sets the parent SciChartSurfaceBase on this modifier
Generated using TypeDoc
The ZoomExtentsModifier provides double-tap or double-click to zoom-to-fit (Zoom Extents) behavior on a 2D SciChartSurface within SciChart - High Performance JavaScript Charts
To apply the ZoomExtentsModifier to a SciChartSurface and add drag to zoom behavior, use the following code:
const sciChartSurface: SciChartSurface; sciChartSurface.chartModifiers.add(new ZoomExtentsModifier());
Animation of the zoom extents be controlled via the ZoomExtentsModifier.isAnimated, ZoomExtentsModifier.animationDuration and ZoomExtentsModifier.easingFunction properties.