@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.
- package/{111.min.js → 956.min.js} +1 -1
- package/README.md +23 -0
- package/browser/index.js +3 -3
- package/cjs/index.js +3 -3
- package/dist_browser_BubbleDrawer_js.js +1 -1
- package/esm/index.js +3 -3
- package/package.json +4 -5
- package/report.html +84 -29
- package/tsparticles.effect.bubble.js +2 -2
- package/tsparticles.effect.bubble.min.js +2 -2
- package/umd/BubbleDrawer.js +0 -26
- package/umd/index.js +0 -56
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_effect_bubble=this.webpackChunk_tsparticles_effect_bubble||[]).push([[
|
|
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.
|
|
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.
|
|
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/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export async function loadBubbleEffect(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-beta.
|
|
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.
|
|
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
|
-
"
|
|
98
|
-
"default": "./cjs/index.js"
|
|
97
|
+
"default": "./esm/index.js"
|
|
99
98
|
},
|
|
100
99
|
"./package.json": "./package.json"
|
|
101
100
|
},
|
|
102
|
-
"
|
|
103
|
-
"@tsparticles/engine": "4.0.0-beta.
|
|
101
|
+
"peerDependencies": {
|
|
102
|
+
"@tsparticles/engine": "4.0.0-beta.10"
|
|
104
103
|
},
|
|
105
104
|
"publishConfig": {
|
|
106
105
|
"access": "public"
|