interface IEffectDrawer<TParticle> {
    destroy?: ((container) => void);
    draw: ((data) => void);
    init?: ((container) => Promise<void>);
    loadEffect?: ((particle) => void);
    particleInit?: ((container, particle) => void);
}

Type Parameters

Properties

destroy?: ((container) => void)

Shape destroy function

Type declaration

    • (container): void
    • Parameters

      • container: Container

        the container initializing the shape

      Returns void

draw: ((data) => void)

Shape draw function

Type declaration

init?: ((container) => Promise<void>)

Shape init function

Type declaration

    • (container): Promise<void>
    • Parameters

      • container: Container

        the container initializing the shape

      Returns Promise<void>

loadEffect?: ((particle) => void)

Effect load function

Type declaration

    • (particle): void
    • Parameters

      • particle: TParticle

        the particle using the shape

      Returns void

particleInit?: ((container, particle) => void)

Shape particle init function

Type declaration

    • (container, particle): void
    • Parameters

      • container: Container

        the container containing the shape

      • particle: TParticle

        the particle using the shape

      Returns void