Interface StaticCursor<PointMarkerType, ResultTableBackgroundType>

StaticCursors are always positioned on the same scale.

Type Parameters

Hierarchy

Properties

getPointMarker: (() => PointMarkerType)

Type declaration

    • (): PointMarkerType
    • Get PointMarker object. PointMarker is a visual that is displayed at the Cursors position

      Returns

      PointMarker object

      Returns PointMarkerType

getPosition: (() => Point)

Type declaration

    • (): Point
    • Get current position of Cursor on its scale

      Returns

      Position on Cursors scale

      Returns Point

getResultTable: (() => ResultTable<ResultTableBackgroundType>)

Type declaration

    • (): ResultTable<ResultTableBackgroundType>
    • Get ResultTable object. ResultTable is a visual that displays currently pointed data next to its location

      Returns

      ResultTable object

      Returns ResultTable<ResultTableBackgroundType>

getVisible: (() => boolean)

Type declaration

    • (): boolean
    • Get element visibility.

      Returns

      true when element is set to be visible and false otherwise.

      Returns boolean

pointAt: ((point: CursorPoint<Series2D<any>>) => StaticCursor<PointMarkerType, ResultTableBackgroundType>)

Type declaration

setPointMarker: ((mutator: Mutator<PointMarkerType>) => StaticCursor<PointMarkerType, ResultTableBackgroundType>)

Type declaration

    • (mutator: Mutator<PointMarkerType>): StaticCursor<PointMarkerType, ResultTableBackgroundType>
    • Mutator function for PointMarker. PointMarker is a visual that is displayed at the Cursors position

      Returns

      Object itself for fluent interface

      Parameters

      • mutator: Mutator<PointMarkerType>

        Mutator function for PointMarker

      Returns StaticCursor<PointMarkerType, ResultTableBackgroundType>

setPosition: ((position: Point) => StaticCursor<PointMarkerType, ResultTableBackgroundType>)

Type declaration

    • (position: Point): StaticCursor<PointMarkerType, ResultTableBackgroundType>
    • Set the position of the Cursor, moving it without modifying displayed data.

      Parameters

      Returns StaticCursor<PointMarkerType, ResultTableBackgroundType>

setResultTable: ((mutator: Mutator<ResultTable<ResultTableBackgroundType>>) => StaticCursor<PointMarkerType, ResultTableBackgroundType>)

Type declaration

    • (mutator: Mutator<ResultTable<ResultTableBackgroundType>>): StaticCursor<PointMarkerType, ResultTableBackgroundType>
    • Mutator function for ResultTable. ResultTable is a visual that displays currently pointed data next to its location

      Returns

      Object itself for fluent interface

      Parameters

      • mutator: Mutator<ResultTable<ResultTableBackgroundType>>

        Mutator function for ResultTable

      Returns StaticCursor<PointMarkerType, ResultTableBackgroundType>

setVisible: ((state: boolean) => StaticCursor<PointMarkerType, ResultTableBackgroundType>)

Type declaration

    • (state: boolean): StaticCursor<PointMarkerType, ResultTableBackgroundType>
    • Set element visibility.

      Parameters

      • state: boolean

        true when element should be visible and false when element should be hidden.

      Returns StaticCursor<PointMarkerType, ResultTableBackgroundType>

Methods

  • Permanently destroy the component.

    Returns

    Object itself for fluent interface.

    Returns StaticCursor<PointMarkerType, ResultTableBackgroundType>

  • Get is AutoFitStrategy enabled. Customizable logic which attempts to fit ResultTable to view.

    Returns

    Boolean flag whether auto-fit is enabled

    Returns boolean

  • Get point marker visible or not.

    Returns

    Boolean.

    Returns boolean

  • Get result table visible or not.

    Returns

    Boolean.

    Returns boolean

  • Set AutoFitStrategy of Cursor. Customizable logic which attempts to fit ResultTable to view.

    See AutoFitStrategies for available options.

    Returns

    Object itself for fluent interface

    Parameters

    • Optional autoFitStrategy: AutoFitStrategyFactory<ResultTableBackgroundType>

      AutoFitStrategy or undefined to disable auto-fitting

    Returns StaticCursor<PointMarkerType, ResultTableBackgroundType>

  • Set point marker visible or not.

    Returns

    Object itself.

    Parameters

    • visible: boolean

      Point marker visible?

    Returns StaticCursor<PointMarkerType, ResultTableBackgroundType>

  • Set result table visible or not.

    Returns

    Object itself.

    Parameters

    • visible: boolean

      Result table visible?

    Returns StaticCursor<PointMarkerType, ResultTableBackgroundType>