Options
All
  • Public
  • Public/Protected
  • All
Menu

Defines a base class to a Chart Modifier - a class which provides Zoom, Pan, Tooltip or interaction behavior to SciChart - High Performance Realtime JavaScript Charts

Type parameters

Hierarchy

Implements

Index

Constructors

Protected constructor

Properties

Protected activePointerEvents

activePointerEvents: Map<number, ModifierMouseArgs> = new Map()

Stores info about active pointerdown events

Protected executeOnProperty

executeOnProperty: EExecuteOn = EExecuteOn.MouseLeftButton

Readonly id

id: string

A unique Id for the IChartModifierBase

invalidateParentCallback

invalidateParentCallback: () => void

A callback to invalidate the parent SciChartSurfaceBase

Type declaration

    • (): void
    • Returns void

Protected isAttachedProperty

isAttachedProperty: boolean

Protected isEnabledProperty

isEnabledProperty: boolean = true

modifierGroup

modifierGroup: string | undefined

Specifies a string ID to group modifiers.

remarks

When one receives a mouse event, all modifiers in the same group receive the event.

Protected mousePoint

mousePoint: Point | undefined

Protected parentSurfaceProperty

parentSurfaceProperty: TSurfaceType

Protected previousPoint

previousPoint: Point | undefined

Protected receiveHandledEventsProperty

receiveHandledEventsProperty: boolean

Accessors

canReceiveMouseEvents

  • get canReceiveMouseEvents(): boolean
  • When true, this modifier can receive mouse events

    inheritdoc

    Returns boolean

executeOn

  • The operation that modifier should respond to

    inheritdoc

    Returns EExecuteOn

  • The operation that modifier should respond to

    inheritdoc

    Parameters

    Returns void

isAttached

  • get isAttached(): boolean
  • When true, the modifier is attached to a SciChartSurfaceBase

    inheritdoc

    Returns boolean

isEnabled

  • get isEnabled(): boolean
  • set isEnabled(isEnabled: boolean): void
  • When true, the modifier is enabled

    inheritdoc

    Returns boolean

  • When true, the modifier is enabled

    inheritdoc

    Parameters

    • isEnabled: boolean

    Returns void

modifierType

  • The type of Chart Modifier, see EModifierType for a list of values

    inheritdoc

    Returns EModifierType

parentSurface

  • get parentSurface(): TSurfaceType
  • inheritdoc

    Returns TSurfaceType

receiveHandledEvents

  • get receiveHandledEvents(): boolean
  • set receiveHandledEvents(receiveHandledEvents: boolean): void
  • When true, this modifier should receive events which have been handled by modifiers higher up in the call hierachy.

    inheritdoc

    Returns boolean

  • When true, this modifier should receive events which have been handled by modifiers higher up in the call hierachy.

    inheritdoc

    Parameters

    • receiveHandledEvents: boolean

    Returns void

Methods

applyTheme

delete

  • delete(): void
  • Deletes native (WebAssembly) memory used by this type, after which it cannot be used.

    remarks

    Call .delete() before finishing with the object to ensure that WebAssmembly memory leaks do not occur.

    All elements within SciChart's High Performance Realtime JavaScript Charts which implement IDeletable must be deleted manually to free native (WebAssembly) memory

    Returns void

Protected getIsActionAllowed

  • Checks if event conditions should trigger the modifier action

    remarks

    Can be used in some of the modifiers to add/override constraints

    Parameters

    Returns boolean

modifierDoubleClick

  • inheritdoc

    Parameters

    Returns void

modifierDrop

  • inheritdoc

    Parameters

    Returns void

modifierMouseDown

  • inheritdoc

    Parameters

    Returns void

modifierMouseEnter

  • inheritdoc

    Parameters

    Returns void

modifierMouseLeave

  • inheritdoc

    Parameters

    Returns void

modifierMouseMove

  • inheritdoc

    Parameters

    Returns void

modifierMouseUp

  • inheritdoc

    Parameters

    Returns void

modifierMouseWheel

  • inheritdoc

    Parameters

    Returns void

modifierPointerCancel

  • inheritdoc

    Parameters

    Returns void

Protected notifyPropertyChanged

  • notifyPropertyChanged(propertyName: string): void
  • Notifies the parent surface that a property has changed by calling invalidateParentCallback

    Parameters

    • propertyName: string

      the property name which has changed

    Returns void

onAttach

  • onAttach(): void

onAttachSeries

onAttachSubSurface

onDetach

  • onDetach(): void

onDetachSeries

onDetachSubSurface

onParentSurfaceRendered

  • onParentSurfaceRendered(): void

setParentSurface

Optional Abstract toJSON

  • toJSON(): any
  • Convert the object to a definition that can be serialized to JSON, or used directly with the builder api

    Returns any

Protected updatePointerInfo

  • Parameters

    Returns void

Generated using TypeDoc