Skip to main content

Class: Transform

Constructors​

constructor​

• new Transform(document, transform, transformOrigin)

Parameters​

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

Defined in​

src/Transform/Transform.ts:69

Properties​

transformTypes​

â–ª Static transformTypes: Record<string, ITransformConstructor>

Defined in​

src/Transform/Transform.ts:58


transforms​

• Private Readonly transforms: ITransform[] = []

Defined in​

src/Transform/Transform.ts:67


document​

• Private Readonly document: Document

Defined in​

src/Transform/Transform.ts:70

Methods​

fromElement​

â–¸ Static fromElement(document, element): Transform

Parameters​

NameType
documentDocument
elementElement

Returns​

Transform

Defined in​

src/Transform/Transform.ts:38


apply​

â–¸ apply(ctx): void

Parameters​

NameType
ctxRenderingContext2D

Returns​

void

Defined in​

src/Transform/Transform.ts:90


unapply​

â–¸ unapply(ctx): void

Parameters​

NameType
ctxRenderingContext2D

Returns​

void

Defined in​

src/Transform/Transform.ts:94


applyToPoint​

â–¸ applyToPoint(point): void

Parameters​

NameType
pointPoint

Returns​

void

Defined in​

src/Transform/Transform.ts:99