Shared object operations for widgets and custom terminals. No DOM is created.

Constructors

Methods

  • Whether place would move id and paint the result.

    Parameters

    • id: string
    • targetId: string
    • where: "above" | "below"

    Returns boolean

  • Accept inventory ids so callers never need to strip provider prefixes.

    Parameters

    • name: string
    • ids: readonly string[]

    Returns null | string

  • Move a row directly above or below another row of its pane's stack. A drawing goes anywhere in its pane: next to a drawing it joins that drawing's slot, above an entry it is placed on that entry, below one it goes on top of the slot under it. A source or study moves between whole slots, taking the drawings placed on it along, since nothing can paint between an entry and a drawing placed on it: such a move, one out of the series band, and one across panes are refused, not approximated.

    Parameters

    • id: string
    • targetId: string
    • where: "above" | "below"

    Returns boolean

  • The price pane's slot among the targets, so a list can name it wherever it sits.

    Returns number

  • Parameters

    • id: null | string
    • additive: boolean = false

    Returns boolean

  • A pane's stack in paint order, back to front: drawings behind the series, then each series-band entry (the price source, each study) followed by the drawings placed directly above it, then the drawings in front. Group rows, profiles and other rows outside the stack are not in it.

    Parameters

    • paneIndex: number

    Returns readonly ChartObjectSnapshot[]