@tsparticles/interaction-external-grab
Version:
tsParticles grab external interaction
31 lines (30 loc) • 846 B
TypeScript
import type { IRgb, OptionsColor } from "@tsparticles/engine";
import type { InteractivityContainer, InteractivityParticle } from "@tsparticles/plugin-interactivity";
import type { Grab } from "./Options/Classes/Grab.js";
import type { GrabOptions } from "./Options/Classes/GrabOptions.js";
import type { IGrab } from "./Options/Interfaces/IGrab.js";
export interface IGrabMode {
grab: IGrab;
}
export interface GrabMode {
grab?: Grab;
}
export type GrabContainer = InteractivityContainer & {
actualOptions: GrabOptions;
particles: {
grabLineColor?: IRgb | string;
};
retina: {
grabModeDistance?: number;
};
};
export type LinkParticle = InteractivityParticle & {
options: {
links?: {
color?: OptionsColor;
};
};
retina: {
linksWidth?: number;
};
};