IViewportHandler
Interfaces
IViewportHandler
Methods
applyViewportTransformTo2dContext()
applyViewportTransformTo2dContext(context, canvas): void;
Parameters
| Parameter | Type |
|---|---|
context | CanvasRenderingContext2D |
canvas | HTMLCanvasElement |
Returns
void
applyViewportTransformToTwMatrix()
applyViewportTransformToTwMatrix(matrix, canvas): void;
Parameters
| Parameter | Type |
|---|---|
matrix | Matrix |
canvas | HTMLCanvasElement |
Returns
void
getWorkspaceMargin()?
optional getWorkspaceMargin(): Margin;
Returns the viewer content margin (in css pixels) mapped to the workspace sides, taking the content rotation into account.
Returns
Margin