@tsparticles/fireworks 3.0.0-beta.0 → 3.0.0-beta.2
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 +15 -15
- package/browser/fireworks.js +1 -1
- package/browser/index.js +1 -1
- package/browser/package.json +1 -0
- package/cjs/fireworks.js +2 -2
- package/cjs/index.js +1 -1
- package/cjs/package.json +1 -0
- package/esm/fireworks.js +1 -1
- package/esm/index.js +1 -1
- package/esm/package.json +1 -0
- package/package.json +27 -15
- package/report.html +23 -5
- package/tsparticles.fireworks.bundle.js +149 -148
- package/tsparticles.fireworks.bundle.min.js +1 -1
- package/tsparticles.fireworks.bundle.min.js.LICENSE.txt +1 -1
- package/tsparticles.fireworks.js +10 -10
- package/tsparticles.fireworks.min.js +1 -1
- package/tsparticles.fireworks.min.js.LICENSE.txt +1 -1
- package/types/FireworkOptions.d.ts +1 -1
- package/types/fireworks.d.ts +1 -1
- package/types/index.d.ts +2 -2
- package/umd/fireworks.js +3 -3
- package/umd/index.js +2 -2
package/README.md
CHANGED
|
@@ -4,25 +4,25 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://www.jsdelivr.com/package/npm/@tsparticles/fireworks) [](https://www.npmjs.com/package/@tsparticles/fireworks) [](https://www.npmjs.com/package/@tsparticles/fireworks) [](https://github.com/sponsors/matteobruni)
|
|
6
6
|
|
|
7
|
-
[tsParticles](https://github.com/
|
|
7
|
+
[tsParticles](https://github.com/tsparticles/tsparticles) fireworks bundle loads all the features necessary to create
|
|
8
8
|
beautiful fireworks effects with ease.
|
|
9
9
|
|
|
10
10
|
**Included Packages**
|
|
11
11
|
|
|
12
|
-
- [@tsparticles/engine](https://github.com/
|
|
13
|
-
- [@tsparticles/move-base](https://github.com/
|
|
14
|
-
- [@tsparticles/plugin-emitters](https://github.com/
|
|
15
|
-
- [@tsparticles/plugin-sounds](https://github.com/
|
|
16
|
-
- [@tsparticles/shape-circle](https://github.com/
|
|
17
|
-
- [@tsparticles/shape-line](https://github.com/
|
|
18
|
-
- [@tsparticles/updater-color](https://github.com/
|
|
19
|
-
- [@tsparticles/updater-destroy](https://github.com/
|
|
20
|
-
- [@tsparticles/updater-life](https://github.com/
|
|
21
|
-
- [@tsparticles/updater-opacity](https://github.com/
|
|
22
|
-
- [@tsparticles/updater-out-modes](https://github.com/
|
|
23
|
-
- [@tsparticles/updater-rotate](https://github.com/
|
|
24
|
-
- [@tsparticles/updater-size](https://github.com/
|
|
25
|
-
- [@tsparticles/updater-stroke-color](https://github.com/
|
|
12
|
+
- [@tsparticles/engine](https://github.com/tsparticles/tsparticles/tree/main/engine)
|
|
13
|
+
- [@tsparticles/move-base](https://github.com/tsparticles/tsparticles/tree/main/move/base)
|
|
14
|
+
- [@tsparticles/plugin-emitters](https://github.com/tsparticles/tsparticles/tree/main/plugins/emitters)
|
|
15
|
+
- [@tsparticles/plugin-sounds](https://github.com/tsparticles/tsparticles/tree/main/plugins/sounds)
|
|
16
|
+
- [@tsparticles/shape-circle](https://github.com/tsparticles/tsparticles/tree/main/shapes/circle)
|
|
17
|
+
- [@tsparticles/shape-line](https://github.com/tsparticles/tsparticles/tree/main/shapes/line)
|
|
18
|
+
- [@tsparticles/updater-color](https://github.com/tsparticles/tsparticles/tree/main/updaters/color)
|
|
19
|
+
- [@tsparticles/updater-destroy](https://github.com/tsparticles/tsparticles/tree/main/updaters/destroy)
|
|
20
|
+
- [@tsparticles/updater-life](https://github.com/tsparticles/tsparticles/tree/main/updaters/life)
|
|
21
|
+
- [@tsparticles/updater-opacity](https://github.com/tsparticles/tsparticles/tree/main/updaters/opacity)
|
|
22
|
+
- [@tsparticles/updater-out-modes](https://github.com/tsparticles/tsparticles/tree/main/updaters/outModes)
|
|
23
|
+
- [@tsparticles/updater-rotate](https://github.com/tsparticles/tsparticles/tree/main/updaters/rotate)
|
|
24
|
+
- [@tsparticles/updater-size](https://github.com/tsparticles/tsparticles/tree/main/updaters/size)
|
|
25
|
+
- [@tsparticles/updater-stroke-color](https://github.com/tsparticles/tsparticles/tree/main/updaters/strokeColor)
|
|
26
26
|
|
|
27
27
|
## How to use it
|
|
28
28
|
|
package/browser/fireworks.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getRangeMax, getRangeMin, isNumber, isSsr, isString, setRangeValue, tsParticles, } from "@tsparticles/engine";
|
|
2
|
-
import { FireworkOptions } from "./FireworkOptions";
|
|
2
|
+
import { FireworkOptions } from "./FireworkOptions.js";
|
|
3
3
|
import { loadBasic } from "@tsparticles/basic";
|
|
4
4
|
import { loadDestroyUpdater } from "@tsparticles/updater-destroy";
|
|
5
5
|
import { loadEmittersPlugin } from "@tsparticles/plugin-emitters";
|
package/browser/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./fireworks";
|
|
1
|
+
export * from "./fireworks.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "type": "module" }
|
package/cjs/fireworks.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.fireworks = void 0;
|
|
4
4
|
const engine_1 = require("@tsparticles/engine");
|
|
5
|
-
const
|
|
5
|
+
const FireworkOptions_js_1 = require("./FireworkOptions.js");
|
|
6
6
|
const basic_1 = require("@tsparticles/basic");
|
|
7
7
|
const updater_destroy_1 = require("@tsparticles/updater-destroy");
|
|
8
8
|
const plugin_emitters_1 = require("@tsparticles/plugin-emitters");
|
|
@@ -61,7 +61,7 @@ async function initPlugins() {
|
|
|
61
61
|
async function fireworks(idOrOptions, sourceOptions) {
|
|
62
62
|
await initPlugins();
|
|
63
63
|
let id;
|
|
64
|
-
const options = new
|
|
64
|
+
const options = new FireworkOptions_js_1.FireworkOptions();
|
|
65
65
|
if ((0, engine_1.isString)(idOrOptions)) {
|
|
66
66
|
id = idOrOptions;
|
|
67
67
|
options.load(sourceOptions);
|
package/cjs/index.js
CHANGED
|
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./fireworks"), exports);
|
|
17
|
+
__exportStar(require("./fireworks.js"), exports);
|
package/cjs/package.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "type": "commonjs" }
|
package/esm/fireworks.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getRangeMax, getRangeMin, isNumber, isSsr, isString, setRangeValue, tsParticles, } from "@tsparticles/engine";
|
|
2
|
-
import { FireworkOptions } from "./FireworkOptions";
|
|
2
|
+
import { FireworkOptions } from "./FireworkOptions.js";
|
|
3
3
|
import { loadBasic } from "@tsparticles/basic";
|
|
4
4
|
import { loadDestroyUpdater } from "@tsparticles/updater-destroy";
|
|
5
5
|
import { loadEmittersPlugin } from "@tsparticles/plugin-emitters";
|
package/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./fireworks";
|
|
1
|
+
export * from "./fireworks.js";
|
package/esm/package.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "type": "module" }
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/fireworks",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.2",
|
|
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": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/
|
|
8
|
+
"url": "git+https://github.com/tsparticles/tsparticles.git",
|
|
9
9
|
"directory": "bundles/fireworks"
|
|
10
10
|
},
|
|
11
11
|
"keywords": [
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"author": "Matteo Bruni <matteo.bruni@me.com>",
|
|
65
65
|
"license": "MIT",
|
|
66
66
|
"bugs": {
|
|
67
|
-
"url": "https://github.com/
|
|
67
|
+
"url": "https://github.com/tsparticles/tsparticles/issues"
|
|
68
68
|
},
|
|
69
69
|
"funding": [
|
|
70
70
|
{
|
|
@@ -80,22 +80,34 @@
|
|
|
80
80
|
"url": "https://www.buymeacoffee.com/matteobruni"
|
|
81
81
|
}
|
|
82
82
|
],
|
|
83
|
-
"main": "cjs/index.js",
|
|
84
|
-
"module": "esm/index.js",
|
|
85
83
|
"jsdelivr": "tsparticles.fireworks.bundle.min.js",
|
|
86
84
|
"unpkg": "tsparticles.fireworks.bundle.min.js",
|
|
87
|
-
"types": "types/index.d.ts",
|
|
88
85
|
"sideEffects": false,
|
|
86
|
+
"browser": "browser/index.js",
|
|
87
|
+
"main": "cjs/index.js",
|
|
88
|
+
"module": "esm/index.js",
|
|
89
|
+
"types": "types/index.d.ts",
|
|
90
|
+
"exports": {
|
|
91
|
+
".": {
|
|
92
|
+
"types": "./types/index.d.ts",
|
|
93
|
+
"browser": "./browser/index.js",
|
|
94
|
+
"import": "./esm/index.js",
|
|
95
|
+
"require": "./cjs/index.js",
|
|
96
|
+
"umd": "./umd/index.js",
|
|
97
|
+
"default": "./cjs/index.js"
|
|
98
|
+
},
|
|
99
|
+
"./package.json": "./package.json"
|
|
100
|
+
},
|
|
89
101
|
"dependencies": {
|
|
90
|
-
"@tsparticles/basic": "^3.0.0-beta.
|
|
91
|
-
"@tsparticles/engine": "^3.0.0-beta.
|
|
92
|
-
"@tsparticles/plugin-emitters": "^3.0.0-beta.
|
|
93
|
-
"@tsparticles/plugin-sounds": "^3.0.0-beta.
|
|
94
|
-
"@tsparticles/shape-line": "^3.0.0-beta.
|
|
95
|
-
"@tsparticles/updater-destroy": "^3.0.0-beta.
|
|
96
|
-
"@tsparticles/updater-life": "^3.0.0-beta.
|
|
97
|
-
"@tsparticles/updater-rotate": "^3.0.0-beta.
|
|
98
|
-
"@tsparticles/updater-stroke-color": "^3.0.0-beta.
|
|
102
|
+
"@tsparticles/basic": "^3.0.0-beta.2",
|
|
103
|
+
"@tsparticles/engine": "^3.0.0-beta.2",
|
|
104
|
+
"@tsparticles/plugin-emitters": "^3.0.0-beta.2",
|
|
105
|
+
"@tsparticles/plugin-sounds": "^3.0.0-beta.2",
|
|
106
|
+
"@tsparticles/shape-line": "^3.0.0-beta.2",
|
|
107
|
+
"@tsparticles/updater-destroy": "^3.0.0-beta.2",
|
|
108
|
+
"@tsparticles/updater-life": "^3.0.0-beta.2",
|
|
109
|
+
"@tsparticles/updater-rotate": "^3.0.0-beta.2",
|
|
110
|
+
"@tsparticles/updater-stroke-color": "^3.0.0-beta.2"
|
|
99
111
|
},
|
|
100
112
|
"publishConfig": {
|
|
101
113
|
"access": "public"
|