Creates an instance of a RubberBandXyZoomModifier
Optional parameters used to configure the modifier
Stores info about active pointerdown events
Defines the duration of animations when zooming in milliseconds
Defines the easing function for animation. See TEasingFn for a range of functions
A unique Id for the IChartModifierBase
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
Get the fill color for RubberBandSvgRect
Set the fill color for RubberBandSvgRect
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.
Get the stroke for RubberBandSvgRect
Set the stroke for RubberBandSvgRect
Get the stroke thickness for RubberBandSvgRect
Set the stroke thickness for RubberBandSvgRect
Applies a theme (defined by IThemeProvider) to the current element
The theme data to apply
Gets all series on the parent surface.
Checks if event conditions should trigger the modifier action
current event info as ModifierMouseArgs
Grows the Axis by a fraction around the mouse point
the X,Y location of the mouse at the time of the operation
the Axis to grow or shrink
the fraction, e.g. 0.1 grows the axis by 10%
Called when the modifier is attached to a parent SciChartSurfaceBase
Called when a RenderableSeries is attached to this modifier
Called when a SciChartSubSurface} is attached to the parent SciChartSurface
Called when the modifier is detached from a parent SciChartSurfaceBase
Called when a RenderableSeries is detached from this modifier
Called when a SciChartSubSurface is detached from the parent SciChartSurface
Called when the parent SciChartSurfaceBase is rendered
Performs a Zoom on a specific axis
the Axis to zoom
the coordinate to zoom from
the coordinate to zoom to
Sets the parent SciChartSurfaceBase on this modifier
Generated using TypeDoc
The RubberBandXyZoomModifier provides drag-rectangle to zoom behavior on a 2D SciChartSurface within SciChart - High Performance JavaScript Charts
To apply the RubberBandXyZoomModifier to a SciChartSurface and add drag to zoom behavior, use the following code:
const sciChartSurface: SciChartSurface; sciChartSurface.chartModifiers.add(new RubberBandXyZoomModifier());
Animation of the zoom may be controlled via the RubberBandXyZoomModifier.isAnimated, RubberBandXyZoomModifier.animationDuration and RubberBandXyZoomModifier.easingFunction properties.