UNPKG

2.19 kBTypeScriptView Raw
1import { Background } from "./Background/Background";
2import { BackgroundMask } from "./BackgroundMask/BackgroundMask";
3import type { Container } from "../../Core/Container";
4import type { Engine } from "../../engine";
5import { FullScreen } from "./FullScreen/FullScreen";
6import type { IOptionLoader } from "../Interfaces/IOptionLoader";
7import type { IOptions } from "../Interfaces/IOptions";
8import { Interactivity } from "./Interactivity/Interactivity";
9import { ManualParticle } from "./ManualParticle";
10import type { RangeValue } from "../../Types/RangeValue";
11import type { RecursivePartial } from "../../Types/RecursivePartial";
12import { Responsive } from "./Responsive";
13import type { SingleOrMultiple } from "../../Types/SingleOrMultiple";
14import { Theme } from "./Theme/Theme";
15interface DefaultThemes {
16 dark?: string;
17 light?: string;
18}
19export declare class Options implements IOptions, IOptionLoader<IOptions> {
20 [name: string]: unknown;
21 autoPlay: boolean;
22 background: Background;
23 backgroundMask: BackgroundMask;
24 defaultThemes: DefaultThemes;
25 delay: RangeValue;
26 detectRetina: boolean;
27 duration: RangeValue;
28 fpsLimit: number;
29 fullScreen: FullScreen;
30 interactivity: Interactivity;
31 manualParticles: ManualParticle[];
32 particles: import("./Particles/ParticlesOptions").ParticlesOptions;
33 pauseOnBlur: boolean;
34 pauseOnOutsideViewport: boolean;
35 preset?: SingleOrMultiple<string>;
36 responsive: Responsive[];
37 smooth: boolean;
38 style: RecursivePartial<CSSStyleDeclaration>;
39 themes: Theme[];
40 zLayers: number;
41 private readonly _container;
42 private readonly _engine;
43 constructor(engine: Engine, container: Container);
44 get backgroundMode(): FullScreen;
45 set backgroundMode(value: FullScreen);
46 get fps_limit(): number;
47 set fps_limit(value: number);
48 get retina_detect(): boolean;
49 set retina_detect(value: boolean);
50 load(data?: RecursivePartial<IOptions>): void;
51 setResponsive(width: number, pxRatio: number, defaultOptions: IOptions): number | undefined;
52 setTheme(name?: string): void;
53 private _findDefaultTheme;
54 private _importPreset;
55}
56export {};