ThreeValues
A three.js Subject's values for Wardic: where each key it animates starts, found where the writer
writes it (a scene object's transforms, its own number, its material's, a uniform's, a TSL uniform
node's, a vector's axis), and the scene's Positional keys. A key found nowhere, whose value isn't a
number or a string, or that can't be written where it's found (a scene object's id, a frozen
uniform's) is an error naming it: Wardic adds no property to a scene.
import * as ThreeValues from "@wardic/three/ThreeValues"
ThreeValues.read(mesh, "rotateY") // its rotation.y, in degrees
ThreeValues.read(mesh, "opacity") // mesh.material.opacityVariables
positionalKeys
const positionalKeys: Layer.Layer<ReducedMotion.PositionalKeys>;A scene's Positional keys: the vestibular case is a camera's move as much as an object's.
read
const read: (subject, key) => unknown = Lookup.read;subject's value for key now, as a Batch reads a member's before it moves it: where the lookup finds
it, undefined where it's nowhere.
Parameters
subject
object
key
string
Returns
unknown
startLinksOf
const startLinksOf: (subject) => Spine.StartLinks;subject's Base-value links: each key starts from its value where the lookup finds it.
Parameters
subject
object
Returns
Spine.StartLinks
Functions
isPositional()
function isPositional(key): boolean;Whether reduced motion snaps key in a scene: a transform key on any Subject, and a camera's fov and zoom.
Parameters
key
string
Returns
boolean