Documentation / @ripl/core / getWorldTransform
Function: getWorldTransform()
getWorldTransform(
element):Matrix|null
Defined in: packages/core/src/core/element.ts:388
Reconstructs an element's world transform — the composition of its own transform and every ancestor group's transform, from the root down — for use in hit testing against backends (such as canvas) that do not natively account for element transforms.
Parameters
| Parameter | Type | Description |
|---|---|---|
element | Element | The element whose world transform to compute. |
Returns
Matrix | null
The composed Matrix, or null when the whole chain is the identity transform (the common case), letting callers skip any point remapping.