C

HtmlCanvasVisual
abstract

Base class for Visuals that use an HTMLCanvasElement for the visualization to render into a CanvasRenderingContext2D.
Inheritance Hierarchy

Remarks

Note that instances of this class cannot be used anywhere where a Visual is required. The visualization is implemented by the render method. This means that this kind of visual does not work in a SvgVisualGroup and wrapping the visual will not work as there is no SVGElement that could be put into another SVG container. These kind of visuals can be used at the top-level of a CanvasComponent's IRenderTreeElements, only.

See Also

Developer's Guide

API

render

Members

No filters for this type

Constructors

Methods

Paints onto the context using HTML Canvas operations.
Implementations should not destroy the context's state, but should make sure to restore the state to the previously active state. This is especially true for the transformation and clip.
abstract

Parameters

renderContext: IRenderContext
The render context of the CanvasComponent
ctx: CanvasRenderingContext2D
The HTML Canvas context to use for rendering.

See Also

Developer's Guide