interface IShapeDrawer {
    afterDraw?: ((data) => void);
    destroy?: ((container) => void);
    draw: ((data) => void);
    getSidesCount?: ((particle) => number);
    init?: ((container) => Promise<void>);
    loadShape?: ((particle) => void);
    particleDestroy?: ((particle) => void);
    particleInit?: ((container, particle) => void);
    validTypes: readonly string[];
}

Type Parameters

Properties

afterDraw?: ((data) => void)

Type declaration

destroy?: ((container) => void)

Type declaration

    • (container): void
    • Parameters

      Returns void

draw: ((data) => void)

Type declaration

getSidesCount?: ((particle) => number)

Type declaration

    • (particle): number
    • Parameters

      • particle: TParticle

      Returns number

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

Type declaration

    • (container): Promise<void>
    • Parameters

      Returns Promise<void>

loadShape?: ((particle) => void)

Type declaration

    • (particle): void
    • Parameters

      • particle: TParticle

      Returns void

particleDestroy?: ((particle) => void)

Type declaration

    • (particle): void
    • Parameters

      • particle: TParticle

      Returns void

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

Type declaration

    • (container, particle): void
    • Parameters

      Returns void

validTypes: readonly string[]