Skip to main content

Canvas

Creates a canvas to draw shapes.

constructor(vectors: IVector[])

Receives an array of vectors (line, ellipse, rect and polyline).

new Canvas([/* list of vectors */]).end;
TIP

You can create one canvas and pass all vectors in it, instead to create multiple canvas for each vector.

Types

ICanvas

Canvas properties (extends from IStyleDefinition).