CanvasDOMManager
Defined in: src/canvas/DOMManagers/CanvasDOMManager.ts:11
Extends
Constructors
new CanvasDOMManager()
new CanvasDOMManager(
arg0
?,__namedParameters
?):CanvasDOMManager
Defined in: src/canvas/DOMManagers/CanvasDOMManager.ts:15
Parameters
arg0?
string
| HTMLCanvasElement
__namedParameters?
allowTouchScrolling
boolean
= false
containerClass
string
= ''
Returns
Overrides
StaticCanvasDOMManager
.constructor
Properties
container
container:
HTMLDivElement
Defined in: src/canvas/DOMManagers/CanvasDOMManager.ts:13
lower
lower:
CanvasItem
Defined in: src/canvas/DOMManagers/StaticCanvasDOMManager.ts:22
Inherited from
upper
upper:
CanvasItem
Defined in: src/canvas/DOMManagers/CanvasDOMManager.ts:12
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
Inherited from
StaticCanvasDOMManager
.calcOffset
cleanupDOM()
cleanupDOM(
size
):void
Defined in: src/canvas/DOMManagers/CanvasDOMManager.ts:108
Parameters
size
Returns
void
Overrides
StaticCanvasDOMManager
.cleanupDOM
dispose()
dispose():
void
Defined in: src/canvas/DOMManagers/CanvasDOMManager.ts:120
Returns
void
Overrides
StaticCanvasDOMManager
.dispose
setCSSDimensions()
setCSSDimensions(
size
):void
Defined in: src/canvas/DOMManagers/CanvasDOMManager.ts:102
Parameters
size
Partial
<CSSDimensions
>
Returns
void
Overrides
StaticCanvasDOMManager
.setCSSDimensions
setDimensions()
setDimensions(
size
,retinaScaling
):void
Defined in: src/canvas/DOMManagers/CanvasDOMManager.ts:96
Parameters
size
retinaScaling
number
Returns
void