Skip to main content

Interface: LwcSeriesPrimitive

Defined in: packages/sdvplot/src/lightweight-charts.ts:248

A Lightweight Charts series primitive: attach it with series.attachPrimitive(primitive).

Methods​

attached()​

attached(param): void

Defined in: packages/sdvplot/src/lightweight-charts.ts:250

Lightweight Charts calls this on attachPrimitive: the logos start loading.

Parameters​

param​

LwcAttached

Returns​

void


detached()​

detached(): void

Defined in: packages/sdvplot/src/lightweight-charts.ts:253

Lightweight Charts calls this on detachPrimitive: the chart is forgotten, nothing more is drawn, and drawnMarks reads empty.

Returns​

void


paneViews()​

paneViews(): readonly object[]

Defined in: packages/sdvplot/src/lightweight-charts.ts:257

The one pane view, whose renderer paints the logos (the same array every call, as the library asks).

Returns​

readonly object[]


updateAllViews()​

updateAllViews(): void

Defined in: packages/sdvplot/src/lightweight-charts.ts:255

Lightweight Charts calls this when the view changes; the logos are placed at each draw, so it does nothing.

Returns​

void