webani - v1.0.0
    Preparing search index...

    A component that creates a 3D square by generating a rectangle with equal side lengths.

    This component uses the Rectangle component, where both the length_x and length_y parameters are set to the same value, ensuring that the result is a square.

    Hierarchy (View Summary)

    Indexable

    • [key: string | number | symbol]: any
    Index

    Constructors

    • 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.

      Parameters

      • ...vars: unknown[]

        The variable arguments used in the component's objectConstructor.

      Returns SquareComponent

    Properties

    animationSet: AnimationSet

    Animation set used to track and control animations applied to this group.

    Accessors

    Methods

    • Fades in all contained objects over a given duration.

      Parameters

      • duration: number = 1000

        Duration of the animation in milliseconds.

      • keepInitialOpacity: boolean = false

        If true, respects original opacity before fading in.

      • asynchronous: boolean = false

        If true, the animation is asynchronous

      Returns SquareComponent

    • A static method that returns a generator function for creating new instances of the Component class. Types are automatically inferred from the objectConstructor

      Type Parameters

      Parameters

      • this: new (...args: unknown[]) => T

      Returns (...vars: Parameters<T["objectConstructor"]>) => T

      A function that can be used to create instances of the Component class with specific parameters.