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:18

Properties

container

container: HTMLDivElement

Defined in

src/canvas/DOMManagers/CanvasDOMManager.ts:16


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:15

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:104


dispose()

dispose(): void

Returns

void

Overrides

StaticCanvasDOMManager.dispose

Defined in

src/canvas/DOMManagers/CanvasDOMManager.ts:116


setCSSDimensions()

setCSSDimensions(size): void

Parameters

size: Partial<CSSDimensions>

Returns

void

Overrides

StaticCanvasDOMManager.setCSSDimensions

Defined in

src/canvas/DOMManagers/CanvasDOMManager.ts:98


setDimensions()

setDimensions(size, retinaScaling): void

Parameters

size: TSize

retinaScaling: number

Returns

void

Overrides

StaticCanvasDOMManager.setDimensions

Defined in

src/canvas/DOMManagers/CanvasDOMManager.ts:92