Skip to content

StaticCanvasDOMManager

Defined in: src/canvas/DOMManagers/StaticCanvasDOMManager.ts:14

Extended by

Constructors

new StaticCanvasDOMManager()

new StaticCanvasDOMManager(arg0?): StaticCanvasDOMManager

Defined in: src/canvas/DOMManagers/StaticCanvasDOMManager.ts:24

Parameters

arg0?

string | HTMLCanvasElement

Returns

StaticCanvasDOMManager

Properties

lower

lower: CanvasItem

Defined in: src/canvas/DOMManagers/StaticCanvasDOMManager.ts:22

Methods

calcOffset()

calcOffset(): object

Defined in: src/canvas/DOMManagers/StaticCanvasDOMManager.ts:71

Calculates canvas element offset relative to the document

Returns

object

left

left: number = 0

top

top: number = 0


cleanupDOM()

cleanupDOM(__namedParameters): void

Defined in: src/canvas/DOMManagers/StaticCanvasDOMManager.ts:47

Parameters

__namedParameters

TSize

Returns

void


dispose()

dispose(): void

Defined in: src/canvas/DOMManagers/StaticCanvasDOMManager.ts:75

Returns

void


setCSSDimensions()

setCSSDimensions(size): void

Defined in: src/canvas/DOMManagers/StaticCanvasDOMManager.ts:64

Parameters

size

Partial<CSSDimensions>

Returns

void


setDimensions()

setDimensions(size, retinaScaling): void

Defined in: src/canvas/DOMManagers/StaticCanvasDOMManager.ts:59

Parameters

size

TSize

retinaScaling

number

Returns

void