Appearance
anim-format (runtime format) / anchorMatrix
Function: anchorMatrix()
ts
function anchorMatrix(
an,
stage,
view
): Matrix;THE anchor matrix: authored stage space → shown stage space for a layer with anchor an, the authored stage stage and the visible view (stageFit().view). Left / top keep the distance to that edge, right / bottom to the far edge, centre / middle to the view's centre; stretch maps the authored edges onto the view's (scales that axis). The view equal to the stage = identity.
Parameters
| Parameter | Type |
|---|---|
an | AnimAnchor |
stage | { height: number; width: number; } |
stage.height | number |
stage.width | number |
view | StageRect |