/
index.ts
26 lines (21 loc) · 1.02 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import type { Engine } from "tsparticles-engine";
import { FullV1Plugin } from "./FullV1Plugin";
import { loadAbsorbersPlugin } from "tsparticles-plugin-absorbers";
import { loadEmittersPlugin } from "tsparticles-plugin-emitters";
import { loadExternalTrailInteraction } from "tsparticles-interaction-external-trail";
import { loadPolygonMaskPlugin } from "tsparticles-plugin-polygon-mask";
import { loadRollUpdater } from "tsparticles-updater-roll";
import { loadSlim } from "tsparticles-slim";
import { loadTiltUpdater } from "tsparticles-updater-tilt";
import { loadWobbleUpdater } from "tsparticles-updater-wobble";
export async function loadFull(engine: Engine): Promise<void> {
await engine.addPlugin(new FullV1Plugin());
await loadSlim(engine);
await loadTiltUpdater(engine);
await loadRollUpdater(engine);
await loadWobbleUpdater(engine);
await loadExternalTrailInteraction(engine);
await loadAbsorbersPlugin(engine);
await loadEmittersPlugin(engine);
await loadPolygonMaskPlugin(engine);
}