1681-engine / index / AxisPlacement
Interface: AxisPlacement ​
Defined in: src/parallax/parallaxMath.ts:29
Where one axis of a layer goes this frame; written into a caller's object so a frame allocates nothing.
Properties ​
phase ​
ts
phase: number;Defined in: src/parallax/parallaxMath.ts:35
For a repeated axis, the pattern's offset inside the strip (a tiling sprite's tile position), in [0, tile).
position ​
ts
position: number;Defined in: src/parallax/parallaxMath.ts:31
The layer's world position on this axis.
size ​
ts
size: number;Defined in: src/parallax/parallaxMath.ts:33
For a repeated axis, how long the tiled strip is (it covers the view); otherwise the content's own size.
visible ​
ts
visible: boolean;Defined in: src/parallax/parallaxMath.ts:37
For an axis that does not repeat, whether the content reaches into the view at all.