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

Type Parameters

Properties

destroy?: ((container) => void)

Type declaration

    • (container): void
    • Shape destroy function

      Parameters

      • container: Container

        the container initializing the shape

      Returns void

draw: ((data) => void)

Type declaration

    • (data): void
    • Shape draw function

      Parameters

      Returns void

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

Type declaration

    • (container): Promise<void>
    • Shape init function

      Parameters

      • container: Container

        the container initializing the shape

      Returns Promise<void>

loadEffect?: ((particle) => void)

Type declaration

    • (particle): void
    • Effect load function

      Parameters

      • particle: TParticle

        the particle using the shape

      Returns void

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

Type declaration

    • (container, particle): void
    • Shape particle init function

      Parameters

      • container: Container

        the container containing the shape

      • particle: TParticle

        the particle using the shape

      Returns void