Back to Website
Show / Hide Table of Contents

Class ViewportHandler

Package: @aurigma/design-atoms

Constructors

(constructor)(_canvas, _viewer)

Constructs a new instance of the ViewportHandler class

Declaration
constructor(_canvas: ICanvas, _viewer: IViewer);
Parameters
Type Name Description
ICanvas _canvas
IViewer _viewer

Methods

_getDesignSize()

Declaration
_getDesignSize(): SizeF;
Returns
Type Description
SizeF

_getDesignTranslate(canvas)

Declaration
_getDesignTranslate(canvas: HTMLCanvasElement): SizeF;
Parameters
Type Name Description
HTMLCanvasElement canvas
Returns
Type Description
SizeF

_getScrollTranslate()

Declaration
_getScrollTranslate(): SizeF;
Returns
Type Description
SizeF

_getViewportRotateAngle()

Declaration
_getViewportRotateAngle(): number;
Returns
Type Description
number

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
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback