@tsparticles/preset-big-circles 3.0.0-alpha.1 → 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 CHANGED
@@ -25,15 +25,16 @@ Once installed you need one more script to be included in your page (or you can
25
25
  from [jsDelivr](https://www.jsdelivr.com/package/npm/@tsparticles/preset-big-circles):
26
26
 
27
27
  ```html
28
- <script src="https://cdn.jsdelivr.net/npm/@tsparticles/engine@3/tsparticles.engine.min.js"></script>
29
- <script src="https://cdn.jsdelivr.net/npm/@tsparticles/move-base@3/tsparticles.move.base.min.js"></script>
30
- <script src="https://cdn.jsdelivr.net/npm/@tsparticles/plugin-emitters@3/tsparticles.plugin.emitters.min.js"></script>
31
- <script src="https://cdn.jsdelivr.net/npm/@tsparticles/shape-circle@3/tsparticles.shape.circle.min.js"></script>
32
- <script src="https://cdn.jsdelivr.net/npm/@tsparticles/updater-color@3/tsparticles.updater.color.min.js"></script>
33
- <script src="https://cdn.jsdelivr.net/npm/@tsparticles/updater-opacity@3/tsparticles.updater.opacity.min.js"></script>
34
- <script src="https://cdn.jsdelivr.net/npm/@tsparticles/updater-out-modes@3/tsparticles.updater.out-modes.min.js"></script>
35
- <script src="https://cdn.jsdelivr.net/npm/@tsparticles/updater-size@3/tsparticles.updater.size.min.js"></script>
36
- <script src="https://cdn.jsdelivr.net/npm/@tsparticles/preset-big-circles@3/tsparticles.preset.bigCircles.min.js"></script>
28
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/engine@2/tsparticles.engine.min.js"></script>
29
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/basic@2/tsparticles.basic.min.js"></script>
30
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/move-base@2/tsparticles.move.base.min.js"></script>
31
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/plugin-emitters@2/tsparticles.plugin.emitters.min.js"></script>
32
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/shape-circle@2/tsparticles.shape.circle.min.js"></script>
33
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/updater-color@2/tsparticles.updater.color.min.js"></script>
34
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/updater-opacity@2/tsparticles.updater.opacity.min.js"></script>
35
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/updater-out-modes@2/tsparticles.updater.out-modes.min.js"></script>
36
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/updater-size@2/tsparticles.updater.size.min.js"></script>
37
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/preset-big-circles@2/tsparticles.preset.bigCircles.min.js"></script>
37
38
  ```
38
39
 
39
40
  #### Bundle
@@ -125,7 +126,7 @@ async function particlesInit(engine: Engine): Promise<void> {
125
126
  ### Angular
126
127
 
127
128
  ```html
128
- <angular-particles [id]="id" [options]="particlesOptions" [particlesInit]="particlesInit"></angular-particles>
129
+ <ng-particles [id]="id" [options]="particlesOptions" [particlesInit]="particlesInit"></ng-particles>
129
130
  ```
130
131
 
131
132
  ```ts
@@ -164,39 +165,15 @@ let particlesInit = async (engine) => {
164
165
  ```mermaid
165
166
  flowchart TD
166
167
 
167
- subgraph m [Movers]
168
- mb[Base]
169
- end
170
-
171
- e[tsParticles Engine] --> m
172
-
173
168
  subgraph pl [Plugins]
174
169
  ple[Emitters]
175
170
  end
176
171
 
177
- e --> pl
178
-
179
- subgraph s [Shapes]
180
- sc[Circle]
181
- end
182
-
183
- e --> s
184
-
185
- subgraph u [Updaters]
186
- uc[Color]
187
- uop[Opacity]
188
- uou[Out Modes]
189
- usi[Size]
190
-
191
- end
192
-
193
- e --> u
172
+ bb[tsParticles Basic] --> pl
194
173
 
195
174
  subgraph pr [Presets]
196
175
  prbi[Big Circles]
197
176
  end
198
177
 
199
- e --> pr
200
-
201
- mb & ple & sc & uc & uop & uou & usi --> prbi
178
+ bb & ple --> prbi
202
179
  ```
package/browser/bundle.js CHANGED
@@ -1,6 +1,4 @@
1
1
  import { loadBigCirclesPreset } from ".";
2
2
  import { tsParticles } from "@tsparticles/engine";
3
- (async () => {
4
- await loadBigCirclesPreset(tsParticles);
5
- })();
3
+ loadBigCirclesPreset(tsParticles);
6
4
  export { loadBigCirclesPreset, tsParticles };
package/browser/index.js CHANGED
@@ -1,19 +1,11 @@
1
- import { loadBaseMover } from "@tsparticles/move-base";
2
- import { loadCircleShape } from "@tsparticles/shape-circle";
3
- import { loadColorUpdater } from "@tsparticles/updater-color";
1
+ import { loadBasic } from "@tsparticles/basic";
4
2
  import { loadEmittersPlugin } from "@tsparticles/plugin-emitters";
5
- import { loadOpacityUpdater } from "@tsparticles/updater-opacity";
6
- import { loadOutModesUpdater } from "@tsparticles/updater-out-modes";
7
- import { loadSizeUpdater } from "@tsparticles/updater-size";
3
+ import { loadEmittersShapeSquare } from "@tsparticles/plugin-emitters-shape-square";
8
4
  import { options } from "./options";
9
- export async function loadBigCirclesPreset(engine) {
10
- await loadBaseMover(engine);
11
- await loadCircleShape(engine);
12
- await loadColorUpdater(engine);
13
- await loadSizeUpdater(engine);
14
- await loadOpacityUpdater(engine);
15
- await loadOutModesUpdater(engine);
16
- await loadEmittersPlugin(engine);
17
- await engine.addPreset("bigCircles", options);
18
- await engine.addPreset("big-circles", options);
5
+ export async function loadBigCirclesPreset(engine, refresh = true) {
6
+ await loadBasic(engine, false);
7
+ await loadEmittersShapeSquare(engine, false);
8
+ await loadEmittersPlugin(engine, false);
9
+ await engine.addPreset("bigCircles", options, false);
10
+ await engine.addPreset("big-circles", options, refresh);
19
11
  }
@@ -14,7 +14,7 @@ export const options = {
14
14
  type: "circle",
15
15
  },
16
16
  opacity: {
17
- value: 0.5,
17
+ value: { min: 0.4, max: 0.8 },
18
18
  },
19
19
  size: {
20
20
  value: { min: 200, max: 400 },
@@ -0,0 +1 @@
1
+ { "type": "module" }
package/cjs/bundle.js CHANGED
@@ -1,19 +1,8 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.tsParticles = exports.loadBigCirclesPreset = void 0;
13
4
  const _1 = require(".");
14
5
  Object.defineProperty(exports, "loadBigCirclesPreset", { enumerable: true, get: function () { return _1.loadBigCirclesPreset; } });
15
6
  const engine_1 = require("@tsparticles/engine");
16
7
  Object.defineProperty(exports, "tsParticles", { enumerable: true, get: function () { return engine_1.tsParticles; } });
17
- (() => __awaiter(void 0, void 0, void 0, function* () {
18
- yield (0, _1.loadBigCirclesPreset)(engine_1.tsParticles);
19
- }))();
8
+ (0, _1.loadBigCirclesPreset)(engine_1.tsParticles);
package/cjs/index.js CHANGED
@@ -1,34 +1,15 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.loadBigCirclesPreset = void 0;
13
- const move_base_1 = require("@tsparticles/move-base");
14
- const shape_circle_1 = require("@tsparticles/shape-circle");
15
- const updater_color_1 = require("@tsparticles/updater-color");
4
+ const basic_1 = require("@tsparticles/basic");
16
5
  const plugin_emitters_1 = require("@tsparticles/plugin-emitters");
17
- const updater_opacity_1 = require("@tsparticles/updater-opacity");
18
- const updater_out_modes_1 = require("@tsparticles/updater-out-modes");
19
- const updater_size_1 = require("@tsparticles/updater-size");
6
+ const plugin_emitters_shape_square_1 = require("@tsparticles/plugin-emitters-shape-square");
20
7
  const options_1 = require("./options");
21
- function loadBigCirclesPreset(engine) {
22
- return __awaiter(this, void 0, void 0, function* () {
23
- yield (0, move_base_1.loadBaseMover)(engine);
24
- yield (0, shape_circle_1.loadCircleShape)(engine);
25
- yield (0, updater_color_1.loadColorUpdater)(engine);
26
- yield (0, updater_size_1.loadSizeUpdater)(engine);
27
- yield (0, updater_opacity_1.loadOpacityUpdater)(engine);
28
- yield (0, updater_out_modes_1.loadOutModesUpdater)(engine);
29
- yield (0, plugin_emitters_1.loadEmittersPlugin)(engine);
30
- yield engine.addPreset("bigCircles", options_1.options);
31
- yield engine.addPreset("big-circles", options_1.options);
32
- });
8
+ async function loadBigCirclesPreset(engine, refresh = true) {
9
+ await (0, basic_1.loadBasic)(engine, false);
10
+ await (0, plugin_emitters_shape_square_1.loadEmittersShapeSquare)(engine, false);
11
+ await (0, plugin_emitters_1.loadEmittersPlugin)(engine, false);
12
+ await engine.addPreset("bigCircles", options_1.options, false);
13
+ await engine.addPreset("big-circles", options_1.options, refresh);
33
14
  }
34
15
  exports.loadBigCirclesPreset = loadBigCirclesPreset;
package/cjs/options.js CHANGED
@@ -17,7 +17,7 @@ exports.options = {
17
17
  type: "circle",
18
18
  },
19
19
  opacity: {
20
- value: 0.5,
20
+ value: { min: 0.4, max: 0.8 },
21
21
  },
22
22
  size: {
23
23
  value: { min: 200, max: 400 },
@@ -0,0 +1 @@
1
+ { "type": "commonjs" }
package/esm/bundle.js CHANGED
@@ -1,6 +1,4 @@
1
1
  import { loadBigCirclesPreset } from ".";
2
2
  import { tsParticles } from "@tsparticles/engine";
3
- (async () => {
4
- await loadBigCirclesPreset(tsParticles);
5
- })();
3
+ loadBigCirclesPreset(tsParticles);
6
4
  export { loadBigCirclesPreset, tsParticles };
package/esm/index.js CHANGED
@@ -1,19 +1,11 @@
1
- import { loadBaseMover } from "@tsparticles/move-base";
2
- import { loadCircleShape } from "@tsparticles/shape-circle";
3
- import { loadColorUpdater } from "@tsparticles/updater-color";
1
+ import { loadBasic } from "@tsparticles/basic";
4
2
  import { loadEmittersPlugin } from "@tsparticles/plugin-emitters";
5
- import { loadOpacityUpdater } from "@tsparticles/updater-opacity";
6
- import { loadOutModesUpdater } from "@tsparticles/updater-out-modes";
7
- import { loadSizeUpdater } from "@tsparticles/updater-size";
3
+ import { loadEmittersShapeSquare } from "@tsparticles/plugin-emitters-shape-square";
8
4
  import { options } from "./options";
9
- export async function loadBigCirclesPreset(engine) {
10
- await loadBaseMover(engine);
11
- await loadCircleShape(engine);
12
- await loadColorUpdater(engine);
13
- await loadSizeUpdater(engine);
14
- await loadOpacityUpdater(engine);
15
- await loadOutModesUpdater(engine);
16
- await loadEmittersPlugin(engine);
17
- await engine.addPreset("bigCircles", options);
18
- await engine.addPreset("big-circles", options);
5
+ export async function loadBigCirclesPreset(engine, refresh = true) {
6
+ await loadBasic(engine, false);
7
+ await loadEmittersShapeSquare(engine, false);
8
+ await loadEmittersPlugin(engine, false);
9
+ await engine.addPreset("bigCircles", options, false);
10
+ await engine.addPreset("big-circles", options, refresh);
19
11
  }
package/esm/options.js CHANGED
@@ -14,7 +14,7 @@ export const options = {
14
14
  type: "circle",
15
15
  },
16
16
  opacity: {
17
- value: 0.5,
17
+ value: { min: 0.4, max: 0.8 },
18
18
  },
19
19
  size: {
20
20
  value: { min: 200, max: 400 },
@@ -0,0 +1 @@
1
+ { "type": "module" }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@tsparticles/preset-big-circles",
3
- "version": "3.0.0-alpha.1",
3
+ "version": "3.0.0-beta.2",
4
4
  "description": "tsParticles big circles preset",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "git+https://github.com/matteobruni/tsparticles.git",
8
+ "url": "git+https://github.com/tsparticles/presets.git",
9
9
  "directory": "presets/bigCircles"
10
10
  },
11
11
  "keywords": [
@@ -60,18 +60,22 @@
60
60
  "confettijs",
61
61
  "fireworksjs",
62
62
  "canvas-confetti",
63
- "tsparticles-preset"
63
+ "@tsparticles/preset"
64
64
  ],
65
65
  "author": "Matteo Bruni <matteo.bruni@me.com>",
66
66
  "license": "MIT",
67
67
  "bugs": {
68
- "url": "https://github.com/matteobruni/tsparticles/issues"
68
+ "url": "https://github.com/tsparticles/presets/issues"
69
69
  },
70
70
  "funding": [
71
71
  {
72
72
  "type": "github",
73
73
  "url": "https://github.com/sponsors/matteobruni"
74
74
  },
75
+ {
76
+ "type": "github",
77
+ "url": "https://github.com/sponsors/tsparticles"
78
+ },
75
79
  {
76
80
  "type": "buymeacoffee",
77
81
  "url": "https://www.buymeacoffee.com/matteobruni"
@@ -82,17 +86,10 @@
82
86
  "unpkg": "tsparticles.preset.bigCircles.min.js",
83
87
  "module": "esm/index.js",
84
88
  "types": "types/index.d.ts",
85
- "publishConfig": {
86
- "access": "public"
87
- },
88
89
  "dependencies": {
89
- "@tsparticles/engine": "^3.0.0-alpha.1",
90
- "@tsparticles/move-base": "^3.0.0-alpha.1",
91
- "@tsparticles/plugin-emitters": "^3.0.0-alpha.1",
92
- "@tsparticles/shape-circle": "^3.0.0-alpha.1",
93
- "@tsparticles/updater-color": "^3.0.0-alpha.1",
94
- "@tsparticles/updater-opacity": "^3.0.0-alpha.1",
95
- "@tsparticles/updater-out-modes": "^3.0.0-alpha.1",
96
- "@tsparticles/updater-size": "^3.0.0-alpha.1"
90
+ "@tsparticles/basic": "^3.0.0-beta.4",
91
+ "@tsparticles/engine": "^3.0.0-beta.4",
92
+ "@tsparticles/plugin-emitters": "^3.0.0-beta.4",
93
+ "@tsparticles/plugin-emitters-shape-square": "^3.0.0-beta.4"
97
94
  }
98
- }
95
+ }