Skip to content

charton API


charton API / @chart-on/core / index / PerSymbolDrawings

Interface: PerSymbolDrawings ​

Defined in: packages/core/src/storage/drawings.ts:26

A running perSymbolDrawings binding: the current storage key, plus flushing and stopping.

Properties ​

key ​

readonly key: string | null

Defined in: packages/core/src/storage/drawings.ts:28

Storage key of the symbol whose drawings are on the chart; null before the first symbol loads.

Methods ​

flush() ​

flush(): Promise<void>

Defined in: packages/core/src/storage/drawings.ts:30

Save a pending change now.

Returns ​

Promise<void>


stop() ​

stop(): void

Defined in: packages/core/src/storage/drawings.ts:32

Stop following symbol switches; a pending change is dropped (call flush first to keep it).

Returns ​

void