UNPKG

tsparticles

Version:

Easily create highly customizable particle animations and use them as animated backgrounds for your website. Ready to use components available also for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.

31 lines (30 loc) 1 kB
import type { Container } from "../Core/Container"; export declare class EventListeners { private readonly container; private readonly mouseMoveHandler; private readonly touchStartHandler; private readonly touchMoveHandler; private readonly touchEndHandler; private readonly mouseLeaveHandler; private readonly touchCancelHandler; private readonly touchEndClickHandler; private readonly mouseDownHandler; private readonly mouseUpHandler; private readonly visibilityChangeHandler; private readonly resizeHandler; private canPush; private resizeTimeout?; private resizeObserver?; constructor(container: Container); addListeners(): void; removeListeners(): void; private manageListeners; private handleWindowResize; private handleVisibilityChange; private mouseDown; private mouseTouchMove; private mouseTouchFinish; private mouseTouchClick; private doMouseTouchClick; private handleClickMode; }