charton API / @chart-on/core / index / PrimitiveHost
Interface: PrimitiveHost
Defined in: packages/core/src/primitives.ts:62
Handed to attached: what the primitive is attached to, and a redraw trigger.
Properties
pane
readonlypane:Pane
Defined in: packages/core/src/primitives.ts:63
series
readonlyseries:Series<object> |null
Defined in: packages/core/src/primitives.ts:64
Methods
requestOverlayRedraw()
requestOverlayRedraw():
void
Defined in: packages/core/src/primitives.ts:72
Redraw only the overlay layer on the next frame: cheaper, and enough when just the drawing of the 'normal' or 'top' layer, the axes or a lane changed, not the price range or the lane width.
Returns
void
requestRedraw()
requestRedraw():
void
Defined in: packages/core/src/primitives.ts:66
Redraw the chart on the next frame. Primitives are not redrawn otherwise.
Returns
void