webani - v1.0.0
    Preparing search index...

    A component that generates a circular polygon in the scene.

    Extends the base Component class and creates a WebaniPolygon that approximates a circle using 1000 points.

    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 CircleComponent

    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 CircleComponent

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