interface IShapeDrawer<TParticle> {
    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

Implemented by

    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

        Returns number

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

    Type declaration

      • (container): Promise<void>
      • Parameters

        Returns Promise<void>

    loadShape?: ((particle) => void)

    Type declaration

      • (particle): void
      • Parameters

        Returns void

    particleDestroy?: ((particle) => void)

    Type declaration

      • (particle): void
      • Parameters

        Returns void

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

    Type declaration

    validTypes: readonly string[]