@tsparticles/effect-bubble 4.0.0-beta.0 → 4.0.0-beta.10

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.
@@ -1 +1 @@
1
- "use strict";(this.webpackChunk_tsparticles_effect_bubble=this.webpackChunk_tsparticles_effect_bubble||[]).push([[111],{111(e,l,t){t.d(l,{BubbleDrawer:()=>b});var a=t(303);class b{drawAfter(e){let{context:l,radius:t}=e,b=t/3;l.beginPath(),l.arc(b,-b,b,a.defaultAngle,a.doublePI,!1),l.closePath(),l.fillStyle="#fff9",l.fill()}}}}]);
1
+ "use strict";(this.webpackChunk_tsparticles_effect_bubble=this.webpackChunk_tsparticles_effect_bubble||[]).push([[956],{956(e,l,t){t.d(l,{BubbleDrawer:()=>b});var a=t(303);class b{drawAfter(e){let{context:l,radius:t}=e,b=t/3;l.beginPath(),l.arc(b,-b,b,a.defaultAngle,a.doublePI,!1),l.closePath(),l.fillStyle="#fff9",l.fill()}}}}]);
package/README.md CHANGED
@@ -8,6 +8,12 @@
8
8
 
9
9
  [tsParticles](https://github.com/tsparticles/tsparticles) additional bubble effect.
10
10
 
11
+ ## Quick checklist
12
+
13
+ 1. Install `@tsparticles/engine` (or use the CDN bundle below)
14
+ 2. Call the package loader function(s) before `tsParticles.load(...)`
15
+ 3. Apply the package options in your `tsParticles.load(...)` config
16
+
11
17
  ## How to use it
12
18
 
13
19
  ### CDN / Vanilla JS / jQuery
@@ -73,3 +79,20 @@ import { loadBubbleEffect } from "@tsparticles/effect-bubble";
73
79
  await loadBubbleEffect(tsParticles);
74
80
  })();
75
81
  ```
82
+
83
+ ## Option mapping
84
+
85
+ - Effects are usually enabled through dedicated package loaders and effect-specific options.
86
+ - Package scope: `bubble`
87
+ - Start from the usage snippet in this README, then merge with your main options object incrementally.
88
+
89
+ ## Common pitfalls
90
+
91
+ - Calling `tsParticles.load(...)` before `loadBubbleEffect(...)`
92
+ - Verify required peer packages before enabling advanced options
93
+ - Change one option group at a time to isolate regressions quickly
94
+
95
+ ## Related docs
96
+
97
+ - All packages catalog: <https://github.com/tsparticles/tsparticles>
98
+ - Main docs: <https://particles.js.org/docs/>
package/browser/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export async function loadBubbleEffect(engine) {
2
- engine.checkVersion("4.0.0-beta.0");
3
- await engine.register(e => {
4
- e.addEffect("bubble", async () => {
2
+ engine.checkVersion("4.0.0-beta.10");
3
+ await engine.pluginManager.register(e => {
4
+ e.pluginManager.addEffect("bubble", async () => {
5
5
  const { BubbleDrawer } = await import("./BubbleDrawer.js");
6
6
  return new BubbleDrawer();
7
7
  });
package/cjs/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export async function loadBubbleEffect(engine) {
2
- engine.checkVersion("4.0.0-beta.0");
3
- await engine.register(e => {
4
- e.addEffect("bubble", async () => {
2
+ engine.checkVersion("4.0.0-beta.10");
3
+ await engine.pluginManager.register(e => {
4
+ e.pluginManager.addEffect("bubble", async () => {
5
5
  const { BubbleDrawer } = await import("./BubbleDrawer.js");
6
6
  return new BubbleDrawer();
7
7
  });
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v4.0.0-beta.0
7
+ * v4.0.0-beta.10
8
8
  */
9
9
  "use strict";
10
10
  /*
package/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export async function loadBubbleEffect(engine) {
2
- engine.checkVersion("4.0.0-beta.0");
3
- await engine.register(e => {
4
- e.addEffect("bubble", async () => {
2
+ engine.checkVersion("4.0.0-beta.10");
3
+ await engine.pluginManager.register(e => {
4
+ e.pluginManager.addEffect("bubble", async () => {
5
5
  const { BubbleDrawer } = await import("./BubbleDrawer.js");
6
6
  return new BubbleDrawer();
7
7
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/effect-bubble",
3
- "version": "4.0.0-beta.0",
3
+ "version": "4.0.0-beta.10",
4
4
  "description": "tsParticles bubble effect",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
@@ -94,13 +94,12 @@
94
94
  "browser": "./browser/index.js",
95
95
  "import": "./esm/index.js",
96
96
  "require": "./cjs/index.js",
97
- "umd": "./umd/index.js",
98
- "default": "./cjs/index.js"
97
+ "default": "./esm/index.js"
99
98
  },
100
99
  "./package.json": "./package.json"
101
100
  },
102
- "dependencies": {
103
- "@tsparticles/engine": "4.0.0-beta.0"
101
+ "peerDependencies": {
102
+ "@tsparticles/engine": "4.0.0-beta.10"
104
103
  },
105
104
  "publishConfig": {
106
105
  "access": "public"