@wardic/object
Effect-typed: this package uses Effect's own types, so it moves to a new Effect major only in a Wardic major (the roadmap).
Wardic for any object's properties: Motion's animate and Batches on plain objects (a Canvas 2D sprite, a uniforms object, a { x, y }), on frames the host pumps. Each module is @wardic/object/<Module>, and each page is generated from its source's doc comments.
| Module | |
|---|---|
| ObjectBatch | Many objects animated on the same keys as one run (a Batch): hundreds of sprites, a chart's points, a grid of meshes that move together. |
| ObjectRenderer | The property writer: Wardic's values written onto a plain object's properties, by their names, as they are (object[key] = value), once a frame, in the frame that computed them. |
| ObjectValues | A plain object's values for Wardic: where each key it animates starts (the property's own value), and the ports core reads an Environment's values through, with no style, no layout to measure and no variables. |
| PumpedFrames | Refresh frames the host pumps: Wardic's frames are the host loop's, so its writes land in the frame that draws them (a scene's Host loop: three's setAnimationLoop, an XR session's, a game loop). |
| WardicObject | Wardic for any object's properties: Motion's animate on plain objects (a three.js mesh's material, a camera, a uniforms object, a Canvas 2D sprite, a plain { x, y }), on frames the host pumps. |