@tsparticles/preset-fireworks 4.0.0-beta.0 → 4.0.0-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/browser.js +5 -0
- package/browser/bundle.js +4 -0
- package/browser/index.js +11 -12
- package/browser/index.lazy.js +31 -0
- package/browser/options.js +1 -1
- package/cjs/browser.js +5 -0
- package/cjs/bundle.js +4 -0
- package/cjs/index.js +11 -12
- package/cjs/index.lazy.js +31 -0
- package/cjs/options.js +1 -1
- package/esm/browser.js +5 -0
- package/esm/bundle.js +4 -0
- package/esm/index.js +11 -12
- package/esm/index.lazy.js +31 -0
- package/esm/options.js +1 -1
- package/package.json +19 -12
- package/report.html +4949 -94
- package/tsparticles.preset.fireworks.bundle.js +8538 -967
- package/tsparticles.preset.fireworks.bundle.min.js +1 -2
- package/tsparticles.preset.fireworks.js +294 -437
- package/tsparticles.preset.fireworks.min.js +1 -2
- package/types/browser.d.ts +1 -0
- package/types/index.lazy.d.ts +2 -0
- package/1200.min.js +0 -1
- package/1361.min.js +0 -1
- package/1467.min.js +0 -1
- package/188.min.js +0 -1
- package/2086.min.js +0 -1
- package/2220.min.js +0 -1
- package/2902.min.js +0 -1
- package/2921.min.js +0 -1
- package/3010.min.js +0 -1
- package/3048.min.js +0 -1
- package/3072.min.js +0 -1
- package/311.min.js +0 -1
- package/3153.min.js +0 -1
- package/3172.min.js +0 -1
- package/3326.min.js +0 -1
- package/361.min.js +0 -1
- package/3659.min.js +0 -1
- package/3784.min.js +0 -1
- package/3805.min.js +0 -1
- package/383.min.js +0 -33
- package/4244.min.js +0 -1
- package/4750.min.js +0 -1
- package/4925.min.js +0 -1
- package/4957.min.js +0 -1
- package/5074.min.js +0 -1
- package/5647.min.js +0 -1
- package/5824.min.js +0 -1
- package/5857.min.js +0 -1
- package/6592.min.js +0 -1
- package/6700.min.js +0 -1
- package/6714.min.js +0 -1
- package/6895.min.js +0 -1
- package/7063.min.js +0 -1
- package/7072.min.js +0 -1
- package/7260.min.js +0 -1
- package/7404.min.js +0 -1
- package/7430.min.js +0 -1
- package/7632.min.js +0 -1
- package/7856.min.js +0 -1
- package/8304.min.js +0 -1
- package/8619.min.js +0 -1
- package/8738.min.js +0 -1
- package/8778.min.js +0 -1
- package/892.min.js +0 -1
- package/8998.min.js +0 -1
- package/915.min.js +0 -1
- package/9245.min.js +0 -1
- package/9358.min.js +0 -1
- package/9392.min.js +0 -1
- package/9719.min.js +0 -1
- package/9976.min.js +0 -1
- package/dist_browser_options_js.js +0 -30
- package/node_modules_pnpm_tsparticles_basic_4_0_0-beta_11_node_modules_tsparticles_basic_browser_index_js.js +0 -30
- package/node_modules_pnpm_tsparticles_effect-trail_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-8a5947.js +0 -30
- package/node_modules_pnpm_tsparticles_effect-trail_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-cb9e7e.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-beta_11__tsparticles_engine_-85b81e.js +0 -100
- package/node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-beta_11__tsparticles_engine_-8b05f0.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-09a57e.js +0 -100
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-65b417.js +0 -80
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-74f6c1.js +0 -50
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-7e9977.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-7f13fa.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-b6bb50.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-cf6e0a.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-daf8cd.js +0 -100
- package/node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-5e0ff2.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-b0d0ee.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-060416.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-a6d106.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-beta_11__tsparticles_engine_4_0_0-be-47e198.js +0 -120
- package/node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-beta_11__tsparticles_engine_4_0_0-be-710e43.js +0 -70
- package/node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_nod-3a792b.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_nod-e1bc4b.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-d9836d.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-f22022.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-sounds_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_n-3d7d15.js +0 -30
- package/node_modules_pnpm_tsparticles_shape-circle_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-7552ae.js +0 -40
- package/node_modules_pnpm_tsparticles_shape-circle_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-b06fc7.js +0 -30
- package/node_modules_pnpm_tsparticles_shape-line_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_node-06caa0.js +0 -40
- package/node_modules_pnpm_tsparticles_shape-line_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_node-8f1b2c.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-destroy_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-7f9f4b.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-life_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-9cea59.js +0 -70
- package/node_modules_pnpm_tsparticles_updater-life_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-a724a4.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-8f9e09.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-da77ce.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_-df7144.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-paint_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_n-589482.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-paint_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_n-b1f330.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-rotate_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_-03eda6.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-rotate_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_-6626aa.js +0 -50
- package/node_modules_pnpm_tsparticles_updater-size_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-a47b81.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-size_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-d2508a.js +0 -30
- package/vendors-node_modules_pnpm_tsparticles_engine_4_0_0-beta_11_node_modules_tsparticles_engine_br-ca098e.js +0 -100
- package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-6e84d5.js +0 -30
- package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-f34432.js +0 -210
- package/vendors-node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-beta_11__tsparticles_engine_-32e86c.js +0 -50
- package/vendors-node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_11__tsparticles_engine_4_0_0-bet-5f2b78.js +0 -40
- package/vendors-node_modules_pnpm_tsparticles_plugin-sounds_4_0_0-beta_11__tsparticles_engine_4_0_0-b-2693cf.js +0 -130
- package/vendors-node_modules_pnpm_tsparticles_plugin-sounds_4_0_0-beta_11__tsparticles_engine_4_0_0-b-9529dd.js +0 -40
- package/vendors-node_modules_pnpm_tsparticles_updater-destroy_4_0_0-beta_11__tsparticles_engine_4_0_0-194b6c.js +0 -100
- package/vendors-node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-beta_11__tsparticles_engine_4_0-09fa1a.js +0 -80
package/browser/bundle.js
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
+
import { loadFireworksPreset } from "./index.js";
|
|
1
2
|
export { loadFireworksPreset } from "./index.js";
|
|
2
3
|
export { tsParticles } from "@tsparticles/engine";
|
|
4
|
+
const globalObject = globalThis;
|
|
5
|
+
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
6
|
+
globalObject.loadFireworksPreset = loadFireworksPreset;
|
package/browser/index.js
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
+
import { initOptions } from "./options.js";
|
|
2
|
+
import { loadBasic } from "@tsparticles/basic";
|
|
3
|
+
import { loadDestroyUpdater } from "@tsparticles/updater-destroy";
|
|
4
|
+
import { loadEmittersPluginSimple } from "@tsparticles/plugin-emitters/plugin";
|
|
5
|
+
import { loadEmittersShapeSquare } from "@tsparticles/plugin-emitters-shape-square";
|
|
6
|
+
import { loadLifeUpdater } from "@tsparticles/updater-life";
|
|
7
|
+
import { loadLineShape } from "@tsparticles/shape-line";
|
|
8
|
+
import { loadRotateUpdater } from "@tsparticles/updater-rotate";
|
|
9
|
+
import { loadSoundsPlugin } from "@tsparticles/plugin-sounds";
|
|
10
|
+
import { loadTrailEffect } from "@tsparticles/effect-trail";
|
|
1
11
|
const presetName = "fireworks";
|
|
2
12
|
export async function loadFireworksPreset(engine) {
|
|
3
13
|
await engine.pluginManager.register(async (e) => {
|
|
4
|
-
const
|
|
5
|
-
import("@tsparticles/basic"),
|
|
6
|
-
import("@tsparticles/plugin-emitters/plugin"),
|
|
7
|
-
import("@tsparticles/effect-trail"),
|
|
8
|
-
import("@tsparticles/plugin-emitters-shape-square"),
|
|
9
|
-
import("@tsparticles/plugin-sounds"),
|
|
10
|
-
import("@tsparticles/shape-line"),
|
|
11
|
-
import("@tsparticles/updater-rotate"),
|
|
12
|
-
import("@tsparticles/updater-destroy"),
|
|
13
|
-
import("@tsparticles/updater-life"),
|
|
14
|
-
import("./options.js"),
|
|
15
|
-
]), loadEmittersForFireworks = async (e) => {
|
|
14
|
+
const loadEmittersForFireworks = async (e) => {
|
|
16
15
|
await loadEmittersPluginSimple(e);
|
|
17
16
|
await loadEmittersShapeSquare(e);
|
|
18
17
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const presetName = "fireworks";
|
|
2
|
+
export async function loadFireworksPreset(engine) {
|
|
3
|
+
await engine.pluginManager.register(async (e) => {
|
|
4
|
+
const [{ loadBasic }, { loadEmittersPluginSimple }, { loadTrailEffect }, { loadEmittersShapeSquare }, { loadSoundsPlugin }, { loadLineShape }, { loadRotateUpdater }, { loadDestroyUpdater }, { loadLifeUpdater }, { initOptions },] = await Promise.all([
|
|
5
|
+
import("@tsparticles/basic/lazy"),
|
|
6
|
+
import("@tsparticles/plugin-emitters/plugin/lazy"),
|
|
7
|
+
import("@tsparticles/effect-trail/lazy"),
|
|
8
|
+
import("@tsparticles/plugin-emitters-shape-square/lazy"),
|
|
9
|
+
import("@tsparticles/plugin-sounds/lazy"),
|
|
10
|
+
import("@tsparticles/shape-line/lazy"),
|
|
11
|
+
import("@tsparticles/updater-rotate/lazy"),
|
|
12
|
+
import("@tsparticles/updater-destroy/lazy"),
|
|
13
|
+
import("@tsparticles/updater-life/lazy"),
|
|
14
|
+
import("./options.js"),
|
|
15
|
+
]), loadEmittersForFireworks = async (e) => {
|
|
16
|
+
await loadEmittersPluginSimple(e);
|
|
17
|
+
await loadEmittersShapeSquare(e);
|
|
18
|
+
};
|
|
19
|
+
await Promise.all([
|
|
20
|
+
loadBasic(e),
|
|
21
|
+
loadEmittersForFireworks(e),
|
|
22
|
+
loadTrailEffect(e),
|
|
23
|
+
loadSoundsPlugin(e),
|
|
24
|
+
loadLineShape(e),
|
|
25
|
+
loadRotateUpdater(e),
|
|
26
|
+
loadDestroyUpdater(e),
|
|
27
|
+
loadLifeUpdater(e),
|
|
28
|
+
]);
|
|
29
|
+
e.pluginManager.addPreset(presetName, initOptions(), false);
|
|
30
|
+
});
|
|
31
|
+
}
|
package/browser/options.js
CHANGED
package/cjs/browser.js
ADDED
package/cjs/bundle.js
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
+
import { loadFireworksPreset } from "./index.js";
|
|
1
2
|
export { loadFireworksPreset } from "./index.js";
|
|
2
3
|
export { tsParticles } from "@tsparticles/engine";
|
|
4
|
+
const globalObject = globalThis;
|
|
5
|
+
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
6
|
+
globalObject.loadFireworksPreset = loadFireworksPreset;
|
package/cjs/index.js
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
+
import { initOptions } from "./options.js";
|
|
2
|
+
import { loadBasic } from "@tsparticles/basic";
|
|
3
|
+
import { loadDestroyUpdater } from "@tsparticles/updater-destroy";
|
|
4
|
+
import { loadEmittersPluginSimple } from "@tsparticles/plugin-emitters/plugin";
|
|
5
|
+
import { loadEmittersShapeSquare } from "@tsparticles/plugin-emitters-shape-square";
|
|
6
|
+
import { loadLifeUpdater } from "@tsparticles/updater-life";
|
|
7
|
+
import { loadLineShape } from "@tsparticles/shape-line";
|
|
8
|
+
import { loadRotateUpdater } from "@tsparticles/updater-rotate";
|
|
9
|
+
import { loadSoundsPlugin } from "@tsparticles/plugin-sounds";
|
|
10
|
+
import { loadTrailEffect } from "@tsparticles/effect-trail";
|
|
1
11
|
const presetName = "fireworks";
|
|
2
12
|
export async function loadFireworksPreset(engine) {
|
|
3
13
|
await engine.pluginManager.register(async (e) => {
|
|
4
|
-
const
|
|
5
|
-
import("@tsparticles/basic"),
|
|
6
|
-
import("@tsparticles/plugin-emitters/plugin"),
|
|
7
|
-
import("@tsparticles/effect-trail"),
|
|
8
|
-
import("@tsparticles/plugin-emitters-shape-square"),
|
|
9
|
-
import("@tsparticles/plugin-sounds"),
|
|
10
|
-
import("@tsparticles/shape-line"),
|
|
11
|
-
import("@tsparticles/updater-rotate"),
|
|
12
|
-
import("@tsparticles/updater-destroy"),
|
|
13
|
-
import("@tsparticles/updater-life"),
|
|
14
|
-
import("./options.js"),
|
|
15
|
-
]), loadEmittersForFireworks = async (e) => {
|
|
14
|
+
const loadEmittersForFireworks = async (e) => {
|
|
16
15
|
await loadEmittersPluginSimple(e);
|
|
17
16
|
await loadEmittersShapeSquare(e);
|
|
18
17
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const presetName = "fireworks";
|
|
2
|
+
export async function loadFireworksPreset(engine) {
|
|
3
|
+
await engine.pluginManager.register(async (e) => {
|
|
4
|
+
const [{ loadBasic }, { loadEmittersPluginSimple }, { loadTrailEffect }, { loadEmittersShapeSquare }, { loadSoundsPlugin }, { loadLineShape }, { loadRotateUpdater }, { loadDestroyUpdater }, { loadLifeUpdater }, { initOptions },] = await Promise.all([
|
|
5
|
+
import("@tsparticles/basic/lazy"),
|
|
6
|
+
import("@tsparticles/plugin-emitters/plugin/lazy"),
|
|
7
|
+
import("@tsparticles/effect-trail/lazy"),
|
|
8
|
+
import("@tsparticles/plugin-emitters-shape-square/lazy"),
|
|
9
|
+
import("@tsparticles/plugin-sounds/lazy"),
|
|
10
|
+
import("@tsparticles/shape-line/lazy"),
|
|
11
|
+
import("@tsparticles/updater-rotate/lazy"),
|
|
12
|
+
import("@tsparticles/updater-destroy/lazy"),
|
|
13
|
+
import("@tsparticles/updater-life/lazy"),
|
|
14
|
+
import("./options.js"),
|
|
15
|
+
]), loadEmittersForFireworks = async (e) => {
|
|
16
|
+
await loadEmittersPluginSimple(e);
|
|
17
|
+
await loadEmittersShapeSquare(e);
|
|
18
|
+
};
|
|
19
|
+
await Promise.all([
|
|
20
|
+
loadBasic(e),
|
|
21
|
+
loadEmittersForFireworks(e),
|
|
22
|
+
loadTrailEffect(e),
|
|
23
|
+
loadSoundsPlugin(e),
|
|
24
|
+
loadLineShape(e),
|
|
25
|
+
loadRotateUpdater(e),
|
|
26
|
+
loadDestroyUpdater(e),
|
|
27
|
+
loadLifeUpdater(e),
|
|
28
|
+
]);
|
|
29
|
+
e.pluginManager.addPreset(presetName, initOptions(), false);
|
|
30
|
+
});
|
|
31
|
+
}
|
package/cjs/options.js
CHANGED
package/esm/browser.js
ADDED
package/esm/bundle.js
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
+
import { loadFireworksPreset } from "./index.js";
|
|
1
2
|
export { loadFireworksPreset } from "./index.js";
|
|
2
3
|
export { tsParticles } from "@tsparticles/engine";
|
|
4
|
+
const globalObject = globalThis;
|
|
5
|
+
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
6
|
+
globalObject.loadFireworksPreset = loadFireworksPreset;
|
package/esm/index.js
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
+
import { initOptions } from "./options.js";
|
|
2
|
+
import { loadBasic } from "@tsparticles/basic";
|
|
3
|
+
import { loadDestroyUpdater } from "@tsparticles/updater-destroy";
|
|
4
|
+
import { loadEmittersPluginSimple } from "@tsparticles/plugin-emitters/plugin";
|
|
5
|
+
import { loadEmittersShapeSquare } from "@tsparticles/plugin-emitters-shape-square";
|
|
6
|
+
import { loadLifeUpdater } from "@tsparticles/updater-life";
|
|
7
|
+
import { loadLineShape } from "@tsparticles/shape-line";
|
|
8
|
+
import { loadRotateUpdater } from "@tsparticles/updater-rotate";
|
|
9
|
+
import { loadSoundsPlugin } from "@tsparticles/plugin-sounds";
|
|
10
|
+
import { loadTrailEffect } from "@tsparticles/effect-trail";
|
|
1
11
|
const presetName = "fireworks";
|
|
2
12
|
export async function loadFireworksPreset(engine) {
|
|
3
13
|
await engine.pluginManager.register(async (e) => {
|
|
4
|
-
const
|
|
5
|
-
import("@tsparticles/basic"),
|
|
6
|
-
import("@tsparticles/plugin-emitters/plugin"),
|
|
7
|
-
import("@tsparticles/effect-trail"),
|
|
8
|
-
import("@tsparticles/plugin-emitters-shape-square"),
|
|
9
|
-
import("@tsparticles/plugin-sounds"),
|
|
10
|
-
import("@tsparticles/shape-line"),
|
|
11
|
-
import("@tsparticles/updater-rotate"),
|
|
12
|
-
import("@tsparticles/updater-destroy"),
|
|
13
|
-
import("@tsparticles/updater-life"),
|
|
14
|
-
import("./options.js"),
|
|
15
|
-
]), loadEmittersForFireworks = async (e) => {
|
|
14
|
+
const loadEmittersForFireworks = async (e) => {
|
|
16
15
|
await loadEmittersPluginSimple(e);
|
|
17
16
|
await loadEmittersShapeSquare(e);
|
|
18
17
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const presetName = "fireworks";
|
|
2
|
+
export async function loadFireworksPreset(engine) {
|
|
3
|
+
await engine.pluginManager.register(async (e) => {
|
|
4
|
+
const [{ loadBasic }, { loadEmittersPluginSimple }, { loadTrailEffect }, { loadEmittersShapeSquare }, { loadSoundsPlugin }, { loadLineShape }, { loadRotateUpdater }, { loadDestroyUpdater }, { loadLifeUpdater }, { initOptions },] = await Promise.all([
|
|
5
|
+
import("@tsparticles/basic/lazy"),
|
|
6
|
+
import("@tsparticles/plugin-emitters/plugin/lazy"),
|
|
7
|
+
import("@tsparticles/effect-trail/lazy"),
|
|
8
|
+
import("@tsparticles/plugin-emitters-shape-square/lazy"),
|
|
9
|
+
import("@tsparticles/plugin-sounds/lazy"),
|
|
10
|
+
import("@tsparticles/shape-line/lazy"),
|
|
11
|
+
import("@tsparticles/updater-rotate/lazy"),
|
|
12
|
+
import("@tsparticles/updater-destroy/lazy"),
|
|
13
|
+
import("@tsparticles/updater-life/lazy"),
|
|
14
|
+
import("./options.js"),
|
|
15
|
+
]), loadEmittersForFireworks = async (e) => {
|
|
16
|
+
await loadEmittersPluginSimple(e);
|
|
17
|
+
await loadEmittersShapeSquare(e);
|
|
18
|
+
};
|
|
19
|
+
await Promise.all([
|
|
20
|
+
loadBasic(e),
|
|
21
|
+
loadEmittersForFireworks(e),
|
|
22
|
+
loadTrailEffect(e),
|
|
23
|
+
loadSoundsPlugin(e),
|
|
24
|
+
loadLineShape(e),
|
|
25
|
+
loadRotateUpdater(e),
|
|
26
|
+
loadDestroyUpdater(e),
|
|
27
|
+
loadLifeUpdater(e),
|
|
28
|
+
]);
|
|
29
|
+
e.pluginManager.addPreset(presetName, initOptions(), false);
|
|
30
|
+
});
|
|
31
|
+
}
|
package/esm/options.js
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/preset-fireworks",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.15",
|
|
4
4
|
"description": "tsParticles fireworks preset",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/tsparticles/
|
|
8
|
+
"url": "git+https://github.com/tsparticles/tsparticles.git",
|
|
9
9
|
"directory": "presets/fireworks"
|
|
10
10
|
},
|
|
11
11
|
"keywords": [
|
|
@@ -96,19 +96,26 @@
|
|
|
96
96
|
"umd": "./umd/index.js",
|
|
97
97
|
"default": "./cjs/index.js"
|
|
98
98
|
},
|
|
99
|
+
"./lazy": {
|
|
100
|
+
"types": "./types/index.lazy.d.ts",
|
|
101
|
+
"browser": "./browser/index.lazy.js",
|
|
102
|
+
"import": "./esm/index.lazy.js",
|
|
103
|
+
"require": "./cjs/index.lazy.js",
|
|
104
|
+
"default": "./cjs/index.lazy.js"
|
|
105
|
+
},
|
|
99
106
|
"./package.json": "./package.json"
|
|
100
107
|
},
|
|
101
108
|
"dependencies": {
|
|
102
|
-
"@tsparticles/basic": "
|
|
103
|
-
"@tsparticles/effect-trail": "
|
|
104
|
-
"@tsparticles/engine": "
|
|
105
|
-
"@tsparticles/plugin-emitters": "
|
|
106
|
-
"@tsparticles/plugin-emitters-shape-square": "
|
|
107
|
-
"@tsparticles/plugin-sounds": "
|
|
108
|
-
"@tsparticles/shape-line": "
|
|
109
|
-
"@tsparticles/updater-destroy": "
|
|
110
|
-
"@tsparticles/updater-life": "
|
|
111
|
-
"@tsparticles/updater-rotate": "
|
|
109
|
+
"@tsparticles/basic": "4.0.0-beta.15",
|
|
110
|
+
"@tsparticles/effect-trail": "4.0.0-beta.15",
|
|
111
|
+
"@tsparticles/engine": "4.0.0-beta.15",
|
|
112
|
+
"@tsparticles/plugin-emitters": "4.0.0-beta.15",
|
|
113
|
+
"@tsparticles/plugin-emitters-shape-square": "4.0.0-beta.15",
|
|
114
|
+
"@tsparticles/plugin-sounds": "4.0.0-beta.15",
|
|
115
|
+
"@tsparticles/shape-line": "4.0.0-beta.15",
|
|
116
|
+
"@tsparticles/updater-destroy": "4.0.0-beta.15",
|
|
117
|
+
"@tsparticles/updater-life": "4.0.0-beta.15",
|
|
118
|
+
"@tsparticles/updater-rotate": "4.0.0-beta.15"
|
|
112
119
|
},
|
|
113
120
|
"publishConfig": {
|
|
114
121
|
"access": "public"
|