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 ​
| Parameter | Type |
|---|---|
angle | number |
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 ​
| Parameter | Type |
|---|---|
x | number |
y | number |
Returns ​
void
translate() ​
translate(
x,y):void
Defined in: packages/core/src/core/transform.ts:39
Applies a translation of (x, y).
Parameters ​
| Parameter | Type |
|---|---|
x | number |
y | number |
Returns ​
void