Creates an instance of the Component class and initializes it with a RenderedGroupNode.
The component's state is constructed dynamically using a constructor function and additional variables.
The variable arguments used in the component's objectConstructor.
Determines whether the node has any animation data.
The collection which this RenderedGroupNode object wraps.
Determines if the current node is a leaf node.
Recursively determines the leaf nodes in the tree formed by the RenderedGroupNode
Returns whether all animations in this node's animation set are complete at a given time.
The current timestamp.
Fades in all contained objects over a given duration.
Duration of the animation in milliseconds.
If true, respects original opacity before fading in.
If true, the animation is asynchronous
Fades out all contained objects over a given duration.
Duration of the animation in milliseconds.
If true, the animation is asynchronous
Returns the WebaniCollection frame at the given time.
The time in milliseconds
Immediately hides the entire RenderedGroupNode. No animations are queued.
Moves the node by a specified offset (i.e. a translation).
Duration of the animation.
If true, the animation is asynchronous.
Constructs a Line between the start and end points.
Configuration object with start, end, optional thickness and material.
A Line component positioned and rotated to match the input vectors.
Registers a callback to be invoked whenever a new animation is added.
Callback receiving the newly added animation and whether it is asynchronous.
Immediately sets the position of the entire RenderedGroupNode. No animations are queued.
Immediately sets the rotation of the entire RenderedGroupNode. No animations are queued.
Scales all objects in the group by the given factor.
The scale factor on each axis.
Duration of the animation.
If true, the animation is asynchronous.
If true, the animation plays in reverse.
Animates an interpolated change of color for all WebaniPrimitiveObjects in the node with the provided duration
RGB values of the new color.
Duration of the transition animation.
If true, the animation is asynchronous.
Moves the node to a specific position.
Duration of the animation.
If true, the animation is asynchronous.
Morphs this node into another RendereableObject. This is a very powerful method which can be utilized to recreate many
of the other animation methods available to RenderedGroupNode objects.
Target object.
Duration of the transformation.
If true, the animation is asynchronous.
Waits for a specified duration without modifying the object. Useful for sequencing animations.
Wait time in milliseconds.
Performs a zoom-in effect using backwards Scale.
Duration of the zoom.
If true, the animation is asynchronous.
Performs a zoom-out effect using Scale followed by a FadeOut.
Duration of the zoom.
If true, the animation is asynchronous.
StaticCreateRecursively constructs a RenderedGroupNode hierarchy from a nested object structure.
A nested object to convert into a RenderedGroupNode.
A root RenderedGroupNode representing the object structure.
StaticGetA static method that returns a generator function for creating new instances of the Component class.
Types are automatically inferred from the objectConstructor
A function that can be used to create instances of the Component class with specific parameters.
A component that creates a line between two 3D points.
Computes the angle and length from the start and end vectors, then delegates to the base
Linecomponent.