Skip to content

Interface: InfiniteCanvasCtr

Constructors

constructor

new InfiniteCanvasCtr(canvas, config?): InfiniteCanvas

Creates a new instance of an InfiniteCanvas

Parameters

NameTypeDescription
canvasHTMLCanvasElementThe canvas on which to draw the InfiniteCanvas
config?Partial<Config>The InfiniteCanvas's initial configuration

Returns

InfiniteCanvas

Defined in

infinite-canvas.ts:61

Properties

CANVAS_UNITS

CANVAS_UNITS: Units

Static property with a value of Units.CANVAS

Defined in

infinite-canvas.ts:66


CSS_UNITS

CSS_UNITS: Units

Static property with a value of Units.CSS

Defined in

infinite-canvas.ts:70


prototype

prototype: InfiniteCanvas

Defined in

infinite-canvas.ts:62