Interface: InfiniteCanvas 
This interface contains properties that determine the behavior of the InfiniteCanvas.
Hierarchy 
- ↳ - InfiniteCanvas
Properties 
greedyGestureHandling 
• greedyGestureHandling: boolean
If true, this means that the InfiniteCanvas will pan when touched with one finger, and that it will zoom when the user scrolls without pressing the Ctrl key
Default Value
falseInherited from 
Defined in 
inverseTransformation 
• Readonly inverseTransformation: TransformationRepresentation
The inverse of transformation
Inherited from 
Transformed.inverseTransformation
Defined in 
ondraw 
• ondraw: (this: InfiniteCanvas, event: TransformationEvent) => any
The event handler property for the EventMap.draw event
Type declaration 
▸ (this, event): any
Parameters 
| Name | Type | 
|---|---|
| this | InfiniteCanvas | 
| event | TransformationEvent | 
Returns 
any
Inherited from 
InfiniteCanvasEventHandlers.ondraw
Defined in 
ontouchignored 
• ontouchignored: (this: InfiniteCanvas, event: Event) => any
The event handler property for the EventMap.touchignored event
Type declaration 
▸ (this, event): any
Parameters 
| Name | Type | 
|---|---|
| this | InfiniteCanvas | 
| event | Event | 
Returns 
any
Inherited from 
InfiniteCanvasEventHandlers.ontouchignored
Defined in 
ontransformationchange 
• ontransformationchange: (this: InfiniteCanvas, event: TransformationEvent) => any
The event handler property for the EventMap.transformationchange event
Type declaration 
▸ (this, event): any
Parameters 
| Name | Type | 
|---|---|
| this | InfiniteCanvas | 
| event | TransformationEvent | 
Returns 
any
Inherited from 
InfiniteCanvasEventHandlers.ontransformationchange
Defined in 
ontransformationend 
• ontransformationend: (this: InfiniteCanvas, event: TransformationEvent) => any
The event handler property for the EventMap.transformationend event
Type declaration 
▸ (this, event): any
Parameters 
| Name | Type | 
|---|---|
| this | InfiniteCanvas | 
| event | TransformationEvent | 
Returns 
any
Inherited from 
InfiniteCanvasEventHandlers.ontransformationend
Defined in 
ontransformationstart 
• ontransformationstart: (this: InfiniteCanvas, event: TransformationEvent) => any
The event handler property for the EventMap.transformationstart event
Type declaration 
▸ (this, event): any
Parameters 
| Name | Type | 
|---|---|
| this | InfiniteCanvas | 
| event | TransformationEvent | 
Returns 
any
Inherited from 
InfiniteCanvasEventHandlers.ontransformationstart
Defined in 
onwheelignored 
• onwheelignored: (this: InfiniteCanvas, event: Event) => any
The event handler property for the EventMap.wheelignored event
Type declaration 
▸ (this, event): any
Parameters 
| Name | Type | 
|---|---|
| this | InfiniteCanvas | 
| event | Event | 
Returns 
any
Inherited from 
InfiniteCanvasEventHandlers.onwheelignored
Defined in 
rotationEnabled 
• rotationEnabled: boolean
Determines whether rotating the InfiniteCanvas is possible or not
Default Value
trueInherited from 
Defined in 
transformation 
• Readonly transformation: TransformationRepresentation
The transformation that, when applied to a point (x, y) in the CSS-pixel-base coordinate system of the <canvas> (which has its origin at the top-left corner of the canvas), returns the corresponding point in the InfiniteCanvas's coordinate system
Inherited from 
Defined in 
units 
• units: Units
Determines the units to use when drawing on an InfiniteCanvas
Default Value
{@link Units.CANVAS}Inherited from 
Defined in 
Methods 
addEventListener 
▸ addEventListener<K>(type, listener, options?): void
See addEventListener
Type parameters 
| Name | Type | 
|---|---|
| K | extends keyof EventMap | 
Parameters 
| Name | Type | 
|---|---|
| type | K | 
| listener | ( this:InfiniteCanvas,ev:EventMap[K]) =>any | 
| options? | boolean|AddEventListenerOptions | 
Returns 
void
Inherited from 
InfiniteCanvasEventHandlers.addEventListener
Defined in 
▸ addEventListener(type, listener, options?): void
Parameters 
| Name | Type | 
|---|---|
| type | string | 
| listener | EventListenerOrEventListenerObject | 
| options? | boolean|AddEventListenerOptions | 
Returns 
void
Inherited from 
InfiniteCanvasEventHandlers.addEventListener
Defined in 
getContext 
▸ getContext(contextType?): InfiniteCanvasRenderingContext2D
This methods return the InfiniteCanvasRenderingContext2D belonging to this instance of InfiniteCanvas
Parameters 
| Name | Type | Description | 
|---|---|---|
| contextType? | "2d" | for (partial) compatibility with the other getContext() | 
Returns 
InfiniteCanvasRenderingContext2D
Defined in 
removeEventListener 
▸ removeEventListener<K>(type, listener, options?): void
Type parameters 
| Name | Type | 
|---|---|
| K | extends keyof EventMap | 
Parameters 
| Name | Type | 
|---|---|
| type | K | 
| listener | ( this:InfiniteCanvas,ev:EventMap[K]) =>any | 
| options? | boolean|EventListenerOptions | 
Returns 
void
Inherited from 
InfiniteCanvasEventHandlers.removeEventListener
Defined in 
▸ removeEventListener(type, listener, options?): void
Parameters 
| Name | Type | 
|---|---|
| type | string | 
| listener | EventListenerOrEventListenerObject | 
| options? | boolean|EventListenerOptions | 
Returns 
void
Inherited from 
InfiniteCanvasEventHandlers.removeEventListener