@tsparticles/preset-sea-anemone 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
@@ -26,15 +26,16 @@ Once installed you need one more script to be included in your page (or you can
26
26
  from [jsDelivr](https://www.jsdelivr.com/package/npm/@tsparticles/preset-sea-anemone):
27
27
 
28
28
  ```html
29
- <script src="https://cdn.jsdelivr.net/npm/tsparticles-engine@2/tsparticles.engine.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-path-curves@2/tsparticles.path.curves.min.js"></script>
32
- <script src="https://cdn.jsdelivr.net/npm/tsparticles-plugin-emitters@2/tsparticles.plugin.emitters.min.js"></script>
33
- <script src="https://cdn.jsdelivr.net/npm/tsparticles-shape-circle@2/tsparticles.shape.circle.min.js"></script>
34
- <script src="https://cdn.jsdelivr.net/npm/tsparticles-updater-color@2/tsparticles.updater.color.min.js"></script>
35
- <script src="https://cdn.jsdelivr.net/npm/tsparticles-updater-opacity@2/tsparticles.updater.opacity.min.js"></script>
36
- <script src="https://cdn.jsdelivr.net/npm/tsparticles-updater-out-modes@2/tsparticles.updater.out-modes.min.js"></script>
37
- <script src="https://cdn.jsdelivr.net/npm/tsparticles-updater-size@2/tsparticles.updater.size.min.js"></script>
29
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/engine@2/tsparticles.engine.min.js"></script>
30
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/basic@2/tsparticles.basic.min.js"></script>
31
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/move-base@2/tsparticles.move.base.min.js"></script>
32
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/path-curves@2/tsparticles.path.curves.min.js"></script>
33
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/plugin-emitters@2/tsparticles.plugin.emitters.min.js"></script>
34
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/shape-circle@2/tsparticles.shape.circle.min.js"></script>
35
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/updater-color@2/tsparticles.updater.color.min.js"></script>
36
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/updater-opacity@2/tsparticles.updater.opacity.min.js"></script>
37
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/updater-out-modes@2/tsparticles.updater.out-modes.min.js"></script>
38
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/updater-size@2/tsparticles.updater.size.min.js"></script>
38
39
  <script src="https://cdn.jsdelivr.net/npm/@tsparticles/preset-sea-anemone@2/tsparticles.preset.seaAnemone.min.js"></script>
39
40
  ```
40
41
 
@@ -88,7 +89,7 @@ This sample uses the class component syntax, but you can use hooks as well (if t
88
89
 
89
90
  ```typescript jsx
90
91
  import Particles from "react-particles";
91
- import type { Engine } from "tsparticles-engine";
92
+ import type { Engine } from "@tsparticles/engine";
92
93
  import { loadSeaAnemonePreset } from "@tsparticles/preset-sea-anemone";
93
94
 
94
95
  export class ParticlesContainer extends React.PureComponent<IProps> {
@@ -129,7 +130,7 @@ async function particlesInit(engine: Engine): Promise<void> {
129
130
  ### Angular
130
131
 
131
132
  ```html
132
- <angular-particles [id]="id" [options]="particlesOptions" [particlesInit]="particlesInit"></angular-particles>
133
+ <ng-particles [id]="id" [options]="particlesOptions" [particlesInit]="particlesInit"></ng-particles>
133
134
  ```
134
135
 
135
136
  ```typescript
@@ -168,44 +169,21 @@ let particlesInit = async (engine) => {
168
169
  ```mermaid
169
170
  flowchart TD
170
171
 
171
- subgraph m [Movers]
172
- mb[Base]
173
- end
174
-
175
- e[tsParticles Engine] --> m
176
-
177
172
  subgraph pa [Paths]
178
173
  pac[Curves]
179
174
  end
180
175
 
181
- e --> pa
176
+ bb[tsParticles Basic] --> pa
182
177
 
183
178
  subgraph pl [Plugins]
184
179
  ple[Emitters]
185
180
  end
186
181
 
187
- e --> pl
188
-
189
- subgraph s [Shapes]
190
- sc[Circle]
191
- end
192
-
193
- e --> s
194
-
195
- subgraph u [Updaters]
196
- uc[Color]
197
- uop[Opacity]
198
- uou[Out Modes]
199
- usi[Size]
200
- end
201
-
202
- e --> u
182
+ bb --> pl
203
183
 
204
184
  subgraph pr [Presets]
205
185
  prsa[Sea Anemone]
206
186
  end
207
187
 
208
- e --> pr
209
-
210
- mb & pac & ple & sc & uc & uop & uou & usi --> prsa
188
+ bb & pac & ple --> prsa
211
189
  ```
package/browser/bundle.js CHANGED
@@ -1,6 +1,4 @@
1
1
  import { loadSeaAnemonePreset } from ".";
2
2
  import { tsParticles } from "@tsparticles/engine";
3
- (async () => {
4
- await loadSeaAnemonePreset(tsParticles);
5
- })();
3
+ loadSeaAnemonePreset(tsParticles);
6
4
  export { loadSeaAnemonePreset, tsParticles };
package/browser/index.js CHANGED
@@ -1,20 +1,10 @@
1
1
  import { options, presetName } from "./options";
2
- import { loadBaseMover } from "@tsparticles/move-base";
3
- import { loadCircleShape } from "@tsparticles/shape-circle";
4
- import { loadColorUpdater } from "@tsparticles/updater-color";
2
+ import { loadBasic } from "@tsparticles/basic";
5
3
  import { loadCurvesPath } from "@tsparticles/path-curves";
6
4
  import { loadEmittersPlugin } from "@tsparticles/plugin-emitters";
7
- import { loadOpacityUpdater } from "@tsparticles/updater-opacity";
8
- import { loadOutModesUpdater } from "@tsparticles/updater-out-modes";
9
- import { loadSizeUpdater } from "@tsparticles/updater-size";
10
- export async function loadSeaAnemonePreset(engine) {
11
- await loadBaseMover(engine);
12
- await loadCircleShape(engine);
13
- await loadColorUpdater(engine);
14
- await loadOpacityUpdater(engine);
15
- await loadOutModesUpdater(engine);
16
- await loadSizeUpdater(engine);
17
- await loadEmittersPlugin(engine);
18
- await loadCurvesPath(engine);
19
- await engine.addPreset(presetName, options);
5
+ export async function loadSeaAnemonePreset(engine, refresh = true) {
6
+ await loadBasic(engine, false);
7
+ await loadEmittersPlugin(engine, false);
8
+ await loadCurvesPath(engine, false);
9
+ await engine.addPreset(presetName, options, refresh);
20
10
  }
@@ -24,14 +24,16 @@ export const options = {
24
24
  speed: 2,
25
25
  straight: false,
26
26
  trail: {
27
- fillColor: "#000",
27
+ fill: {
28
+ color: "#000",
29
+ },
28
30
  length: 30,
29
31
  enable: true,
30
32
  },
31
33
  },
32
34
  number: {
33
35
  value: 0,
34
- limit: 300,
36
+ limit: { value: 300 },
35
37
  },
36
38
  opacity: {
37
39
  value: 1,
@@ -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.loadSeaAnemonePreset = void 0;
13
4
  const _1 = require(".");
14
5
  Object.defineProperty(exports, "loadSeaAnemonePreset", { enumerable: true, get: function () { return _1.loadSeaAnemonePreset; } });
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.loadSeaAnemonePreset)(engine_1.tsParticles);
19
- }))();
8
+ (0, _1.loadSeaAnemonePreset)(engine_1.tsParticles);
package/cjs/index.js CHANGED
@@ -1,35 +1,14 @@
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.loadSeaAnemonePreset = void 0;
13
4
  const options_1 = require("./options");
14
- const move_base_1 = require("@tsparticles/move-base");
15
- const shape_circle_1 = require("@tsparticles/shape-circle");
16
- const updater_color_1 = require("@tsparticles/updater-color");
5
+ const basic_1 = require("@tsparticles/basic");
17
6
  const path_curves_1 = require("@tsparticles/path-curves");
18
7
  const plugin_emitters_1 = require("@tsparticles/plugin-emitters");
19
- const updater_opacity_1 = require("@tsparticles/updater-opacity");
20
- const updater_out_modes_1 = require("@tsparticles/updater-out-modes");
21
- const updater_size_1 = require("@tsparticles/updater-size");
22
- function loadSeaAnemonePreset(engine) {
23
- return __awaiter(this, void 0, void 0, function* () {
24
- yield (0, move_base_1.loadBaseMover)(engine);
25
- yield (0, shape_circle_1.loadCircleShape)(engine);
26
- yield (0, updater_color_1.loadColorUpdater)(engine);
27
- yield (0, updater_opacity_1.loadOpacityUpdater)(engine);
28
- yield (0, updater_out_modes_1.loadOutModesUpdater)(engine);
29
- yield (0, updater_size_1.loadSizeUpdater)(engine);
30
- yield (0, plugin_emitters_1.loadEmittersPlugin)(engine);
31
- yield (0, path_curves_1.loadCurvesPath)(engine);
32
- yield engine.addPreset(options_1.presetName, options_1.options);
33
- });
8
+ async function loadSeaAnemonePreset(engine, refresh = true) {
9
+ await (0, basic_1.loadBasic)(engine, false);
10
+ await (0, plugin_emitters_1.loadEmittersPlugin)(engine, false);
11
+ await (0, path_curves_1.loadCurvesPath)(engine, false);
12
+ await engine.addPreset(options_1.presetName, options_1.options, refresh);
34
13
  }
35
14
  exports.loadSeaAnemonePreset = loadSeaAnemonePreset;
package/cjs/options.js CHANGED
@@ -27,14 +27,16 @@ exports.options = {
27
27
  speed: 2,
28
28
  straight: false,
29
29
  trail: {
30
- fillColor: "#000",
30
+ fill: {
31
+ color: "#000",
32
+ },
31
33
  length: 30,
32
34
  enable: true,
33
35
  },
34
36
  },
35
37
  number: {
36
38
  value: 0,
37
- limit: 300,
39
+ limit: { value: 300 },
38
40
  },
39
41
  opacity: {
40
42
  value: 1,
@@ -0,0 +1 @@
1
+ { "type": "commonjs" }
package/esm/bundle.js CHANGED
@@ -1,6 +1,4 @@
1
1
  import { loadSeaAnemonePreset } from ".";
2
2
  import { tsParticles } from "@tsparticles/engine";
3
- (async () => {
4
- await loadSeaAnemonePreset(tsParticles);
5
- })();
3
+ loadSeaAnemonePreset(tsParticles);
6
4
  export { loadSeaAnemonePreset, tsParticles };
package/esm/index.js CHANGED
@@ -1,20 +1,10 @@
1
1
  import { options, presetName } from "./options";
2
- import { loadBaseMover } from "@tsparticles/move-base";
3
- import { loadCircleShape } from "@tsparticles/shape-circle";
4
- import { loadColorUpdater } from "@tsparticles/updater-color";
2
+ import { loadBasic } from "@tsparticles/basic";
5
3
  import { loadCurvesPath } from "@tsparticles/path-curves";
6
4
  import { loadEmittersPlugin } from "@tsparticles/plugin-emitters";
7
- import { loadOpacityUpdater } from "@tsparticles/updater-opacity";
8
- import { loadOutModesUpdater } from "@tsparticles/updater-out-modes";
9
- import { loadSizeUpdater } from "@tsparticles/updater-size";
10
- export async function loadSeaAnemonePreset(engine) {
11
- await loadBaseMover(engine);
12
- await loadCircleShape(engine);
13
- await loadColorUpdater(engine);
14
- await loadOpacityUpdater(engine);
15
- await loadOutModesUpdater(engine);
16
- await loadSizeUpdater(engine);
17
- await loadEmittersPlugin(engine);
18
- await loadCurvesPath(engine);
19
- await engine.addPreset(presetName, options);
5
+ export async function loadSeaAnemonePreset(engine, refresh = true) {
6
+ await loadBasic(engine, false);
7
+ await loadEmittersPlugin(engine, false);
8
+ await loadCurvesPath(engine, false);
9
+ await engine.addPreset(presetName, options, refresh);
20
10
  }
package/esm/options.js CHANGED
@@ -24,14 +24,16 @@ export const options = {
24
24
  speed: 2,
25
25
  straight: false,
26
26
  trail: {
27
- fillColor: "#000",
27
+ fill: {
28
+ color: "#000",
29
+ },
28
30
  length: 30,
29
31
  enable: true,
30
32
  },
31
33
  },
32
34
  number: {
33
35
  value: 0,
34
- limit: 300,
36
+ limit: { value: 300 },
35
37
  },
36
38
  opacity: {
37
39
  value: 1,
@@ -0,0 +1 @@
1
+ { "type": "module" }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@tsparticles/preset-sea-anemone",
3
- "version": "3.0.0-alpha.1",
3
+ "version": "3.0.0-beta.2",
4
4
  "description": "tsParticles sea anemone 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/seaAnemone"
10
10
  },
11
11
  "keywords": [
@@ -65,13 +65,17 @@
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,18 +86,10 @@
82
86
  "unpkg": "tsparticles.preset.seaAnemone.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/path-curves": "^3.0.0-alpha.1",
92
- "@tsparticles/plugin-emitters": "^3.0.0-alpha.1",
93
- "@tsparticles/shape-circle": "^3.0.0-alpha.1",
94
- "@tsparticles/updater-color": "^3.0.0-alpha.1",
95
- "@tsparticles/updater-opacity": "^3.0.0-alpha.1",
96
- "@tsparticles/updater-out-modes": "^3.0.0-alpha.1",
97
- "@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/path-curves": "^3.0.0-beta.4",
93
+ "@tsparticles/plugin-emitters": "^3.0.0-beta.4"
98
94
  }
99
- }
95
+ }