@tsparticles/preset-squares 4.0.0-beta.12 → 4.0.0-beta.16
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 +7 -9
- package/browser/index.lazy.js +23 -0
- package/cjs/browser.js +5 -0
- package/cjs/bundle.js +4 -0
- package/cjs/index.js +7 -9
- package/cjs/index.lazy.js +23 -0
- package/esm/browser.js +5 -0
- package/esm/bundle.js +4 -0
- package/esm/index.js +7 -9
- package/esm/index.lazy.js +23 -0
- package/package.json +15 -8
- package/report.html +4949 -94
- package/tsparticles.preset.squares.bundle.js +5935 -967
- package/tsparticles.preset.squares.bundle.min.js +1 -2
- package/tsparticles.preset.squares.js +83 -407
- package/tsparticles.preset.squares.min.js +1 -2
- package/types/browser.d.ts +1 -0
- package/types/index.lazy.d.ts +2 -0
- package/147.min.js +0 -1
- package/181.min.js +0 -1
- package/210.min.js +0 -1
- package/371.min.js +0 -1
- package/379.min.js +0 -1
- package/425.min.js +0 -1
- package/434.min.js +0 -1
- package/436.min.js +0 -1
- package/439.min.js +0 -1
- package/623.min.js +0 -1
- package/627.min.js +0 -1
- package/646.min.js +0 -1
- package/748.min.js +0 -1
- package/818.min.js +0 -1
- package/829.min.js +0 -1
- package/837.min.js +0 -1
- package/879.min.js +0 -1
- package/93.min.js +0 -1
- package/935.min.js +0 -1
- package/979.min.js +0 -1
- package/dist_browser_options_js.js +0 -30
- package/engine_dist_browser_Core_Container_js.js +0 -100
- package/plugins_colors_hex_dist_browser_HexColorManager_js.js +0 -30
- package/plugins_colors_hex_dist_browser_index_js.js +0 -30
- package/plugins_emitters_dist_browser_EmitterInstance_js.js +0 -30
- package/plugins_emitters_dist_browser_EmittersInstancesManager_js.js +0 -100
- package/plugins_emitters_dist_browser_EmittersPluginInstance_js.js +0 -30
- package/plugins_emitters_dist_browser_EmittersPlugin_js.js +0 -100
- package/plugins_emitters_dist_browser_ShapeManager_js.js +0 -30
- package/plugins_emitters_dist_browser_addEmittersShapesManager_js.js +0 -30
- package/plugins_emitters_dist_browser_getEmittersInstancesManager_js.js +0 -30
- package/plugins_emitters_dist_browser_plugin_js.js +0 -50
- package/shapes_square_dist_browser_SquareDrawer_js.js +0 -40
- package/shapes_square_dist_browser_index_js.js +0 -30
- package/updaters_paint_dist_browser_PaintUpdater_js.js +0 -30
- package/updaters_paint_dist_browser_index_js.js +0 -30
- package/updaters_rotate_dist_browser_RotateUpdater_js.js +0 -50
- package/updaters_rotate_dist_browser_index_js.js +0 -30
- package/updaters_size_dist_browser_SizeUpdater_js.js +0 -30
- package/updaters_size_dist_browser_index_js.js +0 -30
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
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
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/preset-squares",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.16",
|
|
4
4
|
"description": "tsParticles squares preset",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
@@ -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.
|
|
103
|
-
"@tsparticles/plugin-emitters": "4.0.0-beta.
|
|
104
|
-
"@tsparticles/plugin-hex-color": "4.0.0-beta.
|
|
105
|
-
"@tsparticles/shape-square": "4.0.0-beta.
|
|
106
|
-
"@tsparticles/updater-paint": "4.0.0-beta.
|
|
107
|
-
"@tsparticles/updater-rotate": "4.0.0-beta.
|
|
108
|
-
"@tsparticles/updater-size": "4.0.0-beta.
|
|
109
|
+
"@tsparticles/engine": "4.0.0-beta.16",
|
|
110
|
+
"@tsparticles/plugin-emitters": "4.0.0-beta.16",
|
|
111
|
+
"@tsparticles/plugin-hex-color": "4.0.0-beta.16",
|
|
112
|
+
"@tsparticles/shape-square": "4.0.0-beta.16",
|
|
113
|
+
"@tsparticles/updater-paint": "4.0.0-beta.16",
|
|
114
|
+
"@tsparticles/updater-rotate": "4.0.0-beta.16",
|
|
115
|
+
"@tsparticles/updater-size": "4.0.0-beta.16"
|
|
109
116
|
},
|
|
110
117
|
"publishConfig": {
|
|
111
118
|
"access": "public"
|