Interface: ISeriesPrimitivePaneRenderer
This interface represents rendering some element on the canvas
Methods
draw
▸ draw(target
): void
Method to draw main content of the element
Parameters
Name | Type | Description |
---|---|---|
target | CanvasRenderingTarget2D | canvas context to draw on, refer to FancyCanvas library for more details about this class |
Returns
void
drawBackground
▸ Optional
drawBackground(target
): void
Optional method to draw the background. Some elements could implement this method to draw on the background of the chart. Usually this is some kind of watermarks or time areas highlighting.
Parameters
Name | Type | Description |
---|---|---|
target | CanvasRenderingTarget2D | canvas context to draw on, refer FancyCanvas library for more details about this class |
Returns
void