UNPKG

tsparticles

Version:

Easily create highly customizable particle, confetti and fireworks 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.

30 lines (29 loc) 1.01 kB
import type { IEvents } from "./Events/IEvents"; import type { IModes } from "./Modes/IModes"; import type { InteractivityDetect } from "../../../Enums"; /** * Particles interactivity options * [[include:Options/Interactivity.md]] * @category Options */ export interface IInteractivity { /** * @deprecated use the new detectsOn instead */ detect_on: InteractivityDetect | keyof typeof InteractivityDetect; /** * Where the mouse events will be detected * If set to `canvas` only the particles canvas will be targeted * If set to `parent` only the particles canvas parent will be targeted * If set to `window` every area will be the target */ detectsOn: InteractivityDetect | keyof typeof InteractivityDetect; /** * Interaction events options, this configures which events are enabled and which modes should be used */ events: IEvents; /** * Interaction modes options, this configures every mode behavior */ modes: IModes; }