Implements

Constructors

Accessors

Methods

  • Show a dimmed reference line at the pre-drag price while the user drags (pass the original price on drag start, null on drag end to clear).

    Parameters

    • price: null | number

    Returns void

  • Update the info segment text (e.g. live position P&L); repaints.

    Parameters

    • text: string

    Returns void

  • Restyle in place; repaints. id is the hit-test handle the chart routes clicks and drags through, so it is not patchable — swapping it under a live drag would strand the gesture.

    A last-price line is the case this exists for: it has to follow the tick direction, and only setPrice was updatable, so the colour was stuck at whatever it was constructed with.

    Parameters

    Returns void

  • Move the line; schedules a repaint via the host.

    Parameters

    • price: number

    Returns void