Skip to content

CanvasDOMManager

Extends

Constructors

new CanvasDOMManager()

new CanvasDOMManager(arg0?, __namedParameters?): CanvasDOMManager

Parameters

arg0?: string | HTMLCanvasElement

__namedParameters? = {}

__namedParameters.allowTouchScrolling?: boolean = false

__namedParameters.containerClass?: string = ''

Returns

CanvasDOMManager

Overrides

StaticCanvasDOMManager.constructor

Defined in

src/canvas/DOMManagers/CanvasDOMManager.ts:15

Properties

container

container: HTMLDivElement

Defined in

src/canvas/DOMManagers/CanvasDOMManager.ts:13


lower

lower: CanvasItem

Inherited from

StaticCanvasDOMManager.lower

Defined in

src/canvas/DOMManagers/StaticCanvasDOMManager.ts:22


upper

upper: CanvasItem

Defined in

src/canvas/DOMManagers/CanvasDOMManager.ts:12

Methods

calcOffset()

calcOffset(): object

Calculates canvas element offset relative to the document

Returns

object

left

left: number = 0

top

top: number = 0

Inherited from

StaticCanvasDOMManager.calcOffset

Defined in

src/canvas/DOMManagers/StaticCanvasDOMManager.ts:71


cleanupDOM()

cleanupDOM(size): void

Parameters

size: TSize

Returns

void

Overrides

StaticCanvasDOMManager.cleanupDOM

Defined in

src/canvas/DOMManagers/CanvasDOMManager.ts:108


dispose()

dispose(): void

Returns

void

Overrides

StaticCanvasDOMManager.dispose

Defined in

src/canvas/DOMManagers/CanvasDOMManager.ts:120


setCSSDimensions()

setCSSDimensions(size): void

Parameters

size: Partial<CSSDimensions>

Returns

void

Overrides

StaticCanvasDOMManager.setCSSDimensions

Defined in

src/canvas/DOMManagers/CanvasDOMManager.ts:102


setDimensions()

setDimensions(size, retinaScaling): void

Parameters

size: TSize

retinaScaling: number

Returns

void

Overrides

StaticCanvasDOMManager.setDimensions

Defined in

src/canvas/DOMManagers/CanvasDOMManager.ts:96