@tsparticles/all 3.0.0-beta.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Matteo Bruni
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,196 @@
1
+ [![banner](https://particles.js.org/images/banner2.png)](https://particles.js.org)
2
+
3
+ # tsParticles All Bundle
4
+
5
+ [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/@tsparticles/all/badge)](https://www.jsdelivr.com/package/npm/@tsparticles/all) [![npmjs](https://badge.fury.io/js/@tsparticles/all.svg)](https://www.npmjs.com/package/@tsparticles/all) [![npmjs](https://img.shields.io/npm/dt/@tsparticles/all)](https://www.npmjs.com/package/@tsparticles/all) [![GitHub Sponsors](https://img.shields.io/github/sponsors/matteobruni)](https://github.com/sponsors/matteobruni)
6
+
7
+ [tsParticles](https://github.com/matteobruni/tsparticles) all bundle loads all the features to a `@tsparticles/engine` instance.
8
+
9
+ **Included Packages**
10
+
11
+ - [tsparticles (and all its dependencies)](https://github.com/matteobruni/tsparticles/tree/main/bundles/full)
12
+ - [@tsparticles/interaction-light](https://github.com/matteobruni/tsparticles/tree/main/interactions/light)
13
+ - [@tsparticles/interaction-particles-repulse](https://github.com/matteobruni/tsparticles/tree/main/interactions/particles/repulse)
14
+ - [@tsparticles/path-curves](https://github.com/matteobruni/tsparticles/tree/main/paths/curves)
15
+ - [@tsparticles/path-perlin-noise](https://github.com/matteobruni/tsparticles/tree/main/paths/perlinNoise)
16
+ - [@tsparticles/path-polygon](https://github.com/matteobruni/tsparticles/tree/main/paths/polygon)
17
+ - [@tsparticles/path-simplex-noise](https://github.com/matteobruni/tsparticles/tree/main/paths/simplexNoise)
18
+ - [@tsparticles/path-svg](https://github.com/matteobruni/tsparticles/tree/main/paths/svg)
19
+ - [@tsparticles/plugin-canvas-mask](https://github.com/matteobruni/tsparticles/tree/main/plugins/canvasMask)
20
+ - [@tsparticles/plugin-easing-back](https://github.com/matteobruni/tsparticles/tree/main/plugins/easings/back)
21
+ - [@tsparticles/plugin-easing-circ](https://github.com/matteobruni/tsparticles/tree/main/plugins/easings/circ)
22
+ - [@tsparticles/plugin-easing-cubic](https://github.com/matteobruni/tsparticles/tree/main/plugins/easings/cubic)
23
+ - [@tsparticles/plugin-easing-expo](https://github.com/matteobruni/tsparticles/tree/main/plugins/easings/expo)
24
+ - [@tsparticles/plugin-easing-quart](https://github.com/matteobruni/tsparticles/tree/main/plugins/easings/quart)
25
+ - [@tsparticles/plugin-easing-quint](https://github.com/matteobruni/tsparticles/tree/main/plugins/easings/quint)
26
+ - [@tsparticles/plugin-easing-sine](https://github.com/matteobruni/tsparticles/tree/main/plugins/easings/sine)
27
+ - [@tsparticles/plugin-export-image](https://github.com/matteobruni/tsparticles/tree/main/plugins/exports/image)
28
+ - [@tsparticles/plugin-export-json](https://github.com/matteobruni/tsparticles/tree/main/plugins/exports/json)
29
+ - [@tsparticles/plugin-export-video](https://github.com/matteobruni/tsparticles/tree/main/plugins/exports/video)
30
+ - [@tsparticles/plugin-hsv-color](https://github.com/matteobruni/tsparticles/tree/main/plugins/hsvColor)
31
+ - [@tsparticles/plugin-infection](https://github.com/matteobruni/tsparticles/tree/main/plugins/infection)
32
+ - [@tsparticles/plugin-motion](https://github.com/matteobruni/tsparticles/tree/main/plugins/motion)
33
+ - [@tsparticles/plugin-polygon-mask](https://github.com/matteobruni/tsparticles/tree/main/plugins/polygonMask)
34
+ - [@tsparticles/plugin-sounds](https://github.com/matteobruni/tsparticles/tree/main/plugins/sounds)
35
+ - [@tsparticles/shape-arrow](https://github.com/matteobruni/tsparticles/tree/main/shapes/arrow)
36
+ - [@tsparticles/shape-bubble](https://github.com/matteobruni/tsparticles/tree/main/shapes/bubble)
37
+ - [@tsparticles/shape-cards](https://github.com/matteobruni/tsparticles/tree/main/shapes/cards)
38
+ - [@tsparticles/shape-cog](https://github.com/matteobruni/tsparticles/tree/main/shapes/cog)
39
+ - [@tsparticles/shape-heart](https://github.com/matteobruni/tsparticles/tree/main/shapes/heart)
40
+ - [@tsparticles/shape-multiline-text](https://github.com/matteobruni/tsparticles/tree/main/shapes/multiline-text)
41
+ - [@tsparticles/shape-path](https://github.com/matteobruni/tsparticles/tree/main/shapes/path)
42
+ - [@tsparticles/shape-rounded-polygon](https://github.com/matteobruni/tsparticles/tree/main/shapes/polygon)
43
+ - [@tsparticles/shape-rounded-rect](https://github.com/matteobruni/tsparticles/tree/main/shapes/rect)
44
+ - [@tsparticles/shape-spiral](https://github.com/matteobruni/tsparticles/tree/main/shapes/spiral)
45
+ - [@tsparticles/updater-gradient](https://github.com/matteobruni/tsparticles/tree/main/updaters/gradient)
46
+ - [@tsparticles/updater-orbit](https://github.com/matteobruni/tsparticles/tree/main/updaters/orbit)
47
+
48
+ ## How to use it
49
+
50
+ ### CDN / Vanilla JS / jQuery
51
+
52
+ The CDN/Vanilla version JS has two different files:
53
+
54
+ - One is a bundle file with all the scripts included in a single file
55
+ - One is a file including just the `loadAll` function to load the tsParticles all preset, all dependencies must be
56
+ included manually
57
+
58
+ #### Bundle
59
+
60
+ Including the `tsparticles.all.bundle.min.js` file will work exactly like `v1`, you can start using the `tsParticles`
61
+ instance in the same way.
62
+
63
+ This is the easiest usage, since it's a single file with the some of the `v1` features.
64
+
65
+ All new features will be added as external packages, this bundle is recommended for migrating from `v1` easily.
66
+
67
+ #### Not Bundle
68
+
69
+ This installation requires more work since all dependencies must be included in the page. Some lines above are all
70
+ specified in the **Included Packages** section.
71
+
72
+ ### Usage
73
+
74
+ Once the scripts are loaded you can set up `tsParticles` like this:
75
+
76
+ ```javascript
77
+ (async () => {
78
+ await loadAll(tsParticles); // not needed if using the bundle script, required for any other installation
79
+
80
+ await tsParticles.load({
81
+ id: "tsparticles",
82
+ options: {
83
+ /* options */
84
+ },
85
+ });
86
+ })();
87
+ ```
88
+
89
+ ### React.js / Preact / Inferno
90
+
91
+ _The syntax for `React.js`, `Preact` and `Inferno` is the same_.
92
+
93
+ This sample uses the class component syntax, but you can use hooks as well (if the library supports it).
94
+
95
+ _Class Components_
96
+
97
+ ```typescript jsx
98
+ import React from "react";
99
+ import Particles from "react-particles";
100
+ import type { Engine } from "@tsparticles/engine";
101
+ import { loadAll } from "@tsparticles/all";
102
+
103
+ export class ParticlesContainer extends PureComponent<unknown> {
104
+ // this customizes the component tsParticles installation
105
+ async customInit(engine: Engine) {
106
+ // this adds the bundle to tsParticles
107
+ await loadAll(engine);
108
+ }
109
+
110
+ render() {
111
+ const options = {
112
+ /* custom options */
113
+ };
114
+
115
+ return <Particles options={options} init={this.customInit} />;
116
+ }
117
+ }
118
+ ```
119
+
120
+ _Hooks / Functional Components_
121
+
122
+ ```typescript jsx
123
+ import React, { useCallback } from "react";
124
+ import Particles from "react-particles";
125
+ import type { Engine } from "@tsparticles/engine";
126
+ import { loadAll } from "@tsparticles/all";
127
+
128
+ export function ParticlesContainer(props: unknown) {
129
+ // this customizes the component tsParticles installation
130
+ const customInit = useCallback(async (engine: Engine) => {
131
+ // this adds the bundle to tsParticles
132
+ await loadAll(engine);
133
+ });
134
+
135
+ const options = {
136
+ /* custom options */
137
+ };
138
+
139
+ return <Particles options={options} init={this.customInit} />;
140
+ }
141
+ ```
142
+
143
+ ### Vue (2.x and 3.x)
144
+
145
+ _The syntax for `Vue.js 2.x` and `3.x` is the same_
146
+
147
+ ```vue
148
+ <Particles id="tsparticles" :particlesInit="particlesInit" :options="options" />
149
+ ```
150
+
151
+ ```js
152
+ const options = {
153
+ /* custom options */
154
+ };
155
+
156
+ async function particlesInit(engine: Engine) {
157
+ await loadAll(engine);
158
+ }
159
+ ```
160
+
161
+ ### Angular
162
+
163
+ ```html
164
+ <ng-particles [id]="id" [options]="options" [particlesInit]="particlesInit"></ng-particles>
165
+ ```
166
+
167
+ ```ts
168
+ const options = {
169
+ /* custom options */
170
+ };
171
+
172
+ async function particlesInit(engine: Engine): void {
173
+ await loadAll(engine);
174
+ }
175
+ ```
176
+
177
+ ### Svelte
178
+
179
+ ```sveltehtml
180
+
181
+ <Particles
182
+ id="tsparticles"
183
+ options={options}
184
+ particlesInit="{particlesInit}"
185
+ />
186
+ ```
187
+
188
+ ```js
189
+ let options = {
190
+ /* custom options */
191
+ };
192
+
193
+ let particlesInit = async (engine) => {
194
+ await loadAll(engine);
195
+ };
196
+ ```
@@ -0,0 +1,5 @@
1
+ import { loadAll } from ".";
2
+ import { tsParticles } from "@tsparticles/engine";
3
+ loadAll(tsParticles);
4
+ export { loadAll };
5
+ export * from "@tsparticles/engine";
@@ -0,0 +1,76 @@
1
+ import { loadArrowShape } from "@tsparticles/shape-arrow";
2
+ import { loadBubbleShape } from "@tsparticles/shape-bubble";
3
+ import { loadCanvasMaskPlugin } from "@tsparticles/plugin-canvas-mask";
4
+ import { loadCardsShape } from "@tsparticles/shape-cards";
5
+ import { loadCogShape } from "@tsparticles/shape-cog";
6
+ import { loadCurvesPath } from "@tsparticles/path-curves";
7
+ import { loadEasingBackPlugin } from "@tsparticles/plugin-easing-back";
8
+ import { loadEasingCircPlugin } from "@tsparticles/plugin-easing-circ";
9
+ import { loadEasingCubicPlugin } from "@tsparticles/plugin-easing-cubic";
10
+ import { loadEasingExpoPlugin } from "@tsparticles/plugin-easing-expo";
11
+ import { loadEasingQuartPlugin } from "@tsparticles/plugin-easing-quart";
12
+ import { loadEasingQuintPlugin } from "@tsparticles/plugin-easing-quint";
13
+ import { loadEasingSinePlugin } from "@tsparticles/plugin-easing-sine";
14
+ import { loadExportImagePlugin } from "@tsparticles/plugin-export-image";
15
+ import { loadExportJSONPlugin } from "@tsparticles/plugin-export-json";
16
+ import { loadExportVideoPlugin } from "@tsparticles/plugin-export-video";
17
+ import { loadFull } from "tsparticles";
18
+ import { loadGradientUpdater } from "@tsparticles/updater-gradient";
19
+ import { loadHeartShape } from "@tsparticles/shape-heart";
20
+ import { loadHsvColorPlugin } from "@tsparticles/plugin-hsv-color";
21
+ import { loadInfectionPlugin } from "@tsparticles/plugin-infection";
22
+ import { loadLightInteraction } from "@tsparticles/interaction-light";
23
+ import { loadMotionPlugin } from "@tsparticles/plugin-motion";
24
+ import { loadMultilineTextShape } from "@tsparticles/shape-multiline-text";
25
+ import { loadOrbitUpdater } from "@tsparticles/updater-orbit";
26
+ import { loadParticlesRepulseInteraction } from "@tsparticles/interaction-particles-repulse";
27
+ import { loadPathShape } from "@tsparticles/shape-path";
28
+ import { loadPerlinNoisePath } from "@tsparticles/path-perlin-noise";
29
+ import { loadPolygonMaskPlugin } from "@tsparticles/plugin-polygon-mask";
30
+ import { loadPolygonPath } from "@tsparticles/path-polygon";
31
+ import { loadRoundedPolygonShape } from "@tsparticles/shape-rounded-polygon";
32
+ import { loadRoundedRectShape } from "@tsparticles/shape-rounded-rect";
33
+ import { loadSVGPath } from "@tsparticles/path-svg";
34
+ import { loadSimplexNoisePath } from "@tsparticles/path-simplex-noise";
35
+ import { loadSoundsPlugin } from "@tsparticles/plugin-sounds";
36
+ import { loadSpiralShape } from "@tsparticles/shape-spiral";
37
+ export async function loadAll(engine, refresh = true) {
38
+ await loadFull(engine, false);
39
+ await loadHsvColorPlugin();
40
+ await loadEasingBackPlugin();
41
+ await loadEasingCircPlugin();
42
+ await loadEasingCubicPlugin();
43
+ await loadEasingExpoPlugin();
44
+ await loadEasingQuartPlugin();
45
+ await loadEasingQuintPlugin();
46
+ await loadEasingSinePlugin();
47
+ await loadHsvColorPlugin();
48
+ await loadCanvasMaskPlugin(engine, false);
49
+ await loadInfectionPlugin(engine, false);
50
+ await loadMotionPlugin(engine, false);
51
+ await loadPolygonMaskPlugin(engine, false);
52
+ await loadSoundsPlugin(engine, false);
53
+ await loadExportImagePlugin(engine, false);
54
+ await loadExportJSONPlugin(engine, false);
55
+ await loadExportVideoPlugin(engine, false);
56
+ await loadLightInteraction(engine, false);
57
+ await loadParticlesRepulseInteraction(engine, false);
58
+ await loadGradientUpdater(engine, false);
59
+ await loadOrbitUpdater(engine, false);
60
+ await loadCurvesPath(engine, false);
61
+ await loadPerlinNoisePath(engine, false);
62
+ await loadPolygonPath(engine, false);
63
+ await loadSVGPath(engine, false);
64
+ await loadSimplexNoisePath(engine, false);
65
+ await loadArrowShape(engine, false);
66
+ await loadBubbleShape(engine, false);
67
+ await loadCardsShape(engine, false);
68
+ await loadCogShape(engine, false);
69
+ await loadHeartShape(engine, false);
70
+ await loadMultilineTextShape(engine, false);
71
+ await loadPathShape(engine, false);
72
+ await loadRoundedPolygonShape(engine, false);
73
+ await loadRoundedRectShape(engine, false);
74
+ await loadSpiralShape(engine, false);
75
+ await engine.refresh(refresh);
76
+ }
package/cjs/bundle.js ADDED
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.loadAll = void 0;
18
+ const _1 = require(".");
19
+ Object.defineProperty(exports, "loadAll", { enumerable: true, get: function () { return _1.loadAll; } });
20
+ const engine_1 = require("@tsparticles/engine");
21
+ (0, _1.loadAll)(engine_1.tsParticles);
22
+ __exportStar(require("@tsparticles/engine"), exports);
package/cjs/index.js ADDED
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.loadAll = void 0;
4
+ const shape_arrow_1 = require("@tsparticles/shape-arrow");
5
+ const shape_bubble_1 = require("@tsparticles/shape-bubble");
6
+ const plugin_canvas_mask_1 = require("@tsparticles/plugin-canvas-mask");
7
+ const shape_cards_1 = require("@tsparticles/shape-cards");
8
+ const shape_cog_1 = require("@tsparticles/shape-cog");
9
+ const path_curves_1 = require("@tsparticles/path-curves");
10
+ const plugin_easing_back_1 = require("@tsparticles/plugin-easing-back");
11
+ const plugin_easing_circ_1 = require("@tsparticles/plugin-easing-circ");
12
+ const plugin_easing_cubic_1 = require("@tsparticles/plugin-easing-cubic");
13
+ const plugin_easing_expo_1 = require("@tsparticles/plugin-easing-expo");
14
+ const plugin_easing_quart_1 = require("@tsparticles/plugin-easing-quart");
15
+ const plugin_easing_quint_1 = require("@tsparticles/plugin-easing-quint");
16
+ const plugin_easing_sine_1 = require("@tsparticles/plugin-easing-sine");
17
+ const plugin_export_image_1 = require("@tsparticles/plugin-export-image");
18
+ const plugin_export_json_1 = require("@tsparticles/plugin-export-json");
19
+ const plugin_export_video_1 = require("@tsparticles/plugin-export-video");
20
+ const tsparticles_1 = require("tsparticles");
21
+ const updater_gradient_1 = require("@tsparticles/updater-gradient");
22
+ const shape_heart_1 = require("@tsparticles/shape-heart");
23
+ const plugin_hsv_color_1 = require("@tsparticles/plugin-hsv-color");
24
+ const plugin_infection_1 = require("@tsparticles/plugin-infection");
25
+ const interaction_light_1 = require("@tsparticles/interaction-light");
26
+ const plugin_motion_1 = require("@tsparticles/plugin-motion");
27
+ const shape_multiline_text_1 = require("@tsparticles/shape-multiline-text");
28
+ const updater_orbit_1 = require("@tsparticles/updater-orbit");
29
+ const interaction_particles_repulse_1 = require("@tsparticles/interaction-particles-repulse");
30
+ const shape_path_1 = require("@tsparticles/shape-path");
31
+ const path_perlin_noise_1 = require("@tsparticles/path-perlin-noise");
32
+ const plugin_polygon_mask_1 = require("@tsparticles/plugin-polygon-mask");
33
+ const path_polygon_1 = require("@tsparticles/path-polygon");
34
+ const shape_rounded_polygon_1 = require("@tsparticles/shape-rounded-polygon");
35
+ const shape_rounded_rect_1 = require("@tsparticles/shape-rounded-rect");
36
+ const path_svg_1 = require("@tsparticles/path-svg");
37
+ const path_simplex_noise_1 = require("@tsparticles/path-simplex-noise");
38
+ const plugin_sounds_1 = require("@tsparticles/plugin-sounds");
39
+ const shape_spiral_1 = require("@tsparticles/shape-spiral");
40
+ async function loadAll(engine, refresh = true) {
41
+ await (0, tsparticles_1.loadFull)(engine, false);
42
+ await (0, plugin_hsv_color_1.loadHsvColorPlugin)();
43
+ await (0, plugin_easing_back_1.loadEasingBackPlugin)();
44
+ await (0, plugin_easing_circ_1.loadEasingCircPlugin)();
45
+ await (0, plugin_easing_cubic_1.loadEasingCubicPlugin)();
46
+ await (0, plugin_easing_expo_1.loadEasingExpoPlugin)();
47
+ await (0, plugin_easing_quart_1.loadEasingQuartPlugin)();
48
+ await (0, plugin_easing_quint_1.loadEasingQuintPlugin)();
49
+ await (0, plugin_easing_sine_1.loadEasingSinePlugin)();
50
+ await (0, plugin_hsv_color_1.loadHsvColorPlugin)();
51
+ await (0, plugin_canvas_mask_1.loadCanvasMaskPlugin)(engine, false);
52
+ await (0, plugin_infection_1.loadInfectionPlugin)(engine, false);
53
+ await (0, plugin_motion_1.loadMotionPlugin)(engine, false);
54
+ await (0, plugin_polygon_mask_1.loadPolygonMaskPlugin)(engine, false);
55
+ await (0, plugin_sounds_1.loadSoundsPlugin)(engine, false);
56
+ await (0, plugin_export_image_1.loadExportImagePlugin)(engine, false);
57
+ await (0, plugin_export_json_1.loadExportJSONPlugin)(engine, false);
58
+ await (0, plugin_export_video_1.loadExportVideoPlugin)(engine, false);
59
+ await (0, interaction_light_1.loadLightInteraction)(engine, false);
60
+ await (0, interaction_particles_repulse_1.loadParticlesRepulseInteraction)(engine, false);
61
+ await (0, updater_gradient_1.loadGradientUpdater)(engine, false);
62
+ await (0, updater_orbit_1.loadOrbitUpdater)(engine, false);
63
+ await (0, path_curves_1.loadCurvesPath)(engine, false);
64
+ await (0, path_perlin_noise_1.loadPerlinNoisePath)(engine, false);
65
+ await (0, path_polygon_1.loadPolygonPath)(engine, false);
66
+ await (0, path_svg_1.loadSVGPath)(engine, false);
67
+ await (0, path_simplex_noise_1.loadSimplexNoisePath)(engine, false);
68
+ await (0, shape_arrow_1.loadArrowShape)(engine, false);
69
+ await (0, shape_bubble_1.loadBubbleShape)(engine, false);
70
+ await (0, shape_cards_1.loadCardsShape)(engine, false);
71
+ await (0, shape_cog_1.loadCogShape)(engine, false);
72
+ await (0, shape_heart_1.loadHeartShape)(engine, false);
73
+ await (0, shape_multiline_text_1.loadMultilineTextShape)(engine, false);
74
+ await (0, shape_path_1.loadPathShape)(engine, false);
75
+ await (0, shape_rounded_polygon_1.loadRoundedPolygonShape)(engine, false);
76
+ await (0, shape_rounded_rect_1.loadRoundedRectShape)(engine, false);
77
+ await (0, shape_spiral_1.loadSpiralShape)(engine, false);
78
+ await engine.refresh(refresh);
79
+ }
80
+ exports.loadAll = loadAll;
package/esm/bundle.js ADDED
@@ -0,0 +1,5 @@
1
+ import { loadAll } from ".";
2
+ import { tsParticles } from "@tsparticles/engine";
3
+ loadAll(tsParticles);
4
+ export { loadAll };
5
+ export * from "@tsparticles/engine";
package/esm/index.js ADDED
@@ -0,0 +1,76 @@
1
+ import { loadArrowShape } from "@tsparticles/shape-arrow";
2
+ import { loadBubbleShape } from "@tsparticles/shape-bubble";
3
+ import { loadCanvasMaskPlugin } from "@tsparticles/plugin-canvas-mask";
4
+ import { loadCardsShape } from "@tsparticles/shape-cards";
5
+ import { loadCogShape } from "@tsparticles/shape-cog";
6
+ import { loadCurvesPath } from "@tsparticles/path-curves";
7
+ import { loadEasingBackPlugin } from "@tsparticles/plugin-easing-back";
8
+ import { loadEasingCircPlugin } from "@tsparticles/plugin-easing-circ";
9
+ import { loadEasingCubicPlugin } from "@tsparticles/plugin-easing-cubic";
10
+ import { loadEasingExpoPlugin } from "@tsparticles/plugin-easing-expo";
11
+ import { loadEasingQuartPlugin } from "@tsparticles/plugin-easing-quart";
12
+ import { loadEasingQuintPlugin } from "@tsparticles/plugin-easing-quint";
13
+ import { loadEasingSinePlugin } from "@tsparticles/plugin-easing-sine";
14
+ import { loadExportImagePlugin } from "@tsparticles/plugin-export-image";
15
+ import { loadExportJSONPlugin } from "@tsparticles/plugin-export-json";
16
+ import { loadExportVideoPlugin } from "@tsparticles/plugin-export-video";
17
+ import { loadFull } from "tsparticles";
18
+ import { loadGradientUpdater } from "@tsparticles/updater-gradient";
19
+ import { loadHeartShape } from "@tsparticles/shape-heart";
20
+ import { loadHsvColorPlugin } from "@tsparticles/plugin-hsv-color";
21
+ import { loadInfectionPlugin } from "@tsparticles/plugin-infection";
22
+ import { loadLightInteraction } from "@tsparticles/interaction-light";
23
+ import { loadMotionPlugin } from "@tsparticles/plugin-motion";
24
+ import { loadMultilineTextShape } from "@tsparticles/shape-multiline-text";
25
+ import { loadOrbitUpdater } from "@tsparticles/updater-orbit";
26
+ import { loadParticlesRepulseInteraction } from "@tsparticles/interaction-particles-repulse";
27
+ import { loadPathShape } from "@tsparticles/shape-path";
28
+ import { loadPerlinNoisePath } from "@tsparticles/path-perlin-noise";
29
+ import { loadPolygonMaskPlugin } from "@tsparticles/plugin-polygon-mask";
30
+ import { loadPolygonPath } from "@tsparticles/path-polygon";
31
+ import { loadRoundedPolygonShape } from "@tsparticles/shape-rounded-polygon";
32
+ import { loadRoundedRectShape } from "@tsparticles/shape-rounded-rect";
33
+ import { loadSVGPath } from "@tsparticles/path-svg";
34
+ import { loadSimplexNoisePath } from "@tsparticles/path-simplex-noise";
35
+ import { loadSoundsPlugin } from "@tsparticles/plugin-sounds";
36
+ import { loadSpiralShape } from "@tsparticles/shape-spiral";
37
+ export async function loadAll(engine, refresh = true) {
38
+ await loadFull(engine, false);
39
+ await loadHsvColorPlugin();
40
+ await loadEasingBackPlugin();
41
+ await loadEasingCircPlugin();
42
+ await loadEasingCubicPlugin();
43
+ await loadEasingExpoPlugin();
44
+ await loadEasingQuartPlugin();
45
+ await loadEasingQuintPlugin();
46
+ await loadEasingSinePlugin();
47
+ await loadHsvColorPlugin();
48
+ await loadCanvasMaskPlugin(engine, false);
49
+ await loadInfectionPlugin(engine, false);
50
+ await loadMotionPlugin(engine, false);
51
+ await loadPolygonMaskPlugin(engine, false);
52
+ await loadSoundsPlugin(engine, false);
53
+ await loadExportImagePlugin(engine, false);
54
+ await loadExportJSONPlugin(engine, false);
55
+ await loadExportVideoPlugin(engine, false);
56
+ await loadLightInteraction(engine, false);
57
+ await loadParticlesRepulseInteraction(engine, false);
58
+ await loadGradientUpdater(engine, false);
59
+ await loadOrbitUpdater(engine, false);
60
+ await loadCurvesPath(engine, false);
61
+ await loadPerlinNoisePath(engine, false);
62
+ await loadPolygonPath(engine, false);
63
+ await loadSVGPath(engine, false);
64
+ await loadSimplexNoisePath(engine, false);
65
+ await loadArrowShape(engine, false);
66
+ await loadBubbleShape(engine, false);
67
+ await loadCardsShape(engine, false);
68
+ await loadCogShape(engine, false);
69
+ await loadHeartShape(engine, false);
70
+ await loadMultilineTextShape(engine, false);
71
+ await loadPathShape(engine, false);
72
+ await loadRoundedPolygonShape(engine, false);
73
+ await loadRoundedRectShape(engine, false);
74
+ await loadSpiralShape(engine, false);
75
+ await engine.refresh(refresh);
76
+ }
package/package.json ADDED
@@ -0,0 +1,131 @@
1
+ {
2
+ "name": "@tsparticles/all",
3
+ "version": "3.0.0-beta.0",
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
+ "homepage": "https://particles.js.org",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/matteobruni/tsparticles.git",
9
+ "directory": "bundles/all"
10
+ },
11
+ "keywords": [
12
+ "front-end",
13
+ "frontend",
14
+ "tsparticles",
15
+ "particles.js",
16
+ "particlesjs",
17
+ "particles",
18
+ "particle",
19
+ "canvas",
20
+ "jsparticles",
21
+ "xparticles",
22
+ "particles-js",
23
+ "particles-bg",
24
+ "particles-bg-vue",
25
+ "particles-ts",
26
+ "particles.ts",
27
+ "react-particles-js",
28
+ "react-particles.js",
29
+ "react-particles",
30
+ "react",
31
+ "reactjs",
32
+ "vue-particles",
33
+ "ngx-particles",
34
+ "angular-particles",
35
+ "particleground",
36
+ "vue",
37
+ "vuejs",
38
+ "preact",
39
+ "preactjs",
40
+ "jquery",
41
+ "angularjs",
42
+ "angular",
43
+ "typescript",
44
+ "javascript",
45
+ "animation",
46
+ "web",
47
+ "html5",
48
+ "web-design",
49
+ "webdesign",
50
+ "css",
51
+ "html",
52
+ "css3",
53
+ "animated",
54
+ "background",
55
+ "confetti",
56
+ "canvas",
57
+ "fireworks",
58
+ "fireworks-js",
59
+ "confetti-js",
60
+ "confettijs",
61
+ "fireworksjs",
62
+ "canvas-confetti"
63
+ ],
64
+ "author": "Matteo Bruni <matteo.bruni@me.com>",
65
+ "license": "MIT",
66
+ "bugs": {
67
+ "url": "https://github.com/matteobruni/tsparticles/issues"
68
+ },
69
+ "funding": [
70
+ {
71
+ "type": "github",
72
+ "url": "https://github.com/sponsors/matteobruni"
73
+ },
74
+ {
75
+ "type": "github",
76
+ "url": "https://github.com/sponsors/tsparticles"
77
+ },
78
+ {
79
+ "type": "buymeacoffee",
80
+ "url": "https://www.buymeacoffee.com/matteobruni"
81
+ }
82
+ ],
83
+ "main": "cjs/index.js",
84
+ "module": "esm/index.js",
85
+ "jsdelivr": "tsparticles.all.bundle.min.js",
86
+ "unpkg": "tsparticles.all.bundle.min.js",
87
+ "types": "types/index.d.ts",
88
+ "sideEffects": false,
89
+ "dependencies": {
90
+ "@tsparticles/engine": "^3.0.0-beta.0",
91
+ "@tsparticles/interaction-light": "^3.0.0-beta.0",
92
+ "@tsparticles/interaction-particles-repulse": "^3.0.0-beta.0",
93
+ "@tsparticles/path-curves": "^3.0.0-beta.0",
94
+ "@tsparticles/path-perlin-noise": "^3.0.0-beta.0",
95
+ "@tsparticles/path-polygon": "^3.0.0-beta.0",
96
+ "@tsparticles/path-simplex-noise": "^3.0.0-beta.0",
97
+ "@tsparticles/path-svg": "^3.0.0-beta.0",
98
+ "@tsparticles/plugin-canvas-mask": "^3.0.0-beta.0",
99
+ "@tsparticles/plugin-easing-back": "^3.0.0-beta.0",
100
+ "@tsparticles/plugin-easing-circ": "^3.0.0-beta.0",
101
+ "@tsparticles/plugin-easing-cubic": "^3.0.0-beta.0",
102
+ "@tsparticles/plugin-easing-expo": "^3.0.0-beta.0",
103
+ "@tsparticles/plugin-easing-quart": "^3.0.0-beta.0",
104
+ "@tsparticles/plugin-easing-quint": "^3.0.0-beta.0",
105
+ "@tsparticles/plugin-easing-sine": "^3.0.0-beta.0",
106
+ "@tsparticles/plugin-export-image": "^3.0.0-beta.0",
107
+ "@tsparticles/plugin-export-json": "^3.0.0-beta.0",
108
+ "@tsparticles/plugin-export-video": "^3.0.0-beta.0",
109
+ "@tsparticles/plugin-hsv-color": "^3.0.0-beta.0",
110
+ "@tsparticles/plugin-infection": "^3.0.0-beta.0",
111
+ "@tsparticles/plugin-motion": "^3.0.0-beta.0",
112
+ "@tsparticles/plugin-polygon-mask": "^3.0.0-beta.0",
113
+ "@tsparticles/plugin-sounds": "^3.0.0-beta.0",
114
+ "@tsparticles/shape-arrow": "^3.0.0-beta.0",
115
+ "@tsparticles/shape-bubble": "^3.0.0-beta.0",
116
+ "@tsparticles/shape-cards": "^3.0.0-beta.0",
117
+ "@tsparticles/shape-cog": "^3.0.0-beta.0",
118
+ "@tsparticles/shape-heart": "^3.0.0-beta.0",
119
+ "@tsparticles/shape-multiline-text": "^3.0.0-beta.0",
120
+ "@tsparticles/shape-path": "^3.0.0-beta.0",
121
+ "@tsparticles/shape-rounded-polygon": "^3.0.0-beta.0",
122
+ "@tsparticles/shape-rounded-rect": "^3.0.0-beta.0",
123
+ "@tsparticles/shape-spiral": "^3.0.0-beta.0",
124
+ "@tsparticles/updater-gradient": "^3.0.0-beta.0",
125
+ "@tsparticles/updater-orbit": "^3.0.0-beta.0",
126
+ "tsparticles": "^3.0.0-beta.0"
127
+ },
128
+ "publishConfig": {
129
+ "access": "public"
130
+ }
131
+ }