interface AbsorberContainer {
    actualOptions: AbsorberOptions;
    addAbsorber: ((options: RecursivePartial<IAbsorber>, position?: ICoordinates) => Promise<AbsorberInstance>);
    canvas: Canvas;
    destroyed: boolean;
    effectDrawers: Map<string, IEffectDrawer<Particle>>;
    fpsLimit: number;
    getAbsorber: ((idxOrName?: string | number) => undefined | AbsorberInstance);
    id: symbol;
    interactivity: IContainerInteractivity;
    pageHidden: boolean;
    particles: Particles;
    pathGenerators: Map<string, IMovePathGenerator>;
    plugins: Map<string, IContainerPlugin>;
    retina: Retina;
    shapeDrawers: Map<string, IShapeDrawer<Particle>>;
    started: boolean;
    zLayers: number;
    get animationStatus(): boolean;
    get options(): Options;
    get sourceOptions(): undefined | RecursivePartial<IOptions>;
    addClickHandler(callback: ((evt: Event, particles?: Particle[]) => void)): void;
    addLifeTime(value: number): void;
    addPath(key: string, generator: IMovePathGenerator, override?: boolean): boolean;
    alive(): boolean;
    clearClickHandlers(): void;
    destroy(remove?: boolean): void;
    draw(force: boolean): void;
    export(type: string, options?: Record<string, unknown>): Promise<undefined | Blob>;
    handleClickMode(mode: string): void;
    init(): Promise<void>;
    loadTheme(name?: string): Promise<void>;
    pause(): void;
    play(force?: boolean): void;
    refresh(): Promise<void>;
    reset(sourceOptions?: RecursivePartial<IOptions>): Promise<void>;
    start(): Promise<void>;
    stop(): void;
    updateActualOptions(): boolean;
}

Hierarchy (view full)

Properties

actualOptions: AbsorberOptions
addAbsorber: ((options: RecursivePartial<IAbsorber>, position?: ICoordinates) => Promise<AbsorberInstance>)
canvas: Canvas
destroyed: boolean
effectDrawers: Map<string, IEffectDrawer<Particle>>
fpsLimit: number
getAbsorber: ((idxOrName?: string | number) => undefined | AbsorberInstance)
id: symbol
pageHidden: boolean
particles: Particles
pathGenerators: Map<string, IMovePathGenerator>
plugins: Map<string, IContainerPlugin>
retina: Retina
shapeDrawers: Map<string, IShapeDrawer<Particle>>
started: boolean
zLayers: number

Accessors

  • get animationStatus(): boolean
  • Returns boolean

  • get options(): Options
  • Returns Options

Methods

  • Parameters

    • callback: ((evt: Event, particles?: Particle[]) => void)
        • (evt, particles?): void
        • Parameters

          Returns void

    Returns void

  • Parameters

    • value: number

    Returns void

  • Parameters

    Returns boolean

  • Returns boolean

  • Parameters

    • Optionalremove: boolean

    Returns void

  • Parameters

    • force: boolean

    Returns void

  • Parameters

    • type: string
    • Optionaloptions: Record<string, unknown>

    Returns Promise<undefined | Blob>

  • Parameters

    • mode: string

    Returns void

  • Returns Promise<void>

  • Parameters

    • Optionalname: string

    Returns Promise<void>

  • Returns void

  • Parameters

    • Optionalforce: boolean

    Returns void

  • Returns Promise<void>

  • Parameters

    Returns Promise<void>

  • Returns Promise<void>

  • Returns void

  • Returns boolean