AbstractWGSLUniformMemberElement

← prev index next →

The shared element lifecycle of every named-uniform member child (the scalar, the f32 array, and the vec2/3/4 family): the structural name with rejection rollback, owner adoption/rebind/release across DOM-connected and detached-tree paths, effect-target scene-forwarding, and CSS-variable binding activation.

Remarks

Subclasses own everything value-shaped: their storage and validation, their static animatableProperties (declared per class so the metadata generator's static analysis resolves each list), kind/floatCount, writeInto, base-value plumbing, and toDescription. The lifecycle here is the ColorStop leaf-family pattern with one deliberate difference: value changes notify the owner (via _notifyOwnerValue) so a committed animated value refreshes the host's packed cache.

Abstract base class — not instantiated directly. Construct one of its concrete subclasses; this class contributes the members below to them.

Properties

Other Properties

PropertyTypeDefaultDescriptionDeclared by
name string "" Gets the WGSL identifier this member is addressed by. AbstractWGSLUniformMemberElement
sceneread-only any Gets the Scene this animatable belongs to, if any. SkenraAnimatable
animationsread-only SkenraAnimation[] Public getter for the animations affecting this target. SkenraAnimatable

Methods

MethodDescriptionDeclared by
animate(firstArg: TypedKeyframe<this>[] | TypedPropertyIndexedKeyframes<this> | Record<string, any> | globalThis.Keyframe[] | globalThis.PropertyIndexedKeyframes | null, secondArg?: number | KeyframeAnimationOptions | globalThis.KeyframeAnimationOptions): SkenraAnimation & Animation Creates a new SkenraAnimation for this target per Web Animations API. SkenraAnimatable
removeAnimation(animation: SkenraAnimation): boolean Removes a specific animation from this object. SkenraAnimatable
constrain(type: K, config: ConstraintConfigMap[K]): ConstraintReturnMap[K] Creates a constraint on this Animatable using a fluent API. SkenraAnimatable