Back to Website
Show / Hide Table of Contents

Class RotateHandler

Package: @aurigma/design-atoms

Constructors

(constructor)(canvas, viewer)

Constructs a new instance of the RotateHandler class

Declaration
constructor(canvas: Canvas, viewer: Viewer);
Parameters
Type Name Description
Canvas canvas
Viewer viewer

Properties

rotateDiv

Declaration
rotateDiv: HTMLElement;
Property Value
Type Description
HTMLElement

Methods

addRotateDiv(top, left)

Declaration
addRotateDiv(top: number, left: number): void;
Parameters
Type Name Description
number top
number left
Returns
Type Description
void

addRotationStyle()

Declaration
addRotationStyle(): void;
Returns
Type Description
void

calculatePositionRotateDiv(contentAngle, offsetLeft, offsetTop, pt, contentWidth, contentHeight)

Declaration
calculatePositionRotateDiv(contentAngle: number, offsetLeft: number, offsetTop: number, pt: PointF, contentWidth: number, contentHeight: number): PointF;
Parameters
Type Name Description
number contentAngle
number offsetLeft
number offsetTop
PointF pt
number contentWidth
number contentHeight
Returns
Type Description
PointF

getRotatedPointFromSize(point, size, angle)

Declaration
static getRotatedPointFromSize(point: PointF, size: SizeF, angle: number): PointF;
Parameters
Type Name Description
PointF point
SizeF size
number angle
Returns
Type Description
PointF

removeRotateDiv()

Declaration
removeRotateDiv(): void;
Returns
Type Description
void

updateRotateDegreeDiv(angle)

Declaration
updateRotateDegreeDiv(angle: number): void;
Parameters
Type Name Description
number angle
Returns
Type Description
void

updateRotatePositionDiv(top, left)

Declaration
updateRotatePositionDiv(top: number, left: number): void;
Parameters
Type Name Description
number top
number left
Returns
Type Description
void

updateView(selectedHandler, pt, state, angle)

Declaration
updateView(selectedHandler: BaseRectangleItemHandler, pt: PointF, state: InputState, angle: number): void;
Parameters
Type Name Description
BaseRectangleItemHandler selectedHandler
PointF pt
InputState state
number angle
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