@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.
Files changed (124) hide show
  1. package/browser/browser.js +5 -0
  2. package/browser/bundle.js +4 -0
  3. package/browser/index.js +11 -12
  4. package/browser/index.lazy.js +31 -0
  5. package/browser/options.js +1 -1
  6. package/cjs/browser.js +5 -0
  7. package/cjs/bundle.js +4 -0
  8. package/cjs/index.js +11 -12
  9. package/cjs/index.lazy.js +31 -0
  10. package/cjs/options.js +1 -1
  11. package/esm/browser.js +5 -0
  12. package/esm/bundle.js +4 -0
  13. package/esm/index.js +11 -12
  14. package/esm/index.lazy.js +31 -0
  15. package/esm/options.js +1 -1
  16. package/package.json +19 -12
  17. package/report.html +4949 -94
  18. package/tsparticles.preset.fireworks.bundle.js +8538 -967
  19. package/tsparticles.preset.fireworks.bundle.min.js +1 -2
  20. package/tsparticles.preset.fireworks.js +294 -437
  21. package/tsparticles.preset.fireworks.min.js +1 -2
  22. package/types/browser.d.ts +1 -0
  23. package/types/index.lazy.d.ts +2 -0
  24. package/1200.min.js +0 -1
  25. package/1361.min.js +0 -1
  26. package/1467.min.js +0 -1
  27. package/188.min.js +0 -1
  28. package/2086.min.js +0 -1
  29. package/2220.min.js +0 -1
  30. package/2902.min.js +0 -1
  31. package/2921.min.js +0 -1
  32. package/3010.min.js +0 -1
  33. package/3048.min.js +0 -1
  34. package/3072.min.js +0 -1
  35. package/311.min.js +0 -1
  36. package/3153.min.js +0 -1
  37. package/3172.min.js +0 -1
  38. package/3326.min.js +0 -1
  39. package/361.min.js +0 -1
  40. package/3659.min.js +0 -1
  41. package/3784.min.js +0 -1
  42. package/3805.min.js +0 -1
  43. package/383.min.js +0 -33
  44. package/4244.min.js +0 -1
  45. package/4750.min.js +0 -1
  46. package/4925.min.js +0 -1
  47. package/4957.min.js +0 -1
  48. package/5074.min.js +0 -1
  49. package/5647.min.js +0 -1
  50. package/5824.min.js +0 -1
  51. package/5857.min.js +0 -1
  52. package/6592.min.js +0 -1
  53. package/6700.min.js +0 -1
  54. package/6714.min.js +0 -1
  55. package/6895.min.js +0 -1
  56. package/7063.min.js +0 -1
  57. package/7072.min.js +0 -1
  58. package/7260.min.js +0 -1
  59. package/7404.min.js +0 -1
  60. package/7430.min.js +0 -1
  61. package/7632.min.js +0 -1
  62. package/7856.min.js +0 -1
  63. package/8304.min.js +0 -1
  64. package/8619.min.js +0 -1
  65. package/8738.min.js +0 -1
  66. package/8778.min.js +0 -1
  67. package/892.min.js +0 -1
  68. package/8998.min.js +0 -1
  69. package/915.min.js +0 -1
  70. package/9245.min.js +0 -1
  71. package/9358.min.js +0 -1
  72. package/9392.min.js +0 -1
  73. package/9719.min.js +0 -1
  74. package/9976.min.js +0 -1
  75. package/dist_browser_options_js.js +0 -30
  76. package/node_modules_pnpm_tsparticles_basic_4_0_0-beta_11_node_modules_tsparticles_basic_browser_index_js.js +0 -30
  77. package/node_modules_pnpm_tsparticles_effect-trail_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-8a5947.js +0 -30
  78. package/node_modules_pnpm_tsparticles_effect-trail_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-cb9e7e.js +0 -30
  79. package/node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-beta_11__tsparticles_engine_-85b81e.js +0 -100
  80. package/node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-beta_11__tsparticles_engine_-8b05f0.js +0 -30
  81. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-09a57e.js +0 -100
  82. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-65b417.js +0 -80
  83. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-74f6c1.js +0 -50
  84. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-7e9977.js +0 -30
  85. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-7f13fa.js +0 -30
  86. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-b6bb50.js +0 -30
  87. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-cf6e0a.js +0 -30
  88. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-daf8cd.js +0 -100
  89. package/node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-5e0ff2.js +0 -30
  90. package/node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-b0d0ee.js +0 -30
  91. package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-060416.js +0 -30
  92. package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-a6d106.js +0 -30
  93. package/node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-beta_11__tsparticles_engine_4_0_0-be-47e198.js +0 -120
  94. package/node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-beta_11__tsparticles_engine_4_0_0-be-710e43.js +0 -70
  95. package/node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_nod-3a792b.js +0 -30
  96. package/node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_nod-e1bc4b.js +0 -30
  97. package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-d9836d.js +0 -30
  98. package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-f22022.js +0 -30
  99. package/node_modules_pnpm_tsparticles_plugin-sounds_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_n-3d7d15.js +0 -30
  100. package/node_modules_pnpm_tsparticles_shape-circle_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-7552ae.js +0 -40
  101. package/node_modules_pnpm_tsparticles_shape-circle_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-b06fc7.js +0 -30
  102. package/node_modules_pnpm_tsparticles_shape-line_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_node-06caa0.js +0 -40
  103. package/node_modules_pnpm_tsparticles_shape-line_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_node-8f1b2c.js +0 -30
  104. package/node_modules_pnpm_tsparticles_updater-destroy_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-7f9f4b.js +0 -30
  105. package/node_modules_pnpm_tsparticles_updater-life_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-9cea59.js +0 -70
  106. package/node_modules_pnpm_tsparticles_updater-life_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-a724a4.js +0 -30
  107. package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-8f9e09.js +0 -30
  108. package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-da77ce.js +0 -30
  109. package/node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_-df7144.js +0 -30
  110. package/node_modules_pnpm_tsparticles_updater-paint_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_n-589482.js +0 -30
  111. package/node_modules_pnpm_tsparticles_updater-paint_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_n-b1f330.js +0 -30
  112. package/node_modules_pnpm_tsparticles_updater-rotate_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_-03eda6.js +0 -30
  113. package/node_modules_pnpm_tsparticles_updater-rotate_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_-6626aa.js +0 -50
  114. package/node_modules_pnpm_tsparticles_updater-size_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-a47b81.js +0 -30
  115. package/node_modules_pnpm_tsparticles_updater-size_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-d2508a.js +0 -30
  116. package/vendors-node_modules_pnpm_tsparticles_engine_4_0_0-beta_11_node_modules_tsparticles_engine_br-ca098e.js +0 -100
  117. package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-6e84d5.js +0 -30
  118. package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-f34432.js +0 -210
  119. package/vendors-node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-beta_11__tsparticles_engine_-32e86c.js +0 -50
  120. package/vendors-node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_11__tsparticles_engine_4_0_0-bet-5f2b78.js +0 -40
  121. package/vendors-node_modules_pnpm_tsparticles_plugin-sounds_4_0_0-beta_11__tsparticles_engine_4_0_0-b-2693cf.js +0 -130
  122. package/vendors-node_modules_pnpm_tsparticles_plugin-sounds_4_0_0-beta_11__tsparticles_engine_4_0_0-b-9529dd.js +0 -40
  123. package/vendors-node_modules_pnpm_tsparticles_updater-destroy_4_0_0-beta_11__tsparticles_engine_4_0_0-194b6c.js +0 -100
  124. package/vendors-node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-beta_11__tsparticles_engine_4_0-09fa1a.js +0 -80
@@ -0,0 +1,5 @@
1
+ import { loadFireworksPreset } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadFireworksPreset = loadFireworksPreset;
5
+ export * from "./index.js";
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 [{ loadBasic }, { loadEmittersPluginSimple }, { loadTrailEffect }, { loadEmittersShapeSquare }, { loadSoundsPlugin }, { loadLineShape }, { loadRotateUpdater }, { loadDestroyUpdater }, { loadLifeUpdater }, { initOptions },] = await Promise.all([
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
+ }
@@ -138,7 +138,7 @@ export function initOptions() {
138
138
  acceleration: 5,
139
139
  },
140
140
  speed: { min: 5, max: 15 },
141
- direction: "none",
141
+ direction: MoveDirection.none,
142
142
  outModes: OutMode.destroy,
143
143
  },
144
144
  };
package/cjs/browser.js ADDED
@@ -0,0 +1,5 @@
1
+ import { loadFireworksPreset } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadFireworksPreset = loadFireworksPreset;
5
+ export * from "./index.js";
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 [{ loadBasic }, { loadEmittersPluginSimple }, { loadTrailEffect }, { loadEmittersShapeSquare }, { loadSoundsPlugin }, { loadLineShape }, { loadRotateUpdater }, { loadDestroyUpdater }, { loadLifeUpdater }, { initOptions },] = await Promise.all([
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
@@ -138,7 +138,7 @@ export function initOptions() {
138
138
  acceleration: 5,
139
139
  },
140
140
  speed: { min: 5, max: 15 },
141
- direction: "none",
141
+ direction: MoveDirection.none,
142
142
  outModes: OutMode.destroy,
143
143
  },
144
144
  };
package/esm/browser.js ADDED
@@ -0,0 +1,5 @@
1
+ import { loadFireworksPreset } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadFireworksPreset = loadFireworksPreset;
5
+ export * from "./index.js";
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 [{ loadBasic }, { loadEmittersPluginSimple }, { loadTrailEffect }, { loadEmittersShapeSquare }, { loadSoundsPlugin }, { loadLineShape }, { loadRotateUpdater }, { loadDestroyUpdater }, { loadLifeUpdater }, { initOptions },] = await Promise.all([
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
@@ -138,7 +138,7 @@ export function initOptions() {
138
138
  acceleration: 5,
139
139
  },
140
140
  speed: { min: 5, max: 15 },
141
- direction: "none",
141
+ direction: MoveDirection.none,
142
142
  outModes: OutMode.destroy,
143
143
  },
144
144
  };
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@tsparticles/preset-fireworks",
3
- "version": "4.0.0-beta.0",
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/presets.git",
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": "^4.0.0-beta.11",
103
- "@tsparticles/effect-trail": "^4.0.0-beta.11",
104
- "@tsparticles/engine": "^4.0.0-beta.11",
105
- "@tsparticles/plugin-emitters": "^4.0.0-beta.11",
106
- "@tsparticles/plugin-emitters-shape-square": "^4.0.0-beta.11",
107
- "@tsparticles/plugin-sounds": "^4.0.0-beta.11",
108
- "@tsparticles/shape-line": "^4.0.0-beta.11",
109
- "@tsparticles/updater-destroy": "^4.0.0-beta.11",
110
- "@tsparticles/updater-life": "^4.0.0-beta.11",
111
- "@tsparticles/updater-rotate": "^4.0.0-beta.11"
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"