Skip to content

Documentation / @ripl/core / TransformTarget

Interface: TransformTarget ​

Defined in: packages/core/src/core/transform.ts:37

The subset of Context transform operations required to apply an element's transform. Implemented by every Context, and by the internal matrix accumulator used to reconstruct an element's world transform for hit testing.

Methods ​

rotate() ​

rotate(angle): void

Defined in: packages/core/src/core/transform.ts:41

Applies a rotation, in radians.

Parameters ​

ParameterType
anglenumber

Returns ​

void


scale() ​

scale(x, y): void

Defined in: packages/core/src/core/transform.ts:43

Applies a scale with the given horizontal and vertical factors.

Parameters ​

ParameterType
xnumber
ynumber

Returns ​

void


translate() ​

translate(x, y): void

Defined in: packages/core/src/core/transform.ts:39

Applies a translation of (x, y).

Parameters ​

ParameterType
xnumber
ynumber

Returns ​

void