Documentation / @ripl/core / TransformTarget
Interface: TransformTarget
Defined in: packages/core/src/core/element.ts:291
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/element.ts:295
Applies a rotation, in radians.
Parameters
| Parameter | Type |
|---|---|
angle | number |
Returns
void
scale()
scale(
x,y):void
Defined in: packages/core/src/core/element.ts:297
Applies a scale with the given horizontal and vertical factors.
Parameters
| Parameter | Type |
|---|---|
x | number |
y | number |
Returns
void
translate()
translate(
x,y):void
Defined in: packages/core/src/core/element.ts:293
Applies a translation of (x, y).
Parameters
| Parameter | Type |
|---|---|
x | number |
y | number |
Returns
void