Namespace: DummyCanvasContext

StockChartX. DummyCanvasContext

Represents dummy canvas context.

Members


<static> context :CanvasRenderingContext2D

Canvas rendering context.
Type:
  • CanvasRenderingContext2D

Methods


<static> applyTextTheme(theme)

Applies text theme to the context.
Parameters:
Name Type Description
theme StockChartX.TextTheme The text theme.

<static> measureText(text, textTheme)

Returns text size that is required to render text using a given theme.
Parameters:
Name Type Argument Description
text String The text to be measured.
textTheme StockChartX.TextTheme <optional>
The text theme.
Returns:
Type
StockChartX.Size

<static> textWidth(text, textTheme)

Returns width that is necessary to render given text.
Parameters:
Name Type Argument Description
text string The text to be measured.
textTheme StockChartX.TextTheme <optional>
The text theme.
Returns:
Type
Number