@tsparticles/basic 4.0.0-beta.9 → 4.0.1
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/README.md +6 -6
- package/browser/browser.js +5 -0
- package/browser/bundle.js +4 -0
- package/browser/index.js +11 -13
- package/browser/index.lazy.js +27 -0
- package/cjs/browser.js +5 -0
- package/cjs/bundle.js +4 -0
- package/cjs/index.js +11 -13
- package/cjs/index.lazy.js +27 -0
- package/esm/browser.js +5 -0
- package/esm/bundle.js +4 -0
- package/esm/index.js +11 -13
- package/esm/index.lazy.js +27 -0
- package/package.json +18 -11
- package/report.html +4949 -94
- package/tsparticles.basic.bundle.js +6278 -957
- package/tsparticles.basic.bundle.min.js +1 -2
- package/tsparticles.basic.js +38 -232
- package/tsparticles.basic.min.js +1 -1
- package/types/browser.d.ts +1 -0
- package/types/index.lazy.d.ts +2 -0
- package/127.min.js +0 -1
- package/162.min.js +0 -1
- package/171.min.js +0 -1
- package/186.min.js +0 -1
- package/217.min.js +0 -1
- package/241.min.js +0 -1
- package/294.min.js +0 -1
- package/374.min.js +0 -1
- package/427.min.js +0 -1
- package/443.min.js +0 -1
- package/47.min.js +0 -1
- package/48.min.js +0 -1
- package/55.min.js +0 -1
- package/581.min.js +0 -1
- package/602.min.js +0 -1
- package/626.min.js +0 -1
- package/648.min.js +0 -1
- package/674.min.js +0 -1
- package/73.min.js +0 -1
- package/757.min.js +0 -1
- 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_colors_hsl_dist_browser_HslColorManager_js.js +0 -30
- package/plugins_colors_hsl_dist_browser_index_js.js +0 -30
- package/plugins_colors_rgb_dist_browser_RgbColorManager_js.js +0 -30
- package/plugins_colors_rgb_dist_browser_index_js.js +0 -30
- package/plugins_move_dist_browser_MovePluginInstance_js.js +0 -40
- package/plugins_move_dist_browser_MovePlugin_js.js +0 -30
- package/plugins_move_dist_browser_index_js.js +0 -30
- package/shapes_circle_dist_browser_CircleDrawer_js.js +0 -40
- package/shapes_circle_dist_browser_index_js.js +0 -30
- package/updaters_fillColor_dist_browser_FillColorUpdater_js.js +0 -30
- package/updaters_fillColor_dist_browser_index_js.js +0 -30
- package/updaters_opacity_dist_browser_OpacityUpdater_js.js +0 -30
- package/updaters_opacity_dist_browser_index_js.js +0 -30
- package/updaters_outModes_dist_browser_OutOfCanvasUpdater_js.js +0 -80
- package/updaters_outModes_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/README.md
CHANGED
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
**Included Packages**
|
|
10
10
|
|
|
11
11
|
- [@tsparticles/engine](https://github.com/tsparticles/tsparticles/tree/main/engine)
|
|
12
|
-
- [@tsparticles/plugin-move](https://github.com/tsparticles/tsparticles/tree/main/
|
|
13
|
-
- [@tsparticles/plugin-hex-color](https://github.com/tsparticles/tsparticles/tree/main/plugins/colors/
|
|
14
|
-
- [@tsparticles/plugin-hsl-color](https://github.com/tsparticles/tsparticles/tree/main/plugins/colors/
|
|
15
|
-
- [@tsparticles/plugin-rgb-color](https://github.com/tsparticles/tsparticles/tree/main/plugins/colors/
|
|
12
|
+
- [@tsparticles/plugin-move](https://github.com/tsparticles/tsparticles/tree/main/plugins/move)
|
|
13
|
+
- [@tsparticles/plugin-hex-color](https://github.com/tsparticles/tsparticles/tree/main/plugins/colors/hex)
|
|
14
|
+
- [@tsparticles/plugin-hsl-color](https://github.com/tsparticles/tsparticles/tree/main/plugins/colors/hsl)
|
|
15
|
+
- [@tsparticles/plugin-rgb-color](https://github.com/tsparticles/tsparticles/tree/main/plugins/colors/rgb)
|
|
16
16
|
- [@tsparticles/shape-circle](https://github.com/tsparticles/tsparticles/tree/main/shapes/circle)
|
|
17
|
-
- [@tsparticles/updater-
|
|
17
|
+
- [@tsparticles/updater-paint](https://github.com/tsparticles/tsparticles/tree/main/updaters/paint)
|
|
18
18
|
- [@tsparticles/updater-opacity](https://github.com/tsparticles/tsparticles/tree/main/updaters/opacity)
|
|
19
19
|
- [@tsparticles/updater-out-modes](https://github.com/tsparticles/tsparticles/tree/main/updaters/outModes)
|
|
20
20
|
- [@tsparticles/updater-size](https://github.com/tsparticles/tsparticles/tree/main/updaters/size)
|
|
@@ -44,7 +44,7 @@ subgraph s [Shapes]
|
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
subgraph u [Updaters]
|
|
47
|
-
|
|
47
|
+
up[tsparticles/updater-paint]
|
|
48
48
|
uo[tsparticles/updater-opacity]
|
|
49
49
|
uom[tsparticles/updater-out-modes]
|
|
50
50
|
us[tsparticles/updater-size]
|
package/browser/bundle.js
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
+
import { loadBasic } from "./index.js";
|
|
1
2
|
export * from "@tsparticles/engine";
|
|
2
3
|
export { loadBasic } from "./index.js";
|
|
4
|
+
const globalObject = globalThis;
|
|
5
|
+
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
6
|
+
globalObject.loadBasic = loadBasic;
|
package/browser/index.js
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
|
+
import { loadCircleShape } from "@tsparticles/shape-circle";
|
|
2
|
+
import { loadHexColorPlugin } from "@tsparticles/plugin-hex-color";
|
|
3
|
+
import { loadHslColorPlugin } from "@tsparticles/plugin-hsl-color";
|
|
4
|
+
import { loadMovePlugin } from "@tsparticles/plugin-move";
|
|
5
|
+
import { loadOpacityUpdater } from "@tsparticles/updater-opacity";
|
|
6
|
+
import { loadOutModesUpdater } from "@tsparticles/updater-out-modes";
|
|
7
|
+
import { loadPaintUpdater } from "@tsparticles/updater-paint";
|
|
8
|
+
import { loadRgbColorPlugin } from "@tsparticles/plugin-rgb-color";
|
|
9
|
+
import { loadSizeUpdater } from "@tsparticles/updater-size";
|
|
1
10
|
export async function loadBasic(engine) {
|
|
2
|
-
engine.checkVersion("4.0.
|
|
11
|
+
engine.checkVersion("4.0.1");
|
|
3
12
|
await engine.pluginManager.register(async (e) => {
|
|
4
|
-
const [{ loadHexColorPlugin }, { loadHslColorPlugin }, { loadRgbColorPlugin }, { loadMovePlugin }, { loadCircleShape }, { loadFillColorUpdater }, { loadOpacityUpdater }, { loadOutModesUpdater }, { loadSizeUpdater },] = await Promise.all([
|
|
5
|
-
import("@tsparticles/plugin-hex-color"),
|
|
6
|
-
import("@tsparticles/plugin-hsl-color"),
|
|
7
|
-
import("@tsparticles/plugin-rgb-color"),
|
|
8
|
-
import("@tsparticles/plugin-move"),
|
|
9
|
-
import("@tsparticles/shape-circle"),
|
|
10
|
-
import("@tsparticles/updater-fill-color"),
|
|
11
|
-
import("@tsparticles/updater-opacity"),
|
|
12
|
-
import("@tsparticles/updater-out-modes"),
|
|
13
|
-
import("@tsparticles/updater-size"),
|
|
14
|
-
]);
|
|
15
13
|
await Promise.all([
|
|
16
14
|
loadHexColorPlugin(e),
|
|
17
15
|
loadHslColorPlugin(e),
|
|
18
16
|
loadRgbColorPlugin(e),
|
|
19
17
|
loadMovePlugin(e),
|
|
20
18
|
loadCircleShape(e),
|
|
21
|
-
|
|
19
|
+
loadPaintUpdater(e),
|
|
22
20
|
loadOpacityUpdater(e),
|
|
23
21
|
loadOutModesUpdater(e),
|
|
24
22
|
loadSizeUpdater(e),
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export async function loadBasic(engine) {
|
|
2
|
+
engine.checkVersion("4.0.1");
|
|
3
|
+
await engine.pluginManager.register(async (e) => {
|
|
4
|
+
const [{ loadHexColorPlugin }, { loadHslColorPlugin }, { loadRgbColorPlugin }, { loadMovePlugin }, { loadCircleShape }, { loadOpacityUpdater }, { loadOutModesUpdater }, { loadPaintUpdater }, { loadSizeUpdater },] = await Promise.all([
|
|
5
|
+
import("@tsparticles/plugin-hex-color/lazy"),
|
|
6
|
+
import("@tsparticles/plugin-hsl-color/lazy"),
|
|
7
|
+
import("@tsparticles/plugin-rgb-color/lazy"),
|
|
8
|
+
import("@tsparticles/plugin-move/lazy"),
|
|
9
|
+
import("@tsparticles/shape-circle/lazy"),
|
|
10
|
+
import("@tsparticles/updater-opacity/lazy"),
|
|
11
|
+
import("@tsparticles/updater-out-modes/lazy"),
|
|
12
|
+
import("@tsparticles/updater-paint/lazy"),
|
|
13
|
+
import("@tsparticles/updater-size/lazy"),
|
|
14
|
+
]);
|
|
15
|
+
await Promise.all([
|
|
16
|
+
loadHexColorPlugin(e),
|
|
17
|
+
loadHslColorPlugin(e),
|
|
18
|
+
loadRgbColorPlugin(e),
|
|
19
|
+
loadMovePlugin(e),
|
|
20
|
+
loadCircleShape(e),
|
|
21
|
+
loadPaintUpdater(e),
|
|
22
|
+
loadOpacityUpdater(e),
|
|
23
|
+
loadOutModesUpdater(e),
|
|
24
|
+
loadSizeUpdater(e),
|
|
25
|
+
]);
|
|
26
|
+
});
|
|
27
|
+
}
|
package/cjs/browser.js
ADDED
package/cjs/bundle.js
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
+
import { loadBasic } from "./index.js";
|
|
1
2
|
export * from "@tsparticles/engine";
|
|
2
3
|
export { loadBasic } from "./index.js";
|
|
4
|
+
const globalObject = globalThis;
|
|
5
|
+
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
6
|
+
globalObject.loadBasic = loadBasic;
|
package/cjs/index.js
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
|
+
import { loadCircleShape } from "@tsparticles/shape-circle";
|
|
2
|
+
import { loadHexColorPlugin } from "@tsparticles/plugin-hex-color";
|
|
3
|
+
import { loadHslColorPlugin } from "@tsparticles/plugin-hsl-color";
|
|
4
|
+
import { loadMovePlugin } from "@tsparticles/plugin-move";
|
|
5
|
+
import { loadOpacityUpdater } from "@tsparticles/updater-opacity";
|
|
6
|
+
import { loadOutModesUpdater } from "@tsparticles/updater-out-modes";
|
|
7
|
+
import { loadPaintUpdater } from "@tsparticles/updater-paint";
|
|
8
|
+
import { loadRgbColorPlugin } from "@tsparticles/plugin-rgb-color";
|
|
9
|
+
import { loadSizeUpdater } from "@tsparticles/updater-size";
|
|
1
10
|
export async function loadBasic(engine) {
|
|
2
|
-
engine.checkVersion("4.0.
|
|
11
|
+
engine.checkVersion("4.0.1");
|
|
3
12
|
await engine.pluginManager.register(async (e) => {
|
|
4
|
-
const [{ loadHexColorPlugin }, { loadHslColorPlugin }, { loadRgbColorPlugin }, { loadMovePlugin }, { loadCircleShape }, { loadFillColorUpdater }, { loadOpacityUpdater }, { loadOutModesUpdater }, { loadSizeUpdater },] = await Promise.all([
|
|
5
|
-
import("@tsparticles/plugin-hex-color"),
|
|
6
|
-
import("@tsparticles/plugin-hsl-color"),
|
|
7
|
-
import("@tsparticles/plugin-rgb-color"),
|
|
8
|
-
import("@tsparticles/plugin-move"),
|
|
9
|
-
import("@tsparticles/shape-circle"),
|
|
10
|
-
import("@tsparticles/updater-fill-color"),
|
|
11
|
-
import("@tsparticles/updater-opacity"),
|
|
12
|
-
import("@tsparticles/updater-out-modes"),
|
|
13
|
-
import("@tsparticles/updater-size"),
|
|
14
|
-
]);
|
|
15
13
|
await Promise.all([
|
|
16
14
|
loadHexColorPlugin(e),
|
|
17
15
|
loadHslColorPlugin(e),
|
|
18
16
|
loadRgbColorPlugin(e),
|
|
19
17
|
loadMovePlugin(e),
|
|
20
18
|
loadCircleShape(e),
|
|
21
|
-
|
|
19
|
+
loadPaintUpdater(e),
|
|
22
20
|
loadOpacityUpdater(e),
|
|
23
21
|
loadOutModesUpdater(e),
|
|
24
22
|
loadSizeUpdater(e),
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export async function loadBasic(engine) {
|
|
2
|
+
engine.checkVersion("4.0.1");
|
|
3
|
+
await engine.pluginManager.register(async (e) => {
|
|
4
|
+
const [{ loadHexColorPlugin }, { loadHslColorPlugin }, { loadRgbColorPlugin }, { loadMovePlugin }, { loadCircleShape }, { loadOpacityUpdater }, { loadOutModesUpdater }, { loadPaintUpdater }, { loadSizeUpdater },] = await Promise.all([
|
|
5
|
+
import("@tsparticles/plugin-hex-color/lazy"),
|
|
6
|
+
import("@tsparticles/plugin-hsl-color/lazy"),
|
|
7
|
+
import("@tsparticles/plugin-rgb-color/lazy"),
|
|
8
|
+
import("@tsparticles/plugin-move/lazy"),
|
|
9
|
+
import("@tsparticles/shape-circle/lazy"),
|
|
10
|
+
import("@tsparticles/updater-opacity/lazy"),
|
|
11
|
+
import("@tsparticles/updater-out-modes/lazy"),
|
|
12
|
+
import("@tsparticles/updater-paint/lazy"),
|
|
13
|
+
import("@tsparticles/updater-size/lazy"),
|
|
14
|
+
]);
|
|
15
|
+
await Promise.all([
|
|
16
|
+
loadHexColorPlugin(e),
|
|
17
|
+
loadHslColorPlugin(e),
|
|
18
|
+
loadRgbColorPlugin(e),
|
|
19
|
+
loadMovePlugin(e),
|
|
20
|
+
loadCircleShape(e),
|
|
21
|
+
loadPaintUpdater(e),
|
|
22
|
+
loadOpacityUpdater(e),
|
|
23
|
+
loadOutModesUpdater(e),
|
|
24
|
+
loadSizeUpdater(e),
|
|
25
|
+
]);
|
|
26
|
+
});
|
|
27
|
+
}
|
package/esm/browser.js
ADDED
package/esm/bundle.js
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
+
import { loadBasic } from "./index.js";
|
|
1
2
|
export * from "@tsparticles/engine";
|
|
2
3
|
export { loadBasic } from "./index.js";
|
|
4
|
+
const globalObject = globalThis;
|
|
5
|
+
globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
|
|
6
|
+
globalObject.loadBasic = loadBasic;
|
package/esm/index.js
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
|
+
import { loadCircleShape } from "@tsparticles/shape-circle";
|
|
2
|
+
import { loadHexColorPlugin } from "@tsparticles/plugin-hex-color";
|
|
3
|
+
import { loadHslColorPlugin } from "@tsparticles/plugin-hsl-color";
|
|
4
|
+
import { loadMovePlugin } from "@tsparticles/plugin-move";
|
|
5
|
+
import { loadOpacityUpdater } from "@tsparticles/updater-opacity";
|
|
6
|
+
import { loadOutModesUpdater } from "@tsparticles/updater-out-modes";
|
|
7
|
+
import { loadPaintUpdater } from "@tsparticles/updater-paint";
|
|
8
|
+
import { loadRgbColorPlugin } from "@tsparticles/plugin-rgb-color";
|
|
9
|
+
import { loadSizeUpdater } from "@tsparticles/updater-size";
|
|
1
10
|
export async function loadBasic(engine) {
|
|
2
|
-
engine.checkVersion("4.0.
|
|
11
|
+
engine.checkVersion("4.0.1");
|
|
3
12
|
await engine.pluginManager.register(async (e) => {
|
|
4
|
-
const [{ loadHexColorPlugin }, { loadHslColorPlugin }, { loadRgbColorPlugin }, { loadMovePlugin }, { loadCircleShape }, { loadFillColorUpdater }, { loadOpacityUpdater }, { loadOutModesUpdater }, { loadSizeUpdater },] = await Promise.all([
|
|
5
|
-
import("@tsparticles/plugin-hex-color"),
|
|
6
|
-
import("@tsparticles/plugin-hsl-color"),
|
|
7
|
-
import("@tsparticles/plugin-rgb-color"),
|
|
8
|
-
import("@tsparticles/plugin-move"),
|
|
9
|
-
import("@tsparticles/shape-circle"),
|
|
10
|
-
import("@tsparticles/updater-fill-color"),
|
|
11
|
-
import("@tsparticles/updater-opacity"),
|
|
12
|
-
import("@tsparticles/updater-out-modes"),
|
|
13
|
-
import("@tsparticles/updater-size"),
|
|
14
|
-
]);
|
|
15
13
|
await Promise.all([
|
|
16
14
|
loadHexColorPlugin(e),
|
|
17
15
|
loadHslColorPlugin(e),
|
|
18
16
|
loadRgbColorPlugin(e),
|
|
19
17
|
loadMovePlugin(e),
|
|
20
18
|
loadCircleShape(e),
|
|
21
|
-
|
|
19
|
+
loadPaintUpdater(e),
|
|
22
20
|
loadOpacityUpdater(e),
|
|
23
21
|
loadOutModesUpdater(e),
|
|
24
22
|
loadSizeUpdater(e),
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export async function loadBasic(engine) {
|
|
2
|
+
engine.checkVersion("4.0.1");
|
|
3
|
+
await engine.pluginManager.register(async (e) => {
|
|
4
|
+
const [{ loadHexColorPlugin }, { loadHslColorPlugin }, { loadRgbColorPlugin }, { loadMovePlugin }, { loadCircleShape }, { loadOpacityUpdater }, { loadOutModesUpdater }, { loadPaintUpdater }, { loadSizeUpdater },] = await Promise.all([
|
|
5
|
+
import("@tsparticles/plugin-hex-color/lazy"),
|
|
6
|
+
import("@tsparticles/plugin-hsl-color/lazy"),
|
|
7
|
+
import("@tsparticles/plugin-rgb-color/lazy"),
|
|
8
|
+
import("@tsparticles/plugin-move/lazy"),
|
|
9
|
+
import("@tsparticles/shape-circle/lazy"),
|
|
10
|
+
import("@tsparticles/updater-opacity/lazy"),
|
|
11
|
+
import("@tsparticles/updater-out-modes/lazy"),
|
|
12
|
+
import("@tsparticles/updater-paint/lazy"),
|
|
13
|
+
import("@tsparticles/updater-size/lazy"),
|
|
14
|
+
]);
|
|
15
|
+
await Promise.all([
|
|
16
|
+
loadHexColorPlugin(e),
|
|
17
|
+
loadHslColorPlugin(e),
|
|
18
|
+
loadRgbColorPlugin(e),
|
|
19
|
+
loadMovePlugin(e),
|
|
20
|
+
loadCircleShape(e),
|
|
21
|
+
loadPaintUpdater(e),
|
|
22
|
+
loadOpacityUpdater(e),
|
|
23
|
+
loadOutModesUpdater(e),
|
|
24
|
+
loadSizeUpdater(e),
|
|
25
|
+
]);
|
|
26
|
+
});
|
|
27
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/basic",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "Easily create highly customizable particle animations and use them as animated backgrounds for your website. Ready to use components available also for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
@@ -95,19 +95,26 @@
|
|
|
95
95
|
"require": "./cjs/index.js",
|
|
96
96
|
"default": "./esm/index.js"
|
|
97
97
|
},
|
|
98
|
+
"./lazy": {
|
|
99
|
+
"types": "./types/index.lazy.d.ts",
|
|
100
|
+
"browser": "./browser/index.lazy.js",
|
|
101
|
+
"import": "./esm/index.lazy.js",
|
|
102
|
+
"require": "./cjs/index.lazy.js",
|
|
103
|
+
"default": "./esm/index.lazy.js"
|
|
104
|
+
},
|
|
98
105
|
"./package.json": "./package.json"
|
|
99
106
|
},
|
|
100
107
|
"dependencies": {
|
|
101
|
-
"@tsparticles/engine": "4.0.
|
|
102
|
-
"@tsparticles/plugin-hex-color": "4.0.
|
|
103
|
-
"@tsparticles/plugin-hsl-color": "4.0.
|
|
104
|
-
"@tsparticles/plugin-move": "4.0.
|
|
105
|
-
"@tsparticles/plugin-rgb-color": "4.0.
|
|
106
|
-
"@tsparticles/shape-circle": "4.0.
|
|
107
|
-
"@tsparticles/updater-
|
|
108
|
-
"@tsparticles/updater-
|
|
109
|
-
"@tsparticles/updater-
|
|
110
|
-
"@tsparticles/updater-size": "4.0.
|
|
108
|
+
"@tsparticles/engine": "4.0.1",
|
|
109
|
+
"@tsparticles/plugin-hex-color": "4.0.1",
|
|
110
|
+
"@tsparticles/plugin-hsl-color": "4.0.1",
|
|
111
|
+
"@tsparticles/plugin-move": "4.0.1",
|
|
112
|
+
"@tsparticles/plugin-rgb-color": "4.0.1",
|
|
113
|
+
"@tsparticles/shape-circle": "4.0.1",
|
|
114
|
+
"@tsparticles/updater-opacity": "4.0.1",
|
|
115
|
+
"@tsparticles/updater-out-modes": "4.0.1",
|
|
116
|
+
"@tsparticles/updater-paint": "4.0.1",
|
|
117
|
+
"@tsparticles/updater-size": "4.0.1"
|
|
111
118
|
},
|
|
112
119
|
"publishConfig": {
|
|
113
120
|
"access": "public"
|