@tsparticles/confetti 3.0.1 → 3.0.3

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 CHANGED
@@ -15,12 +15,12 @@ beautiful confetti effects with ease.
15
15
  - [@tsparticles/plugin-motion](https://github.com/tsparticles/tsparticles/tree/main/plugins/motion)
16
16
  - [@tsparticles/shape-cards](https://github.com/tsparticles/tsparticles/tree/main/shapes/cards)
17
17
  - [@tsparticles/shape-circle](https://github.com/tsparticles/tsparticles/tree/main/shapes/circle)
18
+ - [@tsparticles/shape-emoji](https://github.com/tsparticles/tsparticles/tree/main/shapes/emoji)
18
19
  - [@tsparticles/shape-heart](https://github.com/tsparticles/tsparticles/tree/main/shapes/heart)
19
20
  - [@tsparticles/shape-image](https://github.com/tsparticles/tsparticles/tree/main/shapes/image)
20
21
  - [@tsparticles/shape-polygon](https://github.com/tsparticles/tsparticles/tree/main/shapes/polygon)
21
22
  - [@tsparticles/shape-square](https://github.com/tsparticles/tsparticles/tree/main/shapes/square)
22
23
  - [@tsparticles/shape-star](https://github.com/tsparticles/tsparticles/tree/main/shapes/star)
23
- - [@tsparticles/shape-text](https://github.com/tsparticles/tsparticles/tree/main/shapes/text)
24
24
  - [@tsparticles/updater-color](https://github.com/tsparticles/tsparticles/tree/main/updaters/color)
25
25
  - [@tsparticles/updater-life](https://github.com/tsparticles/tsparticles/tree/main/updaters/life)
26
26
  - [@tsparticles/updater-opacity](https://github.com/tsparticles/tsparticles/tree/main/updaters/opacity)
@@ -3,6 +3,7 @@ import { ConfettiOptions } from "./ConfettiOptions.js";
3
3
  import { loadBasic } from "@tsparticles/basic";
4
4
  import { loadCardsShape } from "@tsparticles/shape-cards";
5
5
  import { loadEmittersPlugin } from "@tsparticles/plugin-emitters";
6
+ import { loadEmojiShape } from "@tsparticles/shape-emoji";
6
7
  import { loadHeartShape } from "@tsparticles/shape-heart";
7
8
  import { loadImageShape } from "@tsparticles/shape-image";
8
9
  import { loadLifeUpdater } from "@tsparticles/updater-life";
@@ -12,7 +13,6 @@ import { loadRollUpdater } from "@tsparticles/updater-roll";
12
13
  import { loadRotateUpdater } from "@tsparticles/updater-rotate";
13
14
  import { loadSquareShape } from "@tsparticles/shape-square";
14
15
  import { loadStarShape } from "@tsparticles/shape-star";
15
- import { loadTextShape } from "@tsparticles/shape-text";
16
16
  import { loadTiltUpdater } from "@tsparticles/updater-tilt";
17
17
  import { loadWobbleUpdater } from "@tsparticles/updater-wobble";
18
18
  let initialized = false;
@@ -42,7 +42,7 @@ async function initPlugins(engine) {
42
42
  await loadPolygonShape(engine, false);
43
43
  await loadSquareShape(engine, false);
44
44
  await loadStarShape(engine, false);
45
- await loadTextShape(engine, false);
45
+ await loadEmojiShape(engine, false);
46
46
  await loadRotateUpdater(engine, false);
47
47
  await loadLifeUpdater(engine, false);
48
48
  await loadRollUpdater(engine, false);
@@ -192,13 +192,13 @@ async function setConfetti(params) {
192
192
  },
193
193
  direction: "random",
194
194
  animation: {
195
- enable: actualOptions.flat,
195
+ enable: !actualOptions.flat,
196
196
  speed: 60,
197
197
  },
198
198
  },
199
199
  tilt: {
200
200
  direction: "random",
201
- enable: actualOptions.flat,
201
+ enable: !actualOptions.flat,
202
202
  value: actualOptions.flat
203
203
  ? 0
204
204
  : {
@@ -215,7 +215,7 @@ async function setConfetti(params) {
215
215
  enable: true,
216
216
  value: 25,
217
217
  },
218
- enable: actualOptions.flat,
218
+ enable: !actualOptions.flat,
219
219
  speed: {
220
220
  min: 15,
221
221
  max: 25,
@@ -223,7 +223,7 @@ async function setConfetti(params) {
223
223
  },
224
224
  wobble: {
225
225
  distance: 30,
226
- enable: actualOptions.flat,
226
+ enable: !actualOptions.flat,
227
227
  speed: {
228
228
  min: -15,
229
229
  max: 15,
package/cjs/confetti.js CHANGED
@@ -6,6 +6,7 @@ const ConfettiOptions_js_1 = require("./ConfettiOptions.js");
6
6
  const basic_1 = require("@tsparticles/basic");
7
7
  const shape_cards_1 = require("@tsparticles/shape-cards");
8
8
  const plugin_emitters_1 = require("@tsparticles/plugin-emitters");
9
+ const shape_emoji_1 = require("@tsparticles/shape-emoji");
9
10
  const shape_heart_1 = require("@tsparticles/shape-heart");
10
11
  const shape_image_1 = require("@tsparticles/shape-image");
11
12
  const updater_life_1 = require("@tsparticles/updater-life");
@@ -15,7 +16,6 @@ const updater_roll_1 = require("@tsparticles/updater-roll");
15
16
  const updater_rotate_1 = require("@tsparticles/updater-rotate");
16
17
  const shape_square_1 = require("@tsparticles/shape-square");
17
18
  const shape_star_1 = require("@tsparticles/shape-star");
18
- const shape_text_1 = require("@tsparticles/shape-text");
19
19
  const updater_tilt_1 = require("@tsparticles/updater-tilt");
20
20
  const updater_wobble_1 = require("@tsparticles/updater-wobble");
21
21
  let initialized = false;
@@ -45,7 +45,7 @@ async function initPlugins(engine) {
45
45
  await (0, shape_polygon_1.loadPolygonShape)(engine, false);
46
46
  await (0, shape_square_1.loadSquareShape)(engine, false);
47
47
  await (0, shape_star_1.loadStarShape)(engine, false);
48
- await (0, shape_text_1.loadTextShape)(engine, false);
48
+ await (0, shape_emoji_1.loadEmojiShape)(engine, false);
49
49
  await (0, updater_rotate_1.loadRotateUpdater)(engine, false);
50
50
  await (0, updater_life_1.loadLifeUpdater)(engine, false);
51
51
  await (0, updater_roll_1.loadRollUpdater)(engine, false);
@@ -195,13 +195,13 @@ async function setConfetti(params) {
195
195
  },
196
196
  direction: "random",
197
197
  animation: {
198
- enable: actualOptions.flat,
198
+ enable: !actualOptions.flat,
199
199
  speed: 60,
200
200
  },
201
201
  },
202
202
  tilt: {
203
203
  direction: "random",
204
- enable: actualOptions.flat,
204
+ enable: !actualOptions.flat,
205
205
  value: actualOptions.flat
206
206
  ? 0
207
207
  : {
@@ -218,7 +218,7 @@ async function setConfetti(params) {
218
218
  enable: true,
219
219
  value: 25,
220
220
  },
221
- enable: actualOptions.flat,
221
+ enable: !actualOptions.flat,
222
222
  speed: {
223
223
  min: 15,
224
224
  max: 25,
@@ -226,7 +226,7 @@ async function setConfetti(params) {
226
226
  },
227
227
  wobble: {
228
228
  distance: 30,
229
- enable: actualOptions.flat,
229
+ enable: !actualOptions.flat,
230
230
  speed: {
231
231
  min: -15,
232
232
  max: 15,
package/esm/confetti.js CHANGED
@@ -3,6 +3,7 @@ import { ConfettiOptions } from "./ConfettiOptions.js";
3
3
  import { loadBasic } from "@tsparticles/basic";
4
4
  import { loadCardsShape } from "@tsparticles/shape-cards";
5
5
  import { loadEmittersPlugin } from "@tsparticles/plugin-emitters";
6
+ import { loadEmojiShape } from "@tsparticles/shape-emoji";
6
7
  import { loadHeartShape } from "@tsparticles/shape-heart";
7
8
  import { loadImageShape } from "@tsparticles/shape-image";
8
9
  import { loadLifeUpdater } from "@tsparticles/updater-life";
@@ -12,7 +13,6 @@ import { loadRollUpdater } from "@tsparticles/updater-roll";
12
13
  import { loadRotateUpdater } from "@tsparticles/updater-rotate";
13
14
  import { loadSquareShape } from "@tsparticles/shape-square";
14
15
  import { loadStarShape } from "@tsparticles/shape-star";
15
- import { loadTextShape } from "@tsparticles/shape-text";
16
16
  import { loadTiltUpdater } from "@tsparticles/updater-tilt";
17
17
  import { loadWobbleUpdater } from "@tsparticles/updater-wobble";
18
18
  let initialized = false;
@@ -42,7 +42,7 @@ async function initPlugins(engine) {
42
42
  await loadPolygonShape(engine, false);
43
43
  await loadSquareShape(engine, false);
44
44
  await loadStarShape(engine, false);
45
- await loadTextShape(engine, false);
45
+ await loadEmojiShape(engine, false);
46
46
  await loadRotateUpdater(engine, false);
47
47
  await loadLifeUpdater(engine, false);
48
48
  await loadRollUpdater(engine, false);
@@ -192,13 +192,13 @@ async function setConfetti(params) {
192
192
  },
193
193
  direction: "random",
194
194
  animation: {
195
- enable: actualOptions.flat,
195
+ enable: !actualOptions.flat,
196
196
  speed: 60,
197
197
  },
198
198
  },
199
199
  tilt: {
200
200
  direction: "random",
201
- enable: actualOptions.flat,
201
+ enable: !actualOptions.flat,
202
202
  value: actualOptions.flat
203
203
  ? 0
204
204
  : {
@@ -215,7 +215,7 @@ async function setConfetti(params) {
215
215
  enable: true,
216
216
  value: 25,
217
217
  },
218
- enable: actualOptions.flat,
218
+ enable: !actualOptions.flat,
219
219
  speed: {
220
220
  min: 15,
221
221
  max: 25,
@@ -223,7 +223,7 @@ async function setConfetti(params) {
223
223
  },
224
224
  wobble: {
225
225
  distance: 30,
226
- enable: actualOptions.flat,
226
+ enable: !actualOptions.flat,
227
227
  speed: {
228
228
  min: -15,
229
229
  max: 15,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/confetti",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
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": {
@@ -99,22 +99,22 @@
99
99
  "./package.json": "./package.json"
100
100
  },
101
101
  "dependencies": {
102
- "@tsparticles/basic": "^3.0.1",
103
- "@tsparticles/engine": "^3.0.1",
104
- "@tsparticles/plugin-emitters": "^3.0.1",
105
- "@tsparticles/plugin-motion": "^3.0.1",
106
- "@tsparticles/shape-cards": "^3.0.1",
107
- "@tsparticles/shape-heart": "^3.0.1",
108
- "@tsparticles/shape-image": "^3.0.1",
109
- "@tsparticles/shape-polygon": "^3.0.1",
110
- "@tsparticles/shape-square": "^3.0.1",
111
- "@tsparticles/shape-star": "^3.0.1",
112
- "@tsparticles/shape-text": "^3.0.1",
113
- "@tsparticles/updater-life": "^3.0.1",
114
- "@tsparticles/updater-roll": "^3.0.1",
115
- "@tsparticles/updater-rotate": "^3.0.1",
116
- "@tsparticles/updater-tilt": "^3.0.1",
117
- "@tsparticles/updater-wobble": "^3.0.1"
102
+ "@tsparticles/basic": "^3.0.3",
103
+ "@tsparticles/engine": "^3.0.3",
104
+ "@tsparticles/plugin-emitters": "^3.0.3",
105
+ "@tsparticles/plugin-motion": "^3.0.3",
106
+ "@tsparticles/shape-cards": "^3.0.3",
107
+ "@tsparticles/shape-emoji": "^3.0.3",
108
+ "@tsparticles/shape-heart": "^3.0.3",
109
+ "@tsparticles/shape-image": "^3.0.3",
110
+ "@tsparticles/shape-polygon": "^3.0.3",
111
+ "@tsparticles/shape-square": "^3.0.3",
112
+ "@tsparticles/shape-star": "^3.0.3",
113
+ "@tsparticles/updater-life": "^3.0.3",
114
+ "@tsparticles/updater-roll": "^3.0.3",
115
+ "@tsparticles/updater-rotate": "^3.0.3",
116
+ "@tsparticles/updater-tilt": "^3.0.3",
117
+ "@tsparticles/updater-wobble": "^3.0.3"
118
118
  },
119
119
  "publishConfig": {
120
120
  "access": "public"