Interface ChartObjectDrawing

Structural contract keeps the base tier independent of drawing code.

interface ChartObjectDrawing {
    id: string;
    locked?: boolean;
    paneIndex: number;
    points: readonly { price: number; time: number }[];
    policy?: { editable?: boolean; listed?: boolean; selectable?: boolean };
    stackAbove?: string;
    tool: string;
    visible?: boolean;
    zIndex?: number;
}

Properties

id: string
locked?: boolean
paneIndex: number
points: readonly { price: number; time: number }[]
policy?: { editable?: boolean; listed?: boolean; selectable?: boolean }

The drawing tier's policy flags the inventory honours: listed false leaves the drawing out, selectable false withholds select, and editable false withholds hide, lock and remove.

stackAbove?: string

The source or study it paints directly above, when it is placed in the series band.

tool: string
visible?: boolean
zIndex?: number