@tsparticles/preset-squares 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 (60) hide show
  1. package/browser/browser.js +5 -0
  2. package/browser/bundle.js +4 -0
  3. package/browser/index.js +7 -9
  4. package/browser/index.lazy.js +23 -0
  5. package/cjs/browser.js +5 -0
  6. package/cjs/bundle.js +4 -0
  7. package/cjs/index.js +7 -9
  8. package/cjs/index.lazy.js +23 -0
  9. package/esm/browser.js +5 -0
  10. package/esm/bundle.js +4 -0
  11. package/esm/index.js +7 -9
  12. package/esm/index.lazy.js +23 -0
  13. package/package.json +16 -9
  14. package/report.html +4949 -94
  15. package/tsparticles.preset.squares.bundle.js +5935 -967
  16. package/tsparticles.preset.squares.bundle.min.js +1 -2
  17. package/tsparticles.preset.squares.js +83 -407
  18. package/tsparticles.preset.squares.min.js +1 -2
  19. package/types/browser.d.ts +1 -0
  20. package/types/index.lazy.d.ts +2 -0
  21. package/166.min.js +0 -1
  22. package/200.min.js +0 -1
  23. package/245.min.js +0 -1
  24. package/304.min.js +0 -1
  25. package/326.min.js +0 -1
  26. package/358.min.js +0 -1
  27. package/361.min.js +0 -1
  28. package/404.min.js +0 -1
  29. package/467.min.js +0 -1
  30. package/480.min.js +0 -1
  31. package/619.min.js +0 -1
  32. package/63.min.js +0 -1
  33. package/659.min.js +0 -1
  34. package/750.min.js +0 -1
  35. package/778.min.js +0 -1
  36. package/784.min.js +0 -1
  37. package/824.min.js +0 -1
  38. package/892.min.js +0 -1
  39. package/925.min.js +0 -1
  40. package/990.min.js +0 -1
  41. package/dist_browser_options_js.js +0 -30
  42. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-09a57e.js +0 -100
  43. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-74f6c1.js +0 -50
  44. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-7e9977.js +0 -30
  45. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-7f13fa.js +0 -30
  46. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-b6bb50.js +0 -30
  47. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-cf6e0a.js +0 -30
  48. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-daf8cd.js +0 -100
  49. package/node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-5e0ff2.js +0 -30
  50. package/node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-b0d0ee.js +0 -30
  51. package/node_modules_pnpm_tsparticles_shape-square_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-541147.js +0 -30
  52. package/node_modules_pnpm_tsparticles_shape-square_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-fd7ee9.js +0 -40
  53. package/node_modules_pnpm_tsparticles_updater-paint_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_n-589482.js +0 -30
  54. package/node_modules_pnpm_tsparticles_updater-paint_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_n-b1f330.js +0 -30
  55. package/node_modules_pnpm_tsparticles_updater-rotate_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_-03eda6.js +0 -30
  56. package/node_modules_pnpm_tsparticles_updater-rotate_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_-6626aa.js +0 -50
  57. package/node_modules_pnpm_tsparticles_updater-size_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-a47b81.js +0 -30
  58. package/node_modules_pnpm_tsparticles_updater-size_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-d2508a.js +0 -30
  59. package/vendors-node_modules_pnpm_tsparticles_engine_4_0_0-beta_11_node_modules_tsparticles_engine_br-ca098e.js +0 -100
  60. package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-6e84d5.js +0 -30
@@ -0,0 +1,5 @@
1
+ import { loadSquaresPreset } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadSquaresPreset = loadSquaresPreset;
5
+ export * from "./index.js";
package/browser/bundle.js CHANGED
@@ -1,2 +1,6 @@
1
+ import { loadSquaresPreset } from "./index.js";
1
2
  export { loadSquaresPreset } from "./index.js";
2
3
  export { tsParticles } from "@tsparticles/engine";
4
+ const globalObject = globalThis;
5
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
6
+ globalObject.loadSquaresPreset = loadSquaresPreset;
package/browser/index.js CHANGED
@@ -1,15 +1,13 @@
1
+ import { loadEmittersPluginSimple } from "@tsparticles/plugin-emitters/plugin";
2
+ import { loadHexColorPlugin } from "@tsparticles/plugin-hex-color";
3
+ import { loadPaintUpdater } from "@tsparticles/updater-paint";
4
+ import { loadRotateUpdater } from "@tsparticles/updater-rotate";
5
+ import { loadSizeUpdater } from "@tsparticles/updater-size";
6
+ import { loadSquareShape } from "@tsparticles/shape-square";
7
+ import { options } from "./options.js";
1
8
  const presetName = "squares";
2
9
  export async function loadSquaresPreset(engine) {
3
10
  await engine.pluginManager.register(async (e) => {
4
- const [{ loadHexColorPlugin }, { loadEmittersPluginSimple }, { loadSquareShape }, { loadRotateUpdater }, { loadSizeUpdater }, { loadPaintUpdater }, { options },] = await Promise.all([
5
- import("@tsparticles/plugin-hex-color"),
6
- import("@tsparticles/plugin-emitters/plugin"),
7
- import("@tsparticles/shape-square"),
8
- import("@tsparticles/updater-rotate"),
9
- import("@tsparticles/updater-size"),
10
- import("@tsparticles/updater-paint"),
11
- import("./options.js"),
12
- ]);
13
11
  await Promise.all([
14
12
  loadHexColorPlugin(e),
15
13
  loadEmittersPluginSimple(e),
@@ -0,0 +1,23 @@
1
+ const presetName = "squares";
2
+ export async function loadSquaresPreset(engine) {
3
+ await engine.pluginManager.register(async (e) => {
4
+ const [{ loadHexColorPlugin }, { loadEmittersPluginSimple }, { loadSquareShape }, { loadRotateUpdater }, { loadSizeUpdater }, { loadPaintUpdater }, { options },] = await Promise.all([
5
+ import("@tsparticles/plugin-hex-color/lazy"),
6
+ import("@tsparticles/plugin-emitters/plugin/lazy"),
7
+ import("@tsparticles/shape-square/lazy"),
8
+ import("@tsparticles/updater-rotate/lazy"),
9
+ import("@tsparticles/updater-size/lazy"),
10
+ import("@tsparticles/updater-paint/lazy"),
11
+ import("./options.js"),
12
+ ]);
13
+ await Promise.all([
14
+ loadHexColorPlugin(e),
15
+ loadEmittersPluginSimple(e),
16
+ loadSquareShape(e),
17
+ loadRotateUpdater(e),
18
+ loadSizeUpdater(e),
19
+ loadPaintUpdater(e),
20
+ ]);
21
+ e.pluginManager.addPreset(presetName, options);
22
+ });
23
+ }
package/cjs/browser.js ADDED
@@ -0,0 +1,5 @@
1
+ import { loadSquaresPreset } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadSquaresPreset = loadSquaresPreset;
5
+ export * from "./index.js";
package/cjs/bundle.js CHANGED
@@ -1,2 +1,6 @@
1
+ import { loadSquaresPreset } from "./index.js";
1
2
  export { loadSquaresPreset } from "./index.js";
2
3
  export { tsParticles } from "@tsparticles/engine";
4
+ const globalObject = globalThis;
5
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
6
+ globalObject.loadSquaresPreset = loadSquaresPreset;
package/cjs/index.js CHANGED
@@ -1,15 +1,13 @@
1
+ import { loadEmittersPluginSimple } from "@tsparticles/plugin-emitters/plugin";
2
+ import { loadHexColorPlugin } from "@tsparticles/plugin-hex-color";
3
+ import { loadPaintUpdater } from "@tsparticles/updater-paint";
4
+ import { loadRotateUpdater } from "@tsparticles/updater-rotate";
5
+ import { loadSizeUpdater } from "@tsparticles/updater-size";
6
+ import { loadSquareShape } from "@tsparticles/shape-square";
7
+ import { options } from "./options.js";
1
8
  const presetName = "squares";
2
9
  export async function loadSquaresPreset(engine) {
3
10
  await engine.pluginManager.register(async (e) => {
4
- const [{ loadHexColorPlugin }, { loadEmittersPluginSimple }, { loadSquareShape }, { loadRotateUpdater }, { loadSizeUpdater }, { loadPaintUpdater }, { options },] = await Promise.all([
5
- import("@tsparticles/plugin-hex-color"),
6
- import("@tsparticles/plugin-emitters/plugin"),
7
- import("@tsparticles/shape-square"),
8
- import("@tsparticles/updater-rotate"),
9
- import("@tsparticles/updater-size"),
10
- import("@tsparticles/updater-paint"),
11
- import("./options.js"),
12
- ]);
13
11
  await Promise.all([
14
12
  loadHexColorPlugin(e),
15
13
  loadEmittersPluginSimple(e),
@@ -0,0 +1,23 @@
1
+ const presetName = "squares";
2
+ export async function loadSquaresPreset(engine) {
3
+ await engine.pluginManager.register(async (e) => {
4
+ const [{ loadHexColorPlugin }, { loadEmittersPluginSimple }, { loadSquareShape }, { loadRotateUpdater }, { loadSizeUpdater }, { loadPaintUpdater }, { options },] = await Promise.all([
5
+ import("@tsparticles/plugin-hex-color/lazy"),
6
+ import("@tsparticles/plugin-emitters/plugin/lazy"),
7
+ import("@tsparticles/shape-square/lazy"),
8
+ import("@tsparticles/updater-rotate/lazy"),
9
+ import("@tsparticles/updater-size/lazy"),
10
+ import("@tsparticles/updater-paint/lazy"),
11
+ import("./options.js"),
12
+ ]);
13
+ await Promise.all([
14
+ loadHexColorPlugin(e),
15
+ loadEmittersPluginSimple(e),
16
+ loadSquareShape(e),
17
+ loadRotateUpdater(e),
18
+ loadSizeUpdater(e),
19
+ loadPaintUpdater(e),
20
+ ]);
21
+ e.pluginManager.addPreset(presetName, options);
22
+ });
23
+ }
package/esm/browser.js ADDED
@@ -0,0 +1,5 @@
1
+ import { loadSquaresPreset } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadSquaresPreset = loadSquaresPreset;
5
+ export * from "./index.js";
package/esm/bundle.js CHANGED
@@ -1,2 +1,6 @@
1
+ import { loadSquaresPreset } from "./index.js";
1
2
  export { loadSquaresPreset } from "./index.js";
2
3
  export { tsParticles } from "@tsparticles/engine";
4
+ const globalObject = globalThis;
5
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
6
+ globalObject.loadSquaresPreset = loadSquaresPreset;
package/esm/index.js CHANGED
@@ -1,15 +1,13 @@
1
+ import { loadEmittersPluginSimple } from "@tsparticles/plugin-emitters/plugin";
2
+ import { loadHexColorPlugin } from "@tsparticles/plugin-hex-color";
3
+ import { loadPaintUpdater } from "@tsparticles/updater-paint";
4
+ import { loadRotateUpdater } from "@tsparticles/updater-rotate";
5
+ import { loadSizeUpdater } from "@tsparticles/updater-size";
6
+ import { loadSquareShape } from "@tsparticles/shape-square";
7
+ import { options } from "./options.js";
1
8
  const presetName = "squares";
2
9
  export async function loadSquaresPreset(engine) {
3
10
  await engine.pluginManager.register(async (e) => {
4
- const [{ loadHexColorPlugin }, { loadEmittersPluginSimple }, { loadSquareShape }, { loadRotateUpdater }, { loadSizeUpdater }, { loadPaintUpdater }, { options },] = await Promise.all([
5
- import("@tsparticles/plugin-hex-color"),
6
- import("@tsparticles/plugin-emitters/plugin"),
7
- import("@tsparticles/shape-square"),
8
- import("@tsparticles/updater-rotate"),
9
- import("@tsparticles/updater-size"),
10
- import("@tsparticles/updater-paint"),
11
- import("./options.js"),
12
- ]);
13
11
  await Promise.all([
14
12
  loadHexColorPlugin(e),
15
13
  loadEmittersPluginSimple(e),
@@ -0,0 +1,23 @@
1
+ const presetName = "squares";
2
+ export async function loadSquaresPreset(engine) {
3
+ await engine.pluginManager.register(async (e) => {
4
+ const [{ loadHexColorPlugin }, { loadEmittersPluginSimple }, { loadSquareShape }, { loadRotateUpdater }, { loadSizeUpdater }, { loadPaintUpdater }, { options },] = await Promise.all([
5
+ import("@tsparticles/plugin-hex-color/lazy"),
6
+ import("@tsparticles/plugin-emitters/plugin/lazy"),
7
+ import("@tsparticles/shape-square/lazy"),
8
+ import("@tsparticles/updater-rotate/lazy"),
9
+ import("@tsparticles/updater-size/lazy"),
10
+ import("@tsparticles/updater-paint/lazy"),
11
+ import("./options.js"),
12
+ ]);
13
+ await Promise.all([
14
+ loadHexColorPlugin(e),
15
+ loadEmittersPluginSimple(e),
16
+ loadSquareShape(e),
17
+ loadRotateUpdater(e),
18
+ loadSizeUpdater(e),
19
+ loadPaintUpdater(e),
20
+ ]);
21
+ e.pluginManager.addPreset(presetName, options);
22
+ });
23
+ }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@tsparticles/preset-squares",
3
- "version": "4.0.0-beta.0",
3
+ "version": "4.0.0-beta.15",
4
4
  "description": "tsParticles squares 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/squares"
10
10
  },
11
11
  "keywords": [
@@ -96,16 +96,23 @@
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/engine": "^4.0.0-beta.11",
103
- "@tsparticles/plugin-emitters": "^4.0.0-beta.11",
104
- "@tsparticles/plugin-hex-color": "^4.0.0-beta.11",
105
- "@tsparticles/shape-square": "^4.0.0-beta.11",
106
- "@tsparticles/updater-paint": "^4.0.0-beta.11",
107
- "@tsparticles/updater-rotate": "^4.0.0-beta.11",
108
- "@tsparticles/updater-size": "^4.0.0-beta.11"
109
+ "@tsparticles/engine": "4.0.0-beta.15",
110
+ "@tsparticles/plugin-emitters": "4.0.0-beta.15",
111
+ "@tsparticles/plugin-hex-color": "4.0.0-beta.15",
112
+ "@tsparticles/shape-square": "4.0.0-beta.15",
113
+ "@tsparticles/updater-paint": "4.0.0-beta.15",
114
+ "@tsparticles/updater-rotate": "4.0.0-beta.15",
115
+ "@tsparticles/updater-size": "4.0.0-beta.15"
109
116
  },
110
117
  "publishConfig": {
111
118
  "access": "public"