@tsparticles/riot 4.0.4 → 4.1.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/package.json CHANGED
@@ -1,24 +1,7 @@
1
1
  {
2
2
  "name": "@tsparticles/riot",
3
- "version": "4.0.4",
3
+ "version": "4.1.0",
4
4
  "description": "Official tsParticles Riot Component - Easily create highly customizable particle, confetti and fireworks animations and use them as animated backgrounds for your website. Ready to use components available also for Web Components, React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Inferno.",
5
- "main": "dist/riot-particles.cjs",
6
- "module": "dist/riot-particles.esm.js",
7
- "exports": {
8
- ".": {
9
- "import": "./dist/riot-particles.esm.js",
10
- "require": "./dist/riot-particles.cjs"
11
- }
12
- },
13
- "scripts": {
14
- "prettify:ci:src": "prettier --check ./src/*",
15
- "prettify:ci:readme": "prettier --check ./README.md",
16
- "prettify:src": "prettier --write ./src/*",
17
- "prettify:readme": "prettier --write ./README.md",
18
- "build": "pnpm run prettify:src && rollup -c",
19
- "build:ci": "pnpm run prettify:ci:src && rollup -c",
20
- "prepack": "pnpm run build"
21
- },
22
5
  "repository": {
23
6
  "type": "git",
24
7
  "url": "git+https://github.com/tsparticles/tsparticles.git",
@@ -97,32 +80,19 @@
97
80
  }
98
81
  ],
99
82
  "prettier": "@tsparticles/prettier-config",
100
- "peerDependencies": {
101
- "riot": "^10"
102
- },
103
- "dependencies": {
104
- "@tsparticles/engine": "^4.0.4"
83
+ "module": "riot-particles.esm.js",
84
+ "main": "riot-particles.cjs",
85
+ "exports": {
86
+ ".": {
87
+ "import": "./riot-particles.esm.js",
88
+ "require": "./riot-particles.cjs"
89
+ }
105
90
  },
106
- "devDependencies": {
107
- "@babel/core": "^7.29.0",
108
- "@babel/preset-typescript": "^7.28.5",
109
- "@riotjs/cli": "^10.0.0",
110
- "@riotjs/compiler": "^10.0.1",
111
- "@rollup/plugin-babel": "^7.0.0",
112
- "@tsparticles/prettier-config": "^4.0.4",
113
- "chai": "^6.2.2",
114
- "esm": "^3.2.25",
115
- "jsdom": "^29.0.2",
116
- "jsdom-global": "^3.0.2",
117
- "mocha": "^11.7.5",
118
- "nyc": "^18.0.0",
119
- "prettier": "^3.8.2",
120
- "riot": "^10.1.3",
121
- "rollup": "^4.60.1",
122
- "rollup-plugin-riot": "^10.0.0"
91
+ "peerDependencies": {
92
+ "riot": "^10",
93
+ "@tsparticles/engine": "4.1.0"
123
94
  },
124
95
  "publishConfig": {
125
96
  "access": "public"
126
- },
127
- "gitHead": "ccaa764e22df90102d33c977aa91e3f552ce12dd"
97
+ }
128
98
  }
package/CHANGELOG.md DELETED
@@ -1,414 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [4.0.4](https://github.com/tsparticles/tsparticles/compare/v4.0.3...v4.0.4) (2026-05-19)
7
-
8
- **Note:** Version bump only for package @tsparticles/riot
9
-
10
- ## [4.0.3](https://github.com/tsparticles/tsparticles/compare/v4.0.2...v4.0.3) (2026-05-18)
11
-
12
- **Note:** Version bump only for package @tsparticles/riot
13
-
14
- ## [4.0.2](https://github.com/tsparticles/tsparticles/compare/v4.0.1...v4.0.2) (2026-05-16)
15
-
16
- **Note:** Version bump only for package @tsparticles/riot
17
-
18
- ## [4.0.1](https://github.com/tsparticles/tsparticles/compare/v4.0.0...v4.0.1) (2026-05-15)
19
-
20
- **Note:** Version bump only for package @tsparticles/riot
21
-
22
- # [4.0.0](https://github.com/tsparticles/tsparticles/compare/v4.0.0-beta.17...v4.0.0) (2026-05-15)
23
-
24
- **Note:** Version bump only for package @tsparticles/riot
25
-
26
- # [4.0.0-beta.17](https://github.com/tsparticles/tsparticles/compare/v4.0.0-beta.16...v4.0.0-beta.17) (2026-05-15)
27
-
28
- **Note:** Version bump only for package @tsparticles/riot
29
-
30
- # [4.0.0-beta.16](https://github.com/tsparticles/tsparticles/compare/v4.0.0-beta.15...v4.0.0-beta.16) (2026-05-09)
31
-
32
- **Note:** Version bump only for package @tsparticles/riot
33
-
34
- # [4.0.0-beta.15](https://github.com/tsparticles/tsparticles/compare/v4.0.0-beta.14...v4.0.0-beta.15) (2026-05-09)
35
-
36
- **Note:** Version bump only for package @tsparticles/riot
37
-
38
- # [4.0.0-beta.12](https://github.com/tsparticles/tsparticles/compare/v4.0.0-beta.11...v4.0.0-beta.12) (2026-04-15)
39
-
40
- ### Features
41
-
42
- - improving other wrappers to make them similar to React, Vue and Angular ones ([4dccf8e](https://github.com/tsparticles/tsparticles/commit/4dccf8eb0fe4ac29f8240673c77e0701cdbd15b1))
43
- - improving other wrappers to make them similar to React, Vue and Angular ones ([e0c9230](https://github.com/tsparticles/tsparticles/commit/e0c9230b751d3a86b8f4eccf10b3660a0a7ddb91))
44
- - improving other wrappers to make them similar to React, Vue and Angular ones ([981e896](https://github.com/tsparticles/tsparticles/commit/981e896329951c6cdebfeba2406a68278c373996))
45
-
46
- ## [2.9.3](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.9.2...riot-particles@2.9.3) (2023-02-12)
47
-
48
- **Note:** Version bump only for package riot-particles
49
-
50
- ## [2.9.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.9.1...riot-particles@2.9.2) (2023-02-12)
51
-
52
- **Note:** Version bump only for package riot-particles
53
-
54
- ## [2.9.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.9.0...riot-particles@2.9.1) (2023-02-11)
55
-
56
- **Note:** Version bump only for package riot-particles
57
-
58
- # [2.9.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.8.0...riot-particles@2.9.0) (2023-02-10)
59
-
60
- **Note:** Version bump only for package riot-particles
61
-
62
- # [2.8.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.7.1...riot-particles@2.8.0) (2023-01-18)
63
-
64
- **Note:** Version bump only for package riot-particles
65
-
66
- ## [2.7.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.7.0...riot-particles@2.7.1) (2022-12-25)
67
-
68
- **Note:** Version bump only for package riot-particles
69
-
70
- # [2.7.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.6.0...riot-particles@2.7.0) (2022-12-23)
71
-
72
- **Note:** Version bump only for package riot-particles
73
-
74
- # [2.6.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.5.3...riot-particles@2.6.0) (2022-12-06)
75
-
76
- ### Features
77
-
78
- - added localization support to wordpress plugin, fixes [#4807](https://github.com/matteobruni/tsparticles/issues/4807) ([8a93b8a](https://github.com/matteobruni/tsparticles/commit/8a93b8a3d6a1327903c745d7a3b04cb41e5249c8))
79
-
80
- ## [2.5.3](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.5.2...riot-particles@2.5.3) (2022-11-07)
81
-
82
- **Note:** Version bump only for package riot-particles
83
-
84
- ## [2.5.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.5.1...riot-particles@2.5.2) (2022-11-07)
85
-
86
- **Note:** Version bump only for package riot-particles
87
-
88
- ## [2.5.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.5.0...riot-particles@2.5.1) (2022-11-03)
89
-
90
- **Note:** Version bump only for package riot-particles
91
-
92
- # [2.5.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.4.0...riot-particles@2.5.0) (2022-11-02)
93
-
94
- **Note:** Version bump only for package riot-particles
95
-
96
- # [2.4.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.3.3...riot-particles@2.4.0) (2022-10-30)
97
-
98
- **Note:** Version bump only for package riot-particles
99
-
100
- ## [2.3.3](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.3.2...riot-particles@2.3.3) (2022-09-30)
101
-
102
- **Note:** Version bump only for package riot-particles
103
-
104
- ## [2.3.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.3.1...riot-particles@2.3.2) (2022-09-21)
105
-
106
- **Note:** Version bump only for package riot-particles
107
-
108
- ## [2.3.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.3.0...riot-particles@2.3.1) (2022-09-13)
109
-
110
- **Note:** Version bump only for package riot-particles
111
-
112
- # [2.3.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.2.4...riot-particles@2.3.0) (2022-09-11)
113
-
114
- **Note:** Version bump only for package riot-particles
115
-
116
- ## [2.2.4](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.2.2...riot-particles@2.2.4) (2022-08-26)
117
-
118
- **Note:** Version bump only for package riot-particles
119
-
120
- ## [2.2.3](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.2.2...riot-particles@2.2.3) (2022-08-21)
121
-
122
- **Note:** Version bump only for package riot-particles
123
-
124
- ## [2.2.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.2.1...riot-particles@2.2.2) (2022-08-16)
125
-
126
- ### Bug Fixes
127
-
128
- - fixed double mouse events on mobile using pointer events, closes [#4622](https://github.com/matteobruni/tsparticles/issues/4622) ([1019fa4](https://github.com/matteobruni/tsparticles/commit/1019fa431f8a43cbd45d6adeb5adf94433e6e04b))
129
-
130
- ## [2.2.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.2.0...riot-particles@2.2.1) (2022-08-12)
131
-
132
- **Note:** Version bump only for package riot-particles
133
-
134
- # [2.2.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.1.4...riot-particles@2.2.0) (2022-08-11)
135
-
136
- ### Bug Fixes
137
-
138
- - **deps:** update dependency riot to v7 ([116fa3f](https://github.com/matteobruni/tsparticles/commit/116fa3f0808bb8e1e3df767513ebcb82c2f9e0e5))
139
-
140
- ## [2.1.4](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.1.3...riot-particles@2.1.4) (2022-07-28)
141
-
142
- **Note:** Version bump only for package riot-particles
143
-
144
- ## [2.1.3](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.1.2...riot-particles@2.1.3) (2022-07-01)
145
-
146
- **Note:** Version bump only for package riot-particles
147
-
148
- ## [2.1.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.1.1...riot-particles@2.1.2) (2022-07-01)
149
-
150
- **Note:** Version bump only for package riot-particles
151
-
152
- ## [2.1.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.1.0...riot-particles@2.1.1) (2022-07-01)
153
-
154
- **Note:** Version bump only for package riot-particles
155
-
156
- # [2.1.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.0.6...riot-particles@2.1.0) (2022-06-18)
157
-
158
- **Note:** Version bump only for package riot-particles
159
-
160
- ## [2.0.6](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.0.5...riot-particles@2.0.6) (2022-04-16)
161
-
162
- **Note:** Version bump only for package riot-particles
163
-
164
- ## [2.0.5](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.0.4...riot-particles@2.0.5) (2022-04-14)
165
-
166
- **Note:** Version bump only for package riot-particles
167
-
168
- ## [2.0.4](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.43.1...riot-particles@2.0.4) (2022-04-06)
169
-
170
- ### Bug Fixes
171
-
172
- - **deps:** update angular monorepo to ~13.2.0 ([fa858b8](https://github.com/matteobruni/tsparticles/commit/fa858b8bad73331485a63d2a31124369c8cb8168))
173
- - fixed some components init functions, they must be async ([0541dfa](https://github.com/matteobruni/tsparticles/commit/0541dfa82fb04264e2cd01ffd25e458b72847fdb))
174
-
175
- ### Features
176
-
177
- - splitting engine from slim and full bundles (v2) ([268b78c](https://github.com/matteobruni/tsparticles/commit/268b78c12d6c54069893d27643cfe7a30f3be777))
178
-
179
- ## [2.0.3](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.42.1...riot-particles@2.0.3) (2022-03-11)
180
-
181
- ### Bug Fixes
182
-
183
- - **deps:** update angular monorepo to ~13.2.0 ([fa858b8](https://github.com/matteobruni/tsparticles/commit/fa858b8bad73331485a63d2a31124369c8cb8168))
184
- - fixed some components init functions, they must be async ([0541dfa](https://github.com/matteobruni/tsparticles/commit/0541dfa82fb04264e2cd01ffd25e458b72847fdb))
185
-
186
- ### Features
187
-
188
- - splitting engine from slim and full bundles (v2) ([268b78c](https://github.com/matteobruni/tsparticles/commit/268b78c12d6c54069893d27643cfe7a30f3be777))
189
-
190
- ## [2.0.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.41.4...riot-particles@2.0.2) (2022-02-21)
191
-
192
- ### Bug Fixes
193
-
194
- - **deps:** update angular monorepo to ~13.2.0 ([fa858b8](https://github.com/matteobruni/tsparticles/commit/fa858b8bad73331485a63d2a31124369c8cb8168))
195
- - fixed some components init functions, they must be async ([0541dfa](https://github.com/matteobruni/tsparticles/commit/0541dfa82fb04264e2cd01ffd25e458b72847fdb))
196
-
197
- ### Features
198
-
199
- - splitting engine from slim and full bundles (v2) ([268b78c](https://github.com/matteobruni/tsparticles/commit/268b78c12d6c54069893d27643cfe7a30f3be777))
200
-
201
- ## [1.43.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.43.0...riot-particles@1.43.1) (2022-04-06)
202
-
203
- **Note:** Version bump only for package riot-particles
204
-
205
- # [1.43.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.42.4...riot-particles@1.43.0) (2022-04-04)
206
-
207
- **Note:** Version bump only for package riot-particles
208
-
209
- ## [1.42.4](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.42.3...riot-particles@1.42.4) (2022-03-20)
210
-
211
- **Note:** Version bump only for package riot-particles
212
-
213
- ## [1.42.3](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.42.2...riot-particles@1.42.3) (2022-03-18)
214
-
215
- **Note:** Version bump only for package riot-particles
216
-
217
- ## [1.42.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.42.1...riot-particles@1.42.2) (2022-03-14)
218
-
219
- **Note:** Version bump only for package riot-particles
220
-
221
- ## [1.42.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.42.0...riot-particles@1.42.1) (2022-03-09)
222
-
223
- **Note:** Version bump only for package riot-particles
224
-
225
- # [1.42.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.41.6...riot-particles@1.42.0) (2022-03-08)
226
-
227
- **Note:** Version bump only for package riot-particles
228
-
229
- ## [2.0.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.0.0...riot-particles@2.0.1) (2022-02-15)
230
-
231
- ## [1.41.6](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.41.5...riot-particles@1.41.6) (2022-03-03)
232
-
233
- **Note:** Version bump only for package riot-particles
234
-
235
- ## [1.41.5](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.41.4...riot-particles@1.41.5) (2022-02-24)
236
-
237
- **Note:** Version bump only for package riot-particles
238
-
239
- ## [1.41.4](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.41.3...riot-particles@1.41.4) (2022-02-20)
240
-
241
- **Note:** Version bump only for package riot-particles
242
-
243
- ## [1.41.3](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.41.2...riot-particles@1.41.3) (2022-02-19)
244
-
245
- **Note:** Version bump only for package riot-particles
246
-
247
- ## [1.41.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.41.1...riot-particles@1.41.2) (2022-02-16)
248
-
249
- **Note:** Version bump only for package riot-particles
250
-
251
- # [2.0.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.41.1...riot-particles@2.0.0) (2022-02-15)
252
-
253
- ### Bug Fixes
254
-
255
- - **deps:** update angular monorepo to ~13.2.0 ([fa858b8](https://github.com/matteobruni/tsparticles/commit/fa858b8bad73331485a63d2a31124369c8cb8168))
256
- - fixed some components init functions, they must be async ([0541dfa](https://github.com/matteobruni/tsparticles/commit/0541dfa82fb04264e2cd01ffd25e458b72847fdb))
257
-
258
- ### Features
259
-
260
- - splitting engine from slim and full bundles (v2) ([268b78c](https://github.com/matteobruni/tsparticles/commit/268b78c12d6c54069893d27643cfe7a30f3be777))
261
-
262
- # [2.0.0-beta.4](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.13.2...riot-particles@2.0.0-beta.4) (2022-01-30)
263
-
264
- ### Bug Fixes
265
-
266
- - **deps:** update angular monorepo to ~13.2.0 ([fa858b8](https://github.com/matteobruni/tsparticles/commit/fa858b8bad73331485a63d2a31124369c8cb8168))
267
-
268
- ### Features
269
-
270
- - splitting engine from slim and full bundles (v2) ([268b78c](https://github.com/matteobruni/tsparticles/commit/268b78c12d6c54069893d27643cfe7a30f3be777))
271
-
272
- ## [1.41.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.41.0...riot-particles@1.41.1) (2022-02-14)
273
-
274
- **Note:** Version bump only for package riot-particles
275
-
276
- # [1.41.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.40.2...riot-particles@1.41.0) (2022-02-10)
277
-
278
- **Note:** Version bump only for package riot-particles
279
-
280
- ## [1.40.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.40.1...riot-particles@1.40.2) (2022-02-07)
281
-
282
- **Note:** Version bump only for package riot-particles
283
-
284
- ## [1.40.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.40.0...riot-particles@1.40.1) (2022-02-06)
285
-
286
- **Note:** Version bump only for package riot-particles
287
-
288
- # [1.40.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.13.3...riot-particles@1.40.0) (2022-02-04)
289
-
290
- **Note:** Version bump only for package riot-particles
291
-
292
- # [2.0.0-beta.3](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.0.0-beta.2...riot-particles@2.0.0-beta.3) (2021-12-07)
293
-
294
- ## [1.13.3](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.13.2...riot-particles@1.13.3) (2022-02-02)
295
-
296
- **Note:** Version bump only for package riot-particles
297
-
298
- ## [1.13.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.13.1...riot-particles@1.13.2) (2022-01-29)
299
-
300
- **Note:** Version bump only for package riot-particles
301
-
302
- ## [1.13.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.13.0...riot-particles@1.13.1) (2022-01-26)
303
-
304
- **Note:** Version bump only for package riot-particles
305
-
306
- # [1.13.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.12.0...riot-particles@1.13.0) (2022-01-08)
307
-
308
- **Note:** Version bump only for package riot-particles
309
-
310
- # [1.12.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.11.6...riot-particles@1.12.0) (2021-12-29)
311
-
312
- **Note:** Version bump only for package riot-particles
313
-
314
- ## [1.11.6](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.11.5...riot-particles@1.11.6) (2021-12-24)
315
-
316
- **Note:** Version bump only for package riot-particles
317
-
318
- # [2.0.0-beta.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.11.5...riot-particles@2.0.0-beta.2) (2021-12-04)
319
-
320
- ### Features
321
-
322
- - splitting engine from slim and full bundles (v2) ([268b78c](https://github.com/matteobruni/tsparticles/commit/268b78c12d6c54069893d27643cfe7a30f3be777))
323
-
324
- # [2.0.0-beta.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.9.4...riot-particles@2.0.0-beta.1) (2021-10-06)
325
-
326
- ### Features
327
-
328
- - splitting engine from slim and full bundles (v2) ([268b78c](https://github.com/matteobruni/tsparticles/commit/268b78c12d6c54069893d27643cfe7a30f3be777))
329
-
330
- # [2.0.0-beta.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.9.3...riot-particles@2.0.0-beta.0) (2021-10-06)
331
-
332
- ### Features
333
-
334
- - splitting engine from slim and full bundles (v2) ([268b78c](https://github.com/matteobruni/tsparticles/commit/268b78c12d6c54069893d27643cfe7a30f3be777))
335
-
336
- ## [1.11.5](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.11.4...riot-particles@1.11.5) (2021-11-28)
337
-
338
- **Note:** Version bump only for package riot-particles
339
-
340
- ## [1.11.4](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.11.3...riot-particles@1.11.4) (2021-11-17)
341
-
342
- **Note:** Version bump only for package riot-particles
343
-
344
- ## [1.11.3](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.11.2...riot-particles@1.11.3) (2021-11-05)
345
-
346
- **Note:** Version bump only for package riot-particles
347
-
348
- ## [1.11.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.11.1...riot-particles@1.11.2) (2021-10-31)
349
-
350
- **Note:** Version bump only for package riot-particles
351
-
352
- ## [1.11.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.11.0...riot-particles@1.11.1) (2021-10-30)
353
-
354
- **Note:** Version bump only for package riot-particles
355
-
356
- # [1.11.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.10.0...riot-particles@1.11.0) (2021-10-28)
357
-
358
- **Note:** Version bump only for package riot-particles
359
-
360
- # [1.10.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.9.4...riot-particles@1.10.0) (2021-10-14)
361
-
362
- **Note:** Version bump only for package riot-particles
363
-
364
- ## [1.9.4](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.9.3...riot-particles@1.9.4) (2021-10-06)
365
-
366
- **Note:** Version bump only for package riot-particles
367
-
368
- ## [1.9.3](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.9.2...riot-particles@1.9.3) (2021-10-03)
369
-
370
- **Note:** Version bump only for package riot-particles
371
-
372
- ## [1.9.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.9.1...riot-particles@1.9.2) (2021-09-27)
373
-
374
- **Note:** Version bump only for package riot-particles
375
-
376
- ## [1.9.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.9.0...riot-particles@1.9.1) (2021-09-20)
377
-
378
- **Note:** Version bump only for package riot-particles
379
-
380
- # [1.9.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.8.1...riot-particles@1.9.0) (2021-09-18)
381
-
382
- **Note:** Version bump only for package riot-particles
383
-
384
- ## [1.8.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.8.0...riot-particles@1.8.1) (2021-09-15)
385
-
386
- **Note:** Version bump only for package riot-particles
387
-
388
- # [1.8.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.7.3...riot-particles@1.8.0) (2021-08-23)
389
-
390
- ### Bug Fixes
391
-
392
- - **deps:** pin dependencies ([23be870](https://github.com/matteobruni/tsparticles/commit/23be8708d698e1e37a18f2ed292cbccffb0f1e47))
393
-
394
- ### Features
395
-
396
- - improved move path generators ([9b67377](https://github.com/matteobruni/tsparticles/commit/9b67377f9208a005b122e312ad4ad3c95a50deb7))
397
-
398
- ## [1.7.3](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.7.2...riot-particles@1.7.3) (2021-08-10)
399
-
400
- ### Features
401
-
402
- - added new methods to particle class ([5743453](https://github.com/matteobruni/tsparticles/commit/5743453906001569f262888aa54539ad4e1463ac))
403
-
404
- ## [1.7.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.7.1...riot-particles@1.7.2) (2021-07-31)
405
-
406
- **Note:** Version bump only for package riot-particles
407
-
408
- ## [1.7.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.7.0...riot-particles@1.7.1) (2021-07-29)
409
-
410
- **Note:** Version bump only for package riot-particles
411
-
412
- # [1.7.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.6.0...riot-particles@1.7.0) (2021-07-29)
413
-
414
- **Note:** Version bump only for package riot-particles
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2020 Riot.js
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 DELETED
@@ -1,75 +0,0 @@
1
- [![banner](https://particles.js.org/images/banner3.png)](https://particles.js.org)
2
-
3
- # @tsparticles/riot
4
-
5
- [![npm](https://img.shields.io/npm/v/@tsparticles/riot)](https://www.npmjs.com/package/@tsparticles/riot) [![npm](https://img.shields.io/npm/dm/@tsparticles/riot)](https://www.npmjs.com/package/@tsparticles/riot) [![GitHub Sponsors](https://img.shields.io/github/sponsors/matteobruni)](https://github.com/sponsors/matteobruni)
6
-
7
- Official [tsParticles](https://github.com/tsparticles/tsparticles) Riot component.
8
-
9
- ## Installation
10
-
11
- ```shell
12
- npm install @tsparticles/riot
13
- ```
14
-
15
- or
16
-
17
- ```shell
18
- yarn add @tsparticles/riot
19
- ```
20
-
21
- ## Usage
22
-
23
- Initialize the engine once before mounting the component.
24
-
25
- ```html
26
- <script>
27
- import RiotParticles, { initParticlesEngine } from "@tsparticles/riot";
28
- import { loadSlim } from "@tsparticles/slim";
29
-
30
- void initParticlesEngine(async (engine) => {
31
- await loadSlim(engine);
32
- });
33
-
34
- export default {
35
- components: {
36
- RiotParticles,
37
- },
38
- };
39
- </script>
40
-
41
- <riot-particles
42
- id="tsparticles"
43
- options={{
44
- background: {
45
- color: {
46
- value: "#000",
47
- },
48
- },
49
- particles: {
50
- links: {
51
- enable: true,
52
- },
53
- move: {
54
- enable: true,
55
- },
56
- },
57
- }}
58
- particlesLoaded={(container) => console.log(container)}
59
- />
60
-
61
- <!-- or -->
62
-
63
- <riot-particles
64
- id="tsparticles"
65
- url="https://foo.bar/particles.json"
66
- particlesLoaded={(container) => console.log(container)}
67
- />
68
- ```
69
-
70
- `<riot-particles />` props:
71
-
72
- - `id`: container id
73
- - `options`: particles options object
74
- - `url`: remote JSON config URL
75
- - `particlesLoaded`: callback invoked with the loaded container
package/rollup.config.cjs DELETED
@@ -1,47 +0,0 @@
1
- const { compile } = require('@riotjs/compiler');
2
- const babel = require('@rollup/plugin-babel').babel || require('@rollup/plugin-babel');
3
-
4
- // Inline riot plugin to avoid peer-dependency resolution issues with rollup-plugin-riot
5
- const riotPlugin = () => ({
6
- name: 'riot',
7
- transform(code, id) {
8
- if (!id.endsWith('.riot')) return null;
9
- const { code: compiledCode, map } = compile(code, { file: id });
10
- return { code: compiledCode, map };
11
- }
12
- });
13
-
14
- const external = ['riot', '@tsparticles/engine'];
15
-
16
- const plugins = [
17
- riotPlugin(),
18
- babel({
19
- exclude: 'node_modules/**',
20
- inputSourceMap: true,
21
- babelHelpers: 'bundled',
22
- }),
23
- ];
24
-
25
- module.exports = [
26
- {
27
- input: 'src/riot-particles.riot',
28
- output: {
29
- file: 'dist/riot-particles.cjs',
30
- format: 'cjs',
31
- sourcemap: true,
32
- exports: 'named',
33
- },
34
- external,
35
- plugins,
36
- },
37
- {
38
- input: 'src/riot-particles.riot',
39
- output: {
40
- file: 'dist/riot-particles.esm.js',
41
- format: 'esm',
42
- sourcemap: true,
43
- },
44
- external,
45
- plugins,
46
- },
47
- ];
@@ -1,90 +0,0 @@
1
- <riot-particles>
2
- <script>
3
- import { tsParticles } from "@tsparticles/engine";
4
-
5
- let oldId;
6
- let initialized = false;
7
- let initPromise;
8
- let initCallback;
9
-
10
- export async function initParticlesEngine(
11
- cb,
12
- ) {
13
- if (initialized) {
14
- return;
15
- }
16
-
17
- if (initPromise) {
18
- if (initCallback !== cb) {
19
- throw new Error("initParticlesEngine callback must be stable across the app lifecycle.");
20
- }
21
-
22
- await initPromise;
23
-
24
- return;
25
- }
26
-
27
- initCallback = cb;
28
- initPromise = (async () => {
29
- if (cb) {
30
- await cb(tsParticles);
31
- }
32
-
33
- await tsParticles.init();
34
- initialized = true;
35
- })().catch((error) => {
36
- initPromise = undefined;
37
- initCallback = undefined;
38
- initialized = false;
39
-
40
- throw error;
41
- });
42
-
43
- await initPromise;
44
- }
45
-
46
- export function isParticlesEngineInitialized() {
47
- return initialized;
48
- }
49
-
50
- export async function waitForParticlesEngineInitialization() {
51
- await (initPromise ?? Promise.resolve());
52
- }
53
-
54
- export default {
55
- async onMounted(props) {
56
- await waitForParticlesEngineInitialization();
57
-
58
- if (!isParticlesEngineInitialized()) {
59
- throw new Error("initParticlesEngine(...) must be called once before mounting <riot-particles /> components.");
60
- }
61
-
62
- if (oldId) {
63
- const oldContainer = tsParticles.dom().find((c) => c.id === oldId);
64
-
65
- if (oldContainer) {
66
- oldContainer.destroy();
67
- }
68
- }
69
-
70
- if (props.id) {
71
- const cb = (container) => {
72
- if (props.particlesLoaded) {
73
- props.particlesLoaded(container);
74
- }
75
-
76
- oldId = props.id;
77
- };
78
-
79
- tsParticles.load({ id: props.id, options: props.options, url: props.url }).then(cb);
80
- } else {
81
- if (props.particlesLoaded) {
82
- props.particlesLoaded(undefined);
83
- }
84
- }
85
- }
86
- }
87
- </script>
88
- <div id="{props.id}"></div>
89
-
90
- </riot-particles>
package/test.js DELETED
@@ -1,18 +0,0 @@
1
- import RiotParticles from './'
2
- import { expect } from 'chai'
3
- import { component } from 'riot'
4
-
5
- describe('My Component Unit Test', () => {
6
- const mountMyComponent = component(RiotParticles)
7
-
8
- it('The component properties are properly rendered', () => {
9
- const div = document.createElement('div')
10
-
11
- const component = mountMyComponent(div, {
12
- id: "tsparticles",
13
- options: {}
14
- })
15
-
16
- expect(component.$('div').id).to.be.equal('tsparticles');
17
- })
18
- })
package/typedoc.json DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "projectDocuments": ["./markdown/*.md"],
3
- "entryPoints": [
4
- "./src/"
5
- ],
6
- "entryPointStrategy": "expand",
7
- "name": "tsParticles Angular Component",
8
- "includeVersion": true,
9
- "hideGenerator": true,
10
- "out": "./docs",
11
- "validation": {
12
- "invalidLink": true,
13
- "notDocumented": true
14
- }
15
- }
File without changes