Hierarchy

  • IContainerPlugin

Properties

clickPositionValid?: ((position: ICoordinates) => boolean)

Type declaration

draw?: ((context: CanvasRenderingContext2D, delta: IDelta) => void)

Type declaration

    • (context: CanvasRenderingContext2D, delta: IDelta): void
    • Parameters

      • context: CanvasRenderingContext2D
      • delta: IDelta

      Returns void

drawParticle?: ((context: CanvasRenderingContext2D, particle: Particle, delta: IDelta) => void)

Type declaration

    • (context: CanvasRenderingContext2D, particle: Particle, delta: IDelta): void
    • Parameters

      Returns void

handleClickMode?: ((mode: string) => void)

Type declaration

    • (mode: string): void
    • Parameters

      • mode: string

      Returns void

init?: ((options?: RecursivePartial<IOptions>) => void)

Type declaration

initAsync?: ((options?: RecursivePartial<IOptions>) => Promise<void>)

Type declaration

particleBounce?: ((particle: Particle, delta: IDelta, direction: OutModeDirection) => boolean)

Type declaration

particleCreated?: ((particle: Particle) => void)

Type declaration

particleDestroyed?: ((particle: Particle, override?: boolean) => void)

Type declaration

    • (particle: Particle, override?: boolean): void
    • Parameters

      • particle: Particle
      • Optional override: boolean

      Returns void

particleFillColor?: ((particle: Particle) => undefined | string | IRangeColor)

Type declaration

particlePosition?: ((position?: ICoordinates, particle?: Particle) => undefined | ICoordinates)

Type declaration

particleStrokeColor?: ((particle: Particle) => undefined | string | IRangeColor)

Type declaration

particleUpdate?: ((particle: Particle, delta: IDelta) => void)

Type declaration

particlesInitialization?: (() => boolean)

Type declaration

    • (): boolean
    • Returns boolean

particlesSetup?: (() => void)

Type declaration

    • (): void
    • Returns void

pause?: (() => void)

Type declaration

    • (): void
    • Returns void

play?: (() => void)

Type declaration

    • (): void
    • Returns void

reset?: (() => void)

Type declaration

    • (): void
    • Returns void

resize?: (() => void)

Type declaration

    • (): void
    • Returns void

start?: (() => void)

Type declaration

    • (): void
    • Returns void

startAsync?: (() => Promise<void>)

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

stop?: (() => void)

Type declaration

    • (): void
    • Returns void

update?: ((delta: IDelta) => void)

Type declaration

    • (delta: IDelta): void
    • Parameters

      Returns void