Interface IViewportHandler
Package: @aurigma/design-atoms
Methods
applyViewportTransformTo2dContext(context, canvas)
Declaration
applyViewportTransformTo2dContext(context: CanvasRenderingContext2D, canvas: HTMLCanvasElement): void;
Parameters
| Type | Name | Description |
|---|---|---|
| CanvasRenderingContext2D | context | |
| HTMLCanvasElement | canvas |
Returns
| Type | Description |
|---|---|
| void |
applyViewportTransformToTwMatrix(matrix, canvas)
Declaration
applyViewportTransformToTwMatrix(matrix: TextWhizz.Matrix, canvas: HTMLCanvasElement): void;
Parameters
| Type | Name | Description |
|---|---|---|
| TextWhizz.Matrix | matrix | |
| HTMLCanvasElement | canvas |
Returns
| Type | Description |
|---|---|
| void |