1 | import type { IBounds, ICircleBouncer, ICoordinates, IDimension, IParticle } from "../Core/Interfaces";
|
2 | import { DivMode } from "../Enums";
|
3 | import type { ICharacterShape } from "../Options/Interfaces/Particles/Shape/ICharacterShape";
|
4 | import type { SingleOrMultiple } from "../Types";
|
5 | import { DivEvent } from "../Options/Classes/Interactivity/Events/DivEvent";
|
6 | import type { IModeDiv } from "../Options/Interfaces/Interactivity/Modes/IModeDiv";
|
7 | import { OutModeDirection } from "../Enums";
|
8 | declare global {
|
9 | interface Window {
|
10 | customRequestAnimationFrame: (callback: FrameRequestCallback) => number;
|
11 | mozRequestAnimationFrame: (callback: FrameRequestCallback) => number;
|
12 | oRequestAnimationFrame: (callback: FrameRequestCallback) => number;
|
13 | msRequestAnimationFrame: (callback: FrameRequestCallback) => number;
|
14 | webkitRequestAnimationFrame: (callback: FrameRequestCallback) => number;
|
15 | customCancelRequestAnimationFrame: (handle: number) => void;
|
16 | webkitCancelRequestAnimationFrame: (handle: number) => void;
|
17 | mozCancelRequestAnimationFrame: (handle: number) => void;
|
18 | oCancelRequestAnimationFrame: (handle: number) => void;
|
19 | msCancelRequestAnimationFrame: (handle: number) => void;
|
20 | }
|
21 | }
|
22 | export declare function isSsr(): boolean;
|
23 | export declare function animate(): (callback: FrameRequestCallback) => number;
|
24 | export declare function cancelAnimation(): (handle: number) => void;
|
25 | export declare function isInArray<T>(value: T, array: SingleOrMultiple<T>): boolean;
|
26 | export declare function loadFont(character: ICharacterShape): Promise<void>;
|
27 | export declare function arrayRandomIndex<T>(array: T[]): number;
|
28 | export declare function itemFromArray<T>(array: T[], index?: number, useIndex?: boolean): T;
|
29 | export declare function isPointInside(point: ICoordinates, size: IDimension, radius?: number, direction?: OutModeDirection): boolean;
|
30 | export declare function areBoundsInside(bounds: IBounds, size: IDimension, direction?: OutModeDirection): boolean;
|
31 | export declare function calculateBounds(point: ICoordinates, radius: number): IBounds;
|
32 | export declare function deepExtend(destination: unknown, ...sources: unknown[]): unknown;
|
33 | export declare function isDivModeEnabled(mode: DivMode, divs: SingleOrMultiple<DivEvent>): boolean;
|
34 | export declare function divModeExecute(mode: DivMode, divs: SingleOrMultiple<DivEvent>, callback: (id: string, div: DivEvent) => void): void;
|
35 | export declare function singleDivModeExecute(div: DivEvent, callback: (selector: string, div: DivEvent) => void): void;
|
36 | export declare function divMode<T extends IModeDiv>(divs?: SingleOrMultiple<T>, element?: HTMLElement): T | undefined;
|
37 | export declare function circleBounceDataFromParticle(p: IParticle): ICircleBouncer;
|
38 | export declare function circleBounce(p1: ICircleBouncer, p2: ICircleBouncer): void;
|
39 | export declare function rectBounce(particle: IParticle, divBounds: IBounds): void;
|