Skip to main content

Class: Matrix

Hierarchy​

Implements​

  • ITransform

Constructors​

constructor​

• new Matrix(_, matrix, transformOrigin)

Parameters​

NameType
_Document
matrixstring
transformOriginreadonly [Property<string>, Property<string>]

Defined in​

src/Transform/Matrix.ts:14

Properties​

type​

• type: string = 'matrix'

Implementation of​

ITransform.type

Defined in​

src/Transform/Matrix.ts:9


matrix​

• Protected matrix: MatrixValue

Defined in​

src/Transform/Matrix.ts:10


originX​

• Private Readonly originX: Property<unknown>

Defined in​

src/Transform/Matrix.ts:11


originY​

• Private Readonly originY: Property<unknown>

Defined in​

src/Transform/Matrix.ts:12

Methods​

apply​

â–¸ apply(ctx): void

Parameters​

NameType
ctxRenderingContext2D

Returns​

void

Implementation of​

ITransform.apply

Defined in​

src/Transform/Matrix.ts:24


unapply​

â–¸ unapply(ctx): void

Parameters​

NameType
ctxRenderingContext2D

Returns​

void

Implementation of​

ITransform.unapply

Defined in​

src/Transform/Matrix.ts:45


applyToPoint​

â–¸ applyToPoint(point): void

Parameters​

NameType
pointPoint

Returns​

void

Implementation of​

ITransform.applyToPoint

Defined in​

src/Transform/Matrix.ts:76