@tsparticles/slim 3.0.0-alpha.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,188 @@
1
+ [![banner](https://particles.js.org/images/banner2.png)](https://particles.js.org)
2
+
3
+ # tsParticles Slim Bundle
4
+
5
+ [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/tsparticles-slim/badge)](https://www.jsdelivr.com/package/npm/tsparticles-slim) [![npmjs](https://badge.fury.io/js/tsparticles-slim.svg)](https://www.npmjs.com/package/tsparticles-slim) [![npmjs](https://img.shields.io/npm/dt/tsparticles-slim)](https://www.npmjs.com/package/tsparticles-slim) [![GitHub Sponsors](https://img.shields.io/github/sponsors/matteobruni)](https://github.com/sponsors/matteobruni)
6
+
7
+ [tsParticles](https://github.com/matteobruni/tsparticles) slim bundle loads some of the most used features to
8
+ a `tsparticles-engine` instance.
9
+
10
+ **Included Packages**
11
+
12
+ - [tsparticles-engine](https://github.com/matteobruni/tsparticles/tree/main/engine)
13
+ - [tsparticles-interaction-external-attract](https://github.com/matteobruni/tsparticles/tree/main/interactions/external/attract)
14
+ - [tsparticles-interaction-external-bounce](https://github.com/matteobruni/tsparticles/tree/main/interactions/external/bounce)
15
+ - [tsparticles-interaction-external-bubble](https://github.com/matteobruni/tsparticles/tree/main/interactions/external/bubble)
16
+ - [tsparticles-interaction-external-connect](https://github.com/matteobruni/tsparticles/tree/main/interactions/external/connect)
17
+ - [tsparticles-interaction-external-grab](https://github.com/matteobruni/tsparticles/tree/main/interactions/external/grab)
18
+ - [tsparticles-interaction-external-pause](https://github.com/matteobruni/tsparticles/tree/main/interactions/external/pause)
19
+ - [tsparticles-interaction-external-push](https://github.com/matteobruni/tsparticles/tree/main/interactions/external/push)
20
+ - [tsparticles-interaction-external-remove](https://github.com/matteobruni/tsparticles/tree/main/interactions/external/remove)
21
+ - [tsparticles-interaction-external-repulse](https://github.com/matteobruni/tsparticles/tree/main/interactions/external/repulse)
22
+ - [tsparticles-interaction-particles-attract](https://github.com/matteobruni/tsparticles/tree/main/interactions/particles/attract)
23
+ - [tsparticles-interaction-particles-collisions](https://github.com/matteobruni/tsparticles/tree/main/interactions/particles/collisions)
24
+ - [tsparticles-interaction-particles-links](https://github.com/matteobruni/tsparticles/tree/main/interactions/particles/links)
25
+ - [tsparticles-shape-circle](https://github.com/matteobruni/tsparticles/tree/main/shapes/circle)
26
+ - [tsparticles-shape-image](https://github.com/matteobruni/tsparticles/tree/main/shapes/image)
27
+ - [tsparticles-shape-line](https://github.com/matteobruni/tsparticles/tree/main/shapes/line)
28
+ - [tsparticles-shape-polygon](https://github.com/matteobruni/tsparticles/tree/main/shapes/polygon)
29
+ - [tsparticles-shape-square](https://github.com/matteobruni/tsparticles/tree/main/shapes/square)
30
+ - [tsparticles-shape-star](https://github.com/matteobruni/tsparticles/tree/main/shapes/star)
31
+ - [tsparticles-shape-text](https://github.com/matteobruni/tsparticles/tree/main/shapes/text)
32
+ - [tsparticles-updater-angle](https://github.com/matteobruni/tsparticles/tree/main/updaters/angle)
33
+ - [tsparticles-updater-color](https://github.com/matteobruni/tsparticles/tree/main/updaters/color)
34
+ - [tsparticles-updater-life](https://github.com/matteobruni/tsparticles/tree/main/updaters/life)
35
+ - [tsparticles-updater-opacity](https://github.com/matteobruni/tsparticles/tree/main/updaters/opacity)
36
+ - [tsparticles-updater-out-modes](https://github.com/matteobruni/tsparticles/tree/main/updaters/outModes)
37
+ - [tsparticles-updater-size](https://github.com/matteobruni/tsparticles/tree/main/updaters/size)
38
+ - [tsparticles-updater-stroke-color](https://github.com/matteobruni/tsparticles/tree/main/updaters/strokeColor)
39
+
40
+ ## How to use it
41
+
42
+ ### CDN / Vanilla JS / jQuery
43
+
44
+ The CDN/Vanilla version JS has two different files:
45
+
46
+ - One is a bundle file with all the scripts included in a single file
47
+ - One is a file including just the `loadSlim` function to load the tsParticles slim preset, all dependencies must be
48
+ included manually
49
+
50
+ #### Bundle
51
+
52
+ Including the `tsparticles.slim.bundle.min.js` file will work exactly like `v1`, you can start using the `tsParticles`
53
+ instance in the same way.
54
+
55
+ This is the easiest usage, since it's a single file with the some of the `v1` features.
56
+
57
+ All new features will be added as external packages, this bundle is recommended for migrating from `v1` easily.
58
+
59
+ #### Not Bundle
60
+
61
+ This installation requires more work since all dependencies must be included in the page. Some lines above are all
62
+ specified in the **Included Packages** section.
63
+
64
+ ### Usage
65
+
66
+ Once the scripts are loaded you can set up `tsParticles` like this:
67
+
68
+ ```javascript
69
+ (async () => {
70
+ await loadSlim(tsParticles); // not needed if using the bundle script, required for any other installation
71
+
72
+ await tsParticles.load({
73
+ id: "tsparticles",
74
+ options: {
75
+ /* options */
76
+ },
77
+ });
78
+ })();
79
+ ```
80
+
81
+ ### React.js / Preact / Inferno
82
+
83
+ _The syntax for `React.js`, `Preact` and `Inferno` is the same_.
84
+
85
+ This sample uses the class component syntax, but you can use hooks as well (if the library supports it).
86
+
87
+ _Class Components_
88
+
89
+ ```typescript jsx
90
+ import React from "react";
91
+ import Particles from "react-particles";
92
+ import type { Engine } from "tsparticles-engine";
93
+ import { loadSlim } from "tsparticles-slim";
94
+
95
+ export class ParticlesContainer extends PureComponent<unknown> {
96
+ // this customizes the component tsParticles installation
97
+ async customInit(engine: Engine) {
98
+ // this adds the bundle to tsParticles
99
+ await loadSlim(engine);
100
+ }
101
+
102
+ render() {
103
+ const options = {
104
+ /* custom options */
105
+ };
106
+
107
+ return <Particles options={options} init={this.customInit} />;
108
+ }
109
+ }
110
+ ```
111
+
112
+ _Hooks / Functional Components_
113
+
114
+ ```typescript jsx
115
+ import React, { useCallback } from "react";
116
+ import Particles from "react-particles";
117
+ import type { Engine } from "tsparticles-engine";
118
+ import { loadSlim } from "tsparticles-slim";
119
+
120
+ export function ParticlesContainer(props: unknown) {
121
+ // this customizes the component tsParticles installation
122
+ const customInit = useCallback(async (engine: Engine) => {
123
+ // this adds the bundle to tsParticles
124
+ await loadSlim(engine);
125
+ });
126
+
127
+ const options = {
128
+ /* custom options */
129
+ };
130
+
131
+ return <Particles options={options} init={this.customInit} />;
132
+ }
133
+ ```
134
+
135
+ ### Vue (2.x and 3.x)
136
+
137
+ _The syntax for `Vue.js 2.x` and `3.x` is the same_
138
+
139
+ ```vue
140
+ <Particles id="tsparticles" :particlesInit="particlesInit" :options="options" />
141
+ ```
142
+
143
+ ```js
144
+ const options = {
145
+ /* custom options */
146
+ };
147
+
148
+ async function particlesInit(engine: Engine) {
149
+ await loadSlim(engine);
150
+ }
151
+ ```
152
+
153
+ ### Angular
154
+
155
+ ```html
156
+ <angular-particles [id]="id" [options]="options" [particlesInit]="particlesInit"></angular-particles>
157
+ ```
158
+
159
+ ```ts
160
+ const options = {
161
+ /* custom options */
162
+ };
163
+
164
+ async function particlesInit(engine: Engine): void {
165
+ await loadSlim(engine);
166
+ }
167
+ ```
168
+
169
+ ### Svelte
170
+
171
+ ```sveltehtml
172
+
173
+ <Particles
174
+ id="tsparticles"
175
+ options={options}
176
+ particlesInit="{particlesInit}"
177
+ />
178
+ ```
179
+
180
+ ```js
181
+ let options = {
182
+ /* custom options */
183
+ };
184
+
185
+ let particlesInit = async (engine) => {
186
+ await loadSlim(engine);
187
+ };
188
+ ```
@@ -0,0 +1,5 @@
1
+ import { loadSlim } from ".";
2
+ import { tsParticles } from "@tsparticles/engine";
3
+ loadSlim(tsParticles);
4
+ export { loadSlim };
5
+ export * from "@tsparticles/engine";
@@ -0,0 +1,62 @@
1
+ import { initPjs } from "@tsparticles/pjs";
2
+ import { loadAngleUpdater } from "@tsparticles/updater-angle";
3
+ import { loadBaseMover } from "@tsparticles/move-base";
4
+ import { loadCircleShape } from "@tsparticles/shape-circle";
5
+ import { loadColorUpdater } from "@tsparticles/updater-color";
6
+ import { loadExternalAttractInteraction } from "@tsparticles/interaction-external-attract";
7
+ import { loadExternalBounceInteraction } from "@tsparticles/interaction-external-bounce";
8
+ import { loadExternalBubbleInteraction } from "@tsparticles/interaction-external-bubble";
9
+ import { loadExternalConnectInteraction } from "@tsparticles/interaction-external-connect";
10
+ import { loadExternalGrabInteraction } from "@tsparticles/interaction-external-grab";
11
+ import { loadExternalPauseInteraction } from "@tsparticles/interaction-external-pause";
12
+ import { loadExternalPushInteraction } from "@tsparticles/interaction-external-push";
13
+ import { loadExternalRemoveInteraction } from "@tsparticles/interaction-external-remove";
14
+ import { loadExternalRepulseInteraction } from "@tsparticles/interaction-external-repulse";
15
+ import { loadExternalSlowInteraction } from "@tsparticles/interaction-external-slow";
16
+ import { loadImageShape } from "@tsparticles/shape-image";
17
+ import { loadLifeUpdater } from "@tsparticles/updater-life";
18
+ import { loadLineShape } from "@tsparticles/shape-line";
19
+ import { loadOpacityUpdater } from "@tsparticles/updater-opacity";
20
+ import { loadOutModesUpdater } from "@tsparticles/updater-out-modes";
21
+ import { loadParallaxMover } from "@tsparticles/move-parallax";
22
+ import { loadParticlesAttractInteraction } from "@tsparticles/interaction-particles-attract";
23
+ import { loadParticlesCollisionsInteraction } from "@tsparticles/interaction-particles-collisions";
24
+ import { loadParticlesLinksInteraction } from "@tsparticles/interaction-particles-links";
25
+ import { loadPolygonShape } from "@tsparticles/shape-polygon";
26
+ import { loadSizeUpdater } from "@tsparticles/updater-size";
27
+ import { loadSquareShape } from "@tsparticles/shape-square";
28
+ import { loadStarShape } from "@tsparticles/shape-star";
29
+ import { loadStrokeColorUpdater } from "@tsparticles/updater-stroke-color";
30
+ import { loadTextShape } from "@tsparticles/shape-text";
31
+ export async function loadSlim(engine) {
32
+ await loadBaseMover(engine);
33
+ await loadParallaxMover(engine);
34
+ await loadExternalAttractInteraction(engine);
35
+ await loadExternalBounceInteraction(engine);
36
+ await loadExternalBubbleInteraction(engine);
37
+ await loadExternalConnectInteraction(engine);
38
+ await loadExternalGrabInteraction(engine);
39
+ await loadExternalPauseInteraction(engine);
40
+ await loadExternalPushInteraction(engine);
41
+ await loadExternalRemoveInteraction(engine);
42
+ await loadExternalRepulseInteraction(engine);
43
+ await loadExternalSlowInteraction(engine);
44
+ await loadParticlesAttractInteraction(engine);
45
+ await loadParticlesCollisionsInteraction(engine);
46
+ await loadParticlesLinksInteraction(engine);
47
+ await loadCircleShape(engine);
48
+ await loadImageShape(engine);
49
+ await loadLineShape(engine);
50
+ await loadPolygonShape(engine);
51
+ await loadSquareShape(engine);
52
+ await loadStarShape(engine);
53
+ await loadTextShape(engine);
54
+ await loadLifeUpdater(engine);
55
+ await loadOpacityUpdater(engine);
56
+ await loadSizeUpdater(engine);
57
+ await loadAngleUpdater(engine);
58
+ await loadColorUpdater(engine);
59
+ await loadStrokeColorUpdater(engine);
60
+ await loadOutModesUpdater(engine);
61
+ await initPjs(engine);
62
+ }
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.loadSlim = void 0;
18
+ const _1 = require(".");
19
+ Object.defineProperty(exports, "loadSlim", { enumerable: true, get: function () { return _1.loadSlim; } });
20
+ const engine_1 = require("@tsparticles/engine");
21
+ (0, _1.loadSlim)(engine_1.tsParticles);
22
+ __exportStar(require("@tsparticles/engine"), exports);
package/cjs/index.js ADDED
@@ -0,0 +1,77 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.loadSlim = void 0;
13
+ const pjs_1 = require("@tsparticles/pjs");
14
+ const updater_angle_1 = require("@tsparticles/updater-angle");
15
+ const move_base_1 = require("@tsparticles/move-base");
16
+ const shape_circle_1 = require("@tsparticles/shape-circle");
17
+ const updater_color_1 = require("@tsparticles/updater-color");
18
+ const interaction_external_attract_1 = require("@tsparticles/interaction-external-attract");
19
+ const interaction_external_bounce_1 = require("@tsparticles/interaction-external-bounce");
20
+ const interaction_external_bubble_1 = require("@tsparticles/interaction-external-bubble");
21
+ const interaction_external_connect_1 = require("@tsparticles/interaction-external-connect");
22
+ const interaction_external_grab_1 = require("@tsparticles/interaction-external-grab");
23
+ const interaction_external_pause_1 = require("@tsparticles/interaction-external-pause");
24
+ const interaction_external_push_1 = require("@tsparticles/interaction-external-push");
25
+ const interaction_external_remove_1 = require("@tsparticles/interaction-external-remove");
26
+ const interaction_external_repulse_1 = require("@tsparticles/interaction-external-repulse");
27
+ const interaction_external_slow_1 = require("@tsparticles/interaction-external-slow");
28
+ const shape_image_1 = require("@tsparticles/shape-image");
29
+ const updater_life_1 = require("@tsparticles/updater-life");
30
+ const shape_line_1 = require("@tsparticles/shape-line");
31
+ const updater_opacity_1 = require("@tsparticles/updater-opacity");
32
+ const updater_out_modes_1 = require("@tsparticles/updater-out-modes");
33
+ const move_parallax_1 = require("@tsparticles/move-parallax");
34
+ const interaction_particles_attract_1 = require("@tsparticles/interaction-particles-attract");
35
+ const interaction_particles_collisions_1 = require("@tsparticles/interaction-particles-collisions");
36
+ const interaction_particles_links_1 = require("@tsparticles/interaction-particles-links");
37
+ const shape_polygon_1 = require("@tsparticles/shape-polygon");
38
+ const updater_size_1 = require("@tsparticles/updater-size");
39
+ const shape_square_1 = require("@tsparticles/shape-square");
40
+ const shape_star_1 = require("@tsparticles/shape-star");
41
+ const updater_stroke_color_1 = require("@tsparticles/updater-stroke-color");
42
+ const shape_text_1 = require("@tsparticles/shape-text");
43
+ function loadSlim(engine) {
44
+ return __awaiter(this, void 0, void 0, function* () {
45
+ yield (0, move_base_1.loadBaseMover)(engine);
46
+ yield (0, move_parallax_1.loadParallaxMover)(engine);
47
+ yield (0, interaction_external_attract_1.loadExternalAttractInteraction)(engine);
48
+ yield (0, interaction_external_bounce_1.loadExternalBounceInteraction)(engine);
49
+ yield (0, interaction_external_bubble_1.loadExternalBubbleInteraction)(engine);
50
+ yield (0, interaction_external_connect_1.loadExternalConnectInteraction)(engine);
51
+ yield (0, interaction_external_grab_1.loadExternalGrabInteraction)(engine);
52
+ yield (0, interaction_external_pause_1.loadExternalPauseInteraction)(engine);
53
+ yield (0, interaction_external_push_1.loadExternalPushInteraction)(engine);
54
+ yield (0, interaction_external_remove_1.loadExternalRemoveInteraction)(engine);
55
+ yield (0, interaction_external_repulse_1.loadExternalRepulseInteraction)(engine);
56
+ yield (0, interaction_external_slow_1.loadExternalSlowInteraction)(engine);
57
+ yield (0, interaction_particles_attract_1.loadParticlesAttractInteraction)(engine);
58
+ yield (0, interaction_particles_collisions_1.loadParticlesCollisionsInteraction)(engine);
59
+ yield (0, interaction_particles_links_1.loadParticlesLinksInteraction)(engine);
60
+ yield (0, shape_circle_1.loadCircleShape)(engine);
61
+ yield (0, shape_image_1.loadImageShape)(engine);
62
+ yield (0, shape_line_1.loadLineShape)(engine);
63
+ yield (0, shape_polygon_1.loadPolygonShape)(engine);
64
+ yield (0, shape_square_1.loadSquareShape)(engine);
65
+ yield (0, shape_star_1.loadStarShape)(engine);
66
+ yield (0, shape_text_1.loadTextShape)(engine);
67
+ yield (0, updater_life_1.loadLifeUpdater)(engine);
68
+ yield (0, updater_opacity_1.loadOpacityUpdater)(engine);
69
+ yield (0, updater_size_1.loadSizeUpdater)(engine);
70
+ yield (0, updater_angle_1.loadAngleUpdater)(engine);
71
+ yield (0, updater_color_1.loadColorUpdater)(engine);
72
+ yield (0, updater_stroke_color_1.loadStrokeColorUpdater)(engine);
73
+ yield (0, updater_out_modes_1.loadOutModesUpdater)(engine);
74
+ yield (0, pjs_1.initPjs)(engine);
75
+ });
76
+ }
77
+ exports.loadSlim = loadSlim;
package/esm/bundle.js ADDED
@@ -0,0 +1,5 @@
1
+ import { loadSlim } from ".";
2
+ import { tsParticles } from "@tsparticles/engine";
3
+ loadSlim(tsParticles);
4
+ export { loadSlim };
5
+ export * from "@tsparticles/engine";
package/esm/index.js ADDED
@@ -0,0 +1,62 @@
1
+ import { initPjs } from "@tsparticles/pjs";
2
+ import { loadAngleUpdater } from "@tsparticles/updater-angle";
3
+ import { loadBaseMover } from "@tsparticles/move-base";
4
+ import { loadCircleShape } from "@tsparticles/shape-circle";
5
+ import { loadColorUpdater } from "@tsparticles/updater-color";
6
+ import { loadExternalAttractInteraction } from "@tsparticles/interaction-external-attract";
7
+ import { loadExternalBounceInteraction } from "@tsparticles/interaction-external-bounce";
8
+ import { loadExternalBubbleInteraction } from "@tsparticles/interaction-external-bubble";
9
+ import { loadExternalConnectInteraction } from "@tsparticles/interaction-external-connect";
10
+ import { loadExternalGrabInteraction } from "@tsparticles/interaction-external-grab";
11
+ import { loadExternalPauseInteraction } from "@tsparticles/interaction-external-pause";
12
+ import { loadExternalPushInteraction } from "@tsparticles/interaction-external-push";
13
+ import { loadExternalRemoveInteraction } from "@tsparticles/interaction-external-remove";
14
+ import { loadExternalRepulseInteraction } from "@tsparticles/interaction-external-repulse";
15
+ import { loadExternalSlowInteraction } from "@tsparticles/interaction-external-slow";
16
+ import { loadImageShape } from "@tsparticles/shape-image";
17
+ import { loadLifeUpdater } from "@tsparticles/updater-life";
18
+ import { loadLineShape } from "@tsparticles/shape-line";
19
+ import { loadOpacityUpdater } from "@tsparticles/updater-opacity";
20
+ import { loadOutModesUpdater } from "@tsparticles/updater-out-modes";
21
+ import { loadParallaxMover } from "@tsparticles/move-parallax";
22
+ import { loadParticlesAttractInteraction } from "@tsparticles/interaction-particles-attract";
23
+ import { loadParticlesCollisionsInteraction } from "@tsparticles/interaction-particles-collisions";
24
+ import { loadParticlesLinksInteraction } from "@tsparticles/interaction-particles-links";
25
+ import { loadPolygonShape } from "@tsparticles/shape-polygon";
26
+ import { loadSizeUpdater } from "@tsparticles/updater-size";
27
+ import { loadSquareShape } from "@tsparticles/shape-square";
28
+ import { loadStarShape } from "@tsparticles/shape-star";
29
+ import { loadStrokeColorUpdater } from "@tsparticles/updater-stroke-color";
30
+ import { loadTextShape } from "@tsparticles/shape-text";
31
+ export async function loadSlim(engine) {
32
+ await loadBaseMover(engine);
33
+ await loadParallaxMover(engine);
34
+ await loadExternalAttractInteraction(engine);
35
+ await loadExternalBounceInteraction(engine);
36
+ await loadExternalBubbleInteraction(engine);
37
+ await loadExternalConnectInteraction(engine);
38
+ await loadExternalGrabInteraction(engine);
39
+ await loadExternalPauseInteraction(engine);
40
+ await loadExternalPushInteraction(engine);
41
+ await loadExternalRemoveInteraction(engine);
42
+ await loadExternalRepulseInteraction(engine);
43
+ await loadExternalSlowInteraction(engine);
44
+ await loadParticlesAttractInteraction(engine);
45
+ await loadParticlesCollisionsInteraction(engine);
46
+ await loadParticlesLinksInteraction(engine);
47
+ await loadCircleShape(engine);
48
+ await loadImageShape(engine);
49
+ await loadLineShape(engine);
50
+ await loadPolygonShape(engine);
51
+ await loadSquareShape(engine);
52
+ await loadStarShape(engine);
53
+ await loadTextShape(engine);
54
+ await loadLifeUpdater(engine);
55
+ await loadOpacityUpdater(engine);
56
+ await loadSizeUpdater(engine);
57
+ await loadAngleUpdater(engine);
58
+ await loadColorUpdater(engine);
59
+ await loadStrokeColorUpdater(engine);
60
+ await loadOutModesUpdater(engine);
61
+ await initPjs(engine);
62
+ }
package/package.json ADDED
@@ -0,0 +1,115 @@
1
+ {
2
+ "name": "@tsparticles/slim",
3
+ "version": "3.0.0-alpha.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/slim"
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
+ "type": "github",
71
+ "url": "https://github.com/sponsors/matteobruni"
72
+ },
73
+ "main": "cjs/index.js",
74
+ "module": "esm/index.js",
75
+ "jsdelivr": "tsparticles.slim.bundle.min.js",
76
+ "unpkg": "tsparticles.slim.bundle.min.js",
77
+ "types": "types/index.d.ts",
78
+ "publishConfig": {
79
+ "access": "public"
80
+ },
81
+ "dependencies": {
82
+ "@tsparticles/engine": "^3.0.0-alpha.0",
83
+ "@tsparticles/interaction-external-attract": "^3.0.0-alpha.0",
84
+ "@tsparticles/interaction-external-bounce": "^3.0.0-alpha.0",
85
+ "@tsparticles/interaction-external-bubble": "^3.0.0-alpha.0",
86
+ "@tsparticles/interaction-external-connect": "^3.0.0-alpha.0",
87
+ "@tsparticles/interaction-external-grab": "^3.0.0-alpha.0",
88
+ "@tsparticles/interaction-external-pause": "^3.0.0-alpha.0",
89
+ "@tsparticles/interaction-external-push": "^3.0.0-alpha.0",
90
+ "@tsparticles/interaction-external-remove": "^3.0.0-alpha.0",
91
+ "@tsparticles/interaction-external-repulse": "^3.0.0-alpha.0",
92
+ "@tsparticles/interaction-external-slow": "^3.0.0-alpha.0",
93
+ "@tsparticles/interaction-particles-attract": "^3.0.0-alpha.0",
94
+ "@tsparticles/interaction-particles-collisions": "^3.0.0-alpha.0",
95
+ "@tsparticles/interaction-particles-links": "^3.0.0-alpha.0",
96
+ "@tsparticles/move-base": "^3.0.0-alpha.0",
97
+ "@tsparticles/move-parallax": "^3.0.0-alpha.0",
98
+ "@tsparticles/pjs": "^3.0.0-alpha.0",
99
+ "@tsparticles/plugin-easing-quad": "^3.0.0-alpha.0",
100
+ "@tsparticles/shape-circle": "^3.0.0-alpha.0",
101
+ "@tsparticles/shape-image": "^3.0.0-alpha.0",
102
+ "@tsparticles/shape-line": "^3.0.0-alpha.0",
103
+ "@tsparticles/shape-polygon": "^3.0.0-alpha.0",
104
+ "@tsparticles/shape-square": "^3.0.0-alpha.0",
105
+ "@tsparticles/shape-star": "^3.0.0-alpha.0",
106
+ "@tsparticles/shape-text": "^3.0.0-alpha.0",
107
+ "@tsparticles/updater-angle": "^3.0.0-alpha.0",
108
+ "@tsparticles/updater-color": "^3.0.0-alpha.0",
109
+ "@tsparticles/updater-life": "^3.0.0-alpha.0",
110
+ "@tsparticles/updater-opacity": "^3.0.0-alpha.0",
111
+ "@tsparticles/updater-out-modes": "^3.0.0-alpha.0",
112
+ "@tsparticles/updater-size": "^3.0.0-alpha.0",
113
+ "@tsparticles/updater-stroke-color": "^3.0.0-alpha.0"
114
+ }
115
+ }