Skip to main content

Class: Rotate

Constructors​

constructor​

• new Rotate(document, rotate, transformOrigin)

Parameters​

NameType
documentDocument
rotatestring
transformOriginreadonly [Property<string>, Property<string>]

Defined in​

src/Transform/Rotate.ts:15

Properties​

type​

• type: string = 'rotate'

Defined in​

src/Transform/Rotate.ts:8


angle​

• Private Readonly angle: Property<unknown>

Defined in​

src/Transform/Rotate.ts:9


originX​

• Private Readonly originX: Property<unknown>

Defined in​

src/Transform/Rotate.ts:10


originY​

• Private Readonly originY: Property<unknown>

Defined in​

src/Transform/Rotate.ts:11


cx​

• Private Readonly cx: number

Defined in​

src/Transform/Rotate.ts:12


cy​

• Private Readonly cy: number

Defined in​

src/Transform/Rotate.ts:13

Methods​

apply​

â–¸ apply(ctx): void

Parameters​

NameType
ctxRenderingContext2D

Returns​

void

Defined in​

src/Transform/Rotate.ts:29


unapply​

â–¸ unapply(ctx): void

Parameters​

NameType
ctxRenderingContext2D

Returns​

void

Defined in​

src/Transform/Rotate.ts:45


applyToPoint​

â–¸ applyToPoint(point): void

Parameters​

NameType
pointPoint

Returns​

void

Defined in​

src/Transform/Rotate.ts:61