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

Type Parameters

Properties

afterDraw?: ((data: IShapeDrawData<TParticle>) => void)
destroy?: ((container: Container) => void)
draw: ((data: IShapeDrawData<TParticle>) => void)
getSidesCount?: ((particle: TParticle) => number)
init?: ((container: Container) => Promise<void>)
loadShape?: ((particle: TParticle) => void)
particleDestroy?: ((particle: TParticle) => void)
particleInit?: ((container: Container, particle: TParticle) => void)
validTypes: readonly string[]