Creates an instance of a ZoomPanModifier
optional parameters to pass to the ZoomPanModifier to configure it upon construction
Stores info about active pointerdown events
Sets whether to enable pinch zoom behavior of SciChartSurface on touchscreen devices
Defines the sensitivity of zooming in horizontal direction
A unique Id for the IChartModifierBase
A callback to invalidate the parent SciChartSurfaceBase
Specifies a string ID to group modifiers.
Defines the sensitivity of zooming in vertical direction
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
Deletes native (WebAssembly) memory used by this type, after which it cannot be used.
Gets all series on the parent surface.
Returns the list of included Axis for this IChartModifierBase
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%
Resets to include all axes
Mark if the XAxis should be included or excluded, for instance for IChartModifierBase
Mark if the YAxis should be included or excluded, for instance for IChartModifierBase
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 the zoom operation around the mouse point
The X,Y location of the mouse at the time of the zoom
horizontal pinch delta
vertical pinch delta
Handles pointer event becoming inactive
pointer event properties
Sets the parent SciChartSurfaceBase on this modifier
Generated using TypeDoc
The ZoomPanModifier provides drag to pan behavior on a 2D SciChartSurface as well as pinch zoom behavior on touchscreen devices within SciChart - High Performance JavaScript Charts
To apply the ZoomPanModifier to a SciChartSurface and add drag to pan behavior, use the following code:
const sciChartSurface: SciChartSurface; sciChartSurface.chartModifiers.add(new ZoomPanModifier());