1 | import { Canvas } from "./Canvas";
|
2 | import type { ClickMode } from "../Enums/Modes/ClickMode";
|
3 | import type { Engine } from "../engine";
|
4 | import { FrameManager } from "./Utils/FrameManager";
|
5 | import type { IContainerInteractivity } from "./Interfaces/IContainerInteractivity";
|
6 | import type { IContainerPlugin } from "./Interfaces/IContainerPlugin";
|
7 | import type { IMovePathGenerator } from "./Interfaces/IMovePathGenerator";
|
8 | import type { IOptions } from "../Options/Interfaces/IOptions";
|
9 | import type { IShapeDrawer } from "./Interfaces/IShapeDrawer";
|
10 | import { Options } from "../Options/Classes/Options";
|
11 | import type { Particle } from "./Particle";
|
12 | import { Particles } from "./Particles";
|
13 | import type { RecursivePartial } from "../Types/RecursivePartial";
|
14 | import { Retina } from "./Retina";
|
15 | import type { Vector } from "./Utils/Vector";
|
16 | export declare class Container {
|
17 | readonly id: string;
|
18 | actualOptions: Options;
|
19 | readonly canvas: Canvas;
|
20 | destroyed: boolean;
|
21 | readonly drawers: Map<string, IShapeDrawer>;
|
22 | duration: number;
|
23 | fpsLimit: number;
|
24 | readonly frameManager: FrameManager;
|
25 | interactivity: IContainerInteractivity;
|
26 | lastFrameTime?: number;
|
27 | lifeTime: number;
|
28 | pageHidden: boolean;
|
29 | readonly particles: Particles;
|
30 | pathGenerators: Map<string, IMovePathGenerator>;
|
31 | readonly plugins: Map<string, IContainerPlugin>;
|
32 | responsiveMaxWidth?: number;
|
33 | readonly retina: Retina;
|
34 | smooth: boolean;
|
35 | started: boolean;
|
36 | zLayers: number;
|
37 | private _currentTheme?;
|
38 | private _delay;
|
39 | private _delayTimeout?;
|
40 | private _drawAnimationFrame?;
|
41 | private readonly _engine;
|
42 | private readonly _eventListeners;
|
43 | private _firstStart;
|
44 | private readonly _initialSourceOptions;
|
45 | private readonly _intersectionObserver;
|
46 | private _options;
|
47 | private _paused;
|
48 | private _sourceOptions;
|
49 | constructor(engine: Engine, id: string, sourceOptions?: RecursivePartial<IOptions>);
|
50 | get options(): Options;
|
51 | get sourceOptions(): RecursivePartial<IOptions> | undefined;
|
52 | addClickHandler(callback: (evt: Event, particles?: Particle[]) => void): void;
|
53 | addPath(key: string, generator?: IMovePathGenerator, override?: boolean): boolean;
|
54 | destroy(): void;
|
55 | draw(force: boolean): void;
|
56 | exportConfiguration(): string;
|
57 | exportImage(callback: BlobCallback, type?: string, quality?: number): void;
|
58 | exportImg(callback: BlobCallback): void;
|
59 | getAnimationStatus(): boolean;
|
60 | handleClickMode(mode: ClickMode | string): void;
|
61 | init(): Promise<void>;
|
62 | loadTheme(name?: string): Promise<void>;
|
63 | pause(): void;
|
64 | play(force?: boolean): void;
|
65 | refresh(): Promise<void>;
|
66 | reset(): Promise<void>;
|
67 | setNoise(noiseOrGenerator?: IMovePathGenerator | ((particle: Particle) => Vector), init?: () => void, update?: () => void): void;
|
68 | setPath(pathOrGenerator?: IMovePathGenerator | ((particle: Particle) => Vector), init?: () => void, update?: () => void): void;
|
69 | start(): Promise<void>;
|
70 | stop(): void;
|
71 | updateActualOptions(): boolean;
|
72 | private _intersectionManager;
|
73 | }
|