@tsparticles/riot 4.0.0-beta.12
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/CHANGELOG.md +382 -0
- package/LICENSE +21 -0
- package/README.md +75 -0
- package/package.json +118 -0
- package/src/riot-particles.riot +90 -0
- package/test.js +18 -0
- package/typedoc.json +15 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,382 @@
|
|
|
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.0-beta.12](https://github.com/tsparticles/tsparticles/compare/v4.0.0-beta.11...v4.0.0-beta.12) (2026-04-15)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- improving other wrappers to make them similar to React, Vue and Angular ones ([4dccf8e](https://github.com/tsparticles/tsparticles/commit/4dccf8eb0fe4ac29f8240673c77e0701cdbd15b1))
|
|
11
|
+
- improving other wrappers to make them similar to React, Vue and Angular ones ([e0c9230](https://github.com/tsparticles/tsparticles/commit/e0c9230b751d3a86b8f4eccf10b3660a0a7ddb91))
|
|
12
|
+
- improving other wrappers to make them similar to React, Vue and Angular ones ([981e896](https://github.com/tsparticles/tsparticles/commit/981e896329951c6cdebfeba2406a68278c373996))
|
|
13
|
+
|
|
14
|
+
## [2.9.3](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.9.2...riot-particles@2.9.3) (2023-02-12)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package riot-particles
|
|
17
|
+
|
|
18
|
+
## [2.9.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.9.1...riot-particles@2.9.2) (2023-02-12)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package riot-particles
|
|
21
|
+
|
|
22
|
+
## [2.9.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.9.0...riot-particles@2.9.1) (2023-02-11)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package riot-particles
|
|
25
|
+
|
|
26
|
+
# [2.9.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.8.0...riot-particles@2.9.0) (2023-02-10)
|
|
27
|
+
|
|
28
|
+
**Note:** Version bump only for package riot-particles
|
|
29
|
+
|
|
30
|
+
# [2.8.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.7.1...riot-particles@2.8.0) (2023-01-18)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package riot-particles
|
|
33
|
+
|
|
34
|
+
## [2.7.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.7.0...riot-particles@2.7.1) (2022-12-25)
|
|
35
|
+
|
|
36
|
+
**Note:** Version bump only for package riot-particles
|
|
37
|
+
|
|
38
|
+
# [2.7.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.6.0...riot-particles@2.7.0) (2022-12-23)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package riot-particles
|
|
41
|
+
|
|
42
|
+
# [2.6.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.5.3...riot-particles@2.6.0) (2022-12-06)
|
|
43
|
+
|
|
44
|
+
### Features
|
|
45
|
+
|
|
46
|
+
- added localization support to wordpress plugin, fixes [#4807](https://github.com/matteobruni/tsparticles/issues/4807) ([8a93b8a](https://github.com/matteobruni/tsparticles/commit/8a93b8a3d6a1327903c745d7a3b04cb41e5249c8))
|
|
47
|
+
|
|
48
|
+
## [2.5.3](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.5.2...riot-particles@2.5.3) (2022-11-07)
|
|
49
|
+
|
|
50
|
+
**Note:** Version bump only for package riot-particles
|
|
51
|
+
|
|
52
|
+
## [2.5.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.5.1...riot-particles@2.5.2) (2022-11-07)
|
|
53
|
+
|
|
54
|
+
**Note:** Version bump only for package riot-particles
|
|
55
|
+
|
|
56
|
+
## [2.5.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.5.0...riot-particles@2.5.1) (2022-11-03)
|
|
57
|
+
|
|
58
|
+
**Note:** Version bump only for package riot-particles
|
|
59
|
+
|
|
60
|
+
# [2.5.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.4.0...riot-particles@2.5.0) (2022-11-02)
|
|
61
|
+
|
|
62
|
+
**Note:** Version bump only for package riot-particles
|
|
63
|
+
|
|
64
|
+
# [2.4.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.3.3...riot-particles@2.4.0) (2022-10-30)
|
|
65
|
+
|
|
66
|
+
**Note:** Version bump only for package riot-particles
|
|
67
|
+
|
|
68
|
+
## [2.3.3](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.3.2...riot-particles@2.3.3) (2022-09-30)
|
|
69
|
+
|
|
70
|
+
**Note:** Version bump only for package riot-particles
|
|
71
|
+
|
|
72
|
+
## [2.3.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.3.1...riot-particles@2.3.2) (2022-09-21)
|
|
73
|
+
|
|
74
|
+
**Note:** Version bump only for package riot-particles
|
|
75
|
+
|
|
76
|
+
## [2.3.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.3.0...riot-particles@2.3.1) (2022-09-13)
|
|
77
|
+
|
|
78
|
+
**Note:** Version bump only for package riot-particles
|
|
79
|
+
|
|
80
|
+
# [2.3.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.2.4...riot-particles@2.3.0) (2022-09-11)
|
|
81
|
+
|
|
82
|
+
**Note:** Version bump only for package riot-particles
|
|
83
|
+
|
|
84
|
+
## [2.2.4](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.2.2...riot-particles@2.2.4) (2022-08-26)
|
|
85
|
+
|
|
86
|
+
**Note:** Version bump only for package riot-particles
|
|
87
|
+
|
|
88
|
+
## [2.2.3](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.2.2...riot-particles@2.2.3) (2022-08-21)
|
|
89
|
+
|
|
90
|
+
**Note:** Version bump only for package riot-particles
|
|
91
|
+
|
|
92
|
+
## [2.2.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.2.1...riot-particles@2.2.2) (2022-08-16)
|
|
93
|
+
|
|
94
|
+
### Bug Fixes
|
|
95
|
+
|
|
96
|
+
- 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))
|
|
97
|
+
|
|
98
|
+
## [2.2.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.2.0...riot-particles@2.2.1) (2022-08-12)
|
|
99
|
+
|
|
100
|
+
**Note:** Version bump only for package riot-particles
|
|
101
|
+
|
|
102
|
+
# [2.2.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.1.4...riot-particles@2.2.0) (2022-08-11)
|
|
103
|
+
|
|
104
|
+
### Bug Fixes
|
|
105
|
+
|
|
106
|
+
- **deps:** update dependency riot to v7 ([116fa3f](https://github.com/matteobruni/tsparticles/commit/116fa3f0808bb8e1e3df767513ebcb82c2f9e0e5))
|
|
107
|
+
|
|
108
|
+
## [2.1.4](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.1.3...riot-particles@2.1.4) (2022-07-28)
|
|
109
|
+
|
|
110
|
+
**Note:** Version bump only for package riot-particles
|
|
111
|
+
|
|
112
|
+
## [2.1.3](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.1.2...riot-particles@2.1.3) (2022-07-01)
|
|
113
|
+
|
|
114
|
+
**Note:** Version bump only for package riot-particles
|
|
115
|
+
|
|
116
|
+
## [2.1.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.1.1...riot-particles@2.1.2) (2022-07-01)
|
|
117
|
+
|
|
118
|
+
**Note:** Version bump only for package riot-particles
|
|
119
|
+
|
|
120
|
+
## [2.1.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.1.0...riot-particles@2.1.1) (2022-07-01)
|
|
121
|
+
|
|
122
|
+
**Note:** Version bump only for package riot-particles
|
|
123
|
+
|
|
124
|
+
# [2.1.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.0.6...riot-particles@2.1.0) (2022-06-18)
|
|
125
|
+
|
|
126
|
+
**Note:** Version bump only for package riot-particles
|
|
127
|
+
|
|
128
|
+
## [2.0.6](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.0.5...riot-particles@2.0.6) (2022-04-16)
|
|
129
|
+
|
|
130
|
+
**Note:** Version bump only for package riot-particles
|
|
131
|
+
|
|
132
|
+
## [2.0.5](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.0.4...riot-particles@2.0.5) (2022-04-14)
|
|
133
|
+
|
|
134
|
+
**Note:** Version bump only for package riot-particles
|
|
135
|
+
|
|
136
|
+
## [2.0.4](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.43.1...riot-particles@2.0.4) (2022-04-06)
|
|
137
|
+
|
|
138
|
+
### Bug Fixes
|
|
139
|
+
|
|
140
|
+
- **deps:** update angular monorepo to ~13.2.0 ([fa858b8](https://github.com/matteobruni/tsparticles/commit/fa858b8bad73331485a63d2a31124369c8cb8168))
|
|
141
|
+
- fixed some components init functions, they must be async ([0541dfa](https://github.com/matteobruni/tsparticles/commit/0541dfa82fb04264e2cd01ffd25e458b72847fdb))
|
|
142
|
+
|
|
143
|
+
### Features
|
|
144
|
+
|
|
145
|
+
- splitting engine from slim and full bundles (v2) ([268b78c](https://github.com/matteobruni/tsparticles/commit/268b78c12d6c54069893d27643cfe7a30f3be777))
|
|
146
|
+
|
|
147
|
+
## [2.0.3](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.42.1...riot-particles@2.0.3) (2022-03-11)
|
|
148
|
+
|
|
149
|
+
### Bug Fixes
|
|
150
|
+
|
|
151
|
+
- **deps:** update angular monorepo to ~13.2.0 ([fa858b8](https://github.com/matteobruni/tsparticles/commit/fa858b8bad73331485a63d2a31124369c8cb8168))
|
|
152
|
+
- fixed some components init functions, they must be async ([0541dfa](https://github.com/matteobruni/tsparticles/commit/0541dfa82fb04264e2cd01ffd25e458b72847fdb))
|
|
153
|
+
|
|
154
|
+
### Features
|
|
155
|
+
|
|
156
|
+
- splitting engine from slim and full bundles (v2) ([268b78c](https://github.com/matteobruni/tsparticles/commit/268b78c12d6c54069893d27643cfe7a30f3be777))
|
|
157
|
+
|
|
158
|
+
## [2.0.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.41.4...riot-particles@2.0.2) (2022-02-21)
|
|
159
|
+
|
|
160
|
+
### Bug Fixes
|
|
161
|
+
|
|
162
|
+
- **deps:** update angular monorepo to ~13.2.0 ([fa858b8](https://github.com/matteobruni/tsparticles/commit/fa858b8bad73331485a63d2a31124369c8cb8168))
|
|
163
|
+
- fixed some components init functions, they must be async ([0541dfa](https://github.com/matteobruni/tsparticles/commit/0541dfa82fb04264e2cd01ffd25e458b72847fdb))
|
|
164
|
+
|
|
165
|
+
### Features
|
|
166
|
+
|
|
167
|
+
- splitting engine from slim and full bundles (v2) ([268b78c](https://github.com/matteobruni/tsparticles/commit/268b78c12d6c54069893d27643cfe7a30f3be777))
|
|
168
|
+
|
|
169
|
+
## [1.43.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.43.0...riot-particles@1.43.1) (2022-04-06)
|
|
170
|
+
|
|
171
|
+
**Note:** Version bump only for package riot-particles
|
|
172
|
+
|
|
173
|
+
# [1.43.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.42.4...riot-particles@1.43.0) (2022-04-04)
|
|
174
|
+
|
|
175
|
+
**Note:** Version bump only for package riot-particles
|
|
176
|
+
|
|
177
|
+
## [1.42.4](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.42.3...riot-particles@1.42.4) (2022-03-20)
|
|
178
|
+
|
|
179
|
+
**Note:** Version bump only for package riot-particles
|
|
180
|
+
|
|
181
|
+
## [1.42.3](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.42.2...riot-particles@1.42.3) (2022-03-18)
|
|
182
|
+
|
|
183
|
+
**Note:** Version bump only for package riot-particles
|
|
184
|
+
|
|
185
|
+
## [1.42.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.42.1...riot-particles@1.42.2) (2022-03-14)
|
|
186
|
+
|
|
187
|
+
**Note:** Version bump only for package riot-particles
|
|
188
|
+
|
|
189
|
+
## [1.42.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.42.0...riot-particles@1.42.1) (2022-03-09)
|
|
190
|
+
|
|
191
|
+
**Note:** Version bump only for package riot-particles
|
|
192
|
+
|
|
193
|
+
# [1.42.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.41.6...riot-particles@1.42.0) (2022-03-08)
|
|
194
|
+
|
|
195
|
+
**Note:** Version bump only for package riot-particles
|
|
196
|
+
|
|
197
|
+
## [2.0.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@2.0.0...riot-particles@2.0.1) (2022-02-15)
|
|
198
|
+
|
|
199
|
+
## [1.41.6](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.41.5...riot-particles@1.41.6) (2022-03-03)
|
|
200
|
+
|
|
201
|
+
**Note:** Version bump only for package riot-particles
|
|
202
|
+
|
|
203
|
+
## [1.41.5](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.41.4...riot-particles@1.41.5) (2022-02-24)
|
|
204
|
+
|
|
205
|
+
**Note:** Version bump only for package riot-particles
|
|
206
|
+
|
|
207
|
+
## [1.41.4](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.41.3...riot-particles@1.41.4) (2022-02-20)
|
|
208
|
+
|
|
209
|
+
**Note:** Version bump only for package riot-particles
|
|
210
|
+
|
|
211
|
+
## [1.41.3](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.41.2...riot-particles@1.41.3) (2022-02-19)
|
|
212
|
+
|
|
213
|
+
**Note:** Version bump only for package riot-particles
|
|
214
|
+
|
|
215
|
+
## [1.41.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.41.1...riot-particles@1.41.2) (2022-02-16)
|
|
216
|
+
|
|
217
|
+
**Note:** Version bump only for package riot-particles
|
|
218
|
+
|
|
219
|
+
# [2.0.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.41.1...riot-particles@2.0.0) (2022-02-15)
|
|
220
|
+
|
|
221
|
+
### Bug Fixes
|
|
222
|
+
|
|
223
|
+
- **deps:** update angular monorepo to ~13.2.0 ([fa858b8](https://github.com/matteobruni/tsparticles/commit/fa858b8bad73331485a63d2a31124369c8cb8168))
|
|
224
|
+
- fixed some components init functions, they must be async ([0541dfa](https://github.com/matteobruni/tsparticles/commit/0541dfa82fb04264e2cd01ffd25e458b72847fdb))
|
|
225
|
+
|
|
226
|
+
### Features
|
|
227
|
+
|
|
228
|
+
- splitting engine from slim and full bundles (v2) ([268b78c](https://github.com/matteobruni/tsparticles/commit/268b78c12d6c54069893d27643cfe7a30f3be777))
|
|
229
|
+
|
|
230
|
+
# [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)
|
|
231
|
+
|
|
232
|
+
### Bug Fixes
|
|
233
|
+
|
|
234
|
+
- **deps:** update angular monorepo to ~13.2.0 ([fa858b8](https://github.com/matteobruni/tsparticles/commit/fa858b8bad73331485a63d2a31124369c8cb8168))
|
|
235
|
+
|
|
236
|
+
### Features
|
|
237
|
+
|
|
238
|
+
- splitting engine from slim and full bundles (v2) ([268b78c](https://github.com/matteobruni/tsparticles/commit/268b78c12d6c54069893d27643cfe7a30f3be777))
|
|
239
|
+
|
|
240
|
+
## [1.41.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.41.0...riot-particles@1.41.1) (2022-02-14)
|
|
241
|
+
|
|
242
|
+
**Note:** Version bump only for package riot-particles
|
|
243
|
+
|
|
244
|
+
# [1.41.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.40.2...riot-particles@1.41.0) (2022-02-10)
|
|
245
|
+
|
|
246
|
+
**Note:** Version bump only for package riot-particles
|
|
247
|
+
|
|
248
|
+
## [1.40.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.40.1...riot-particles@1.40.2) (2022-02-07)
|
|
249
|
+
|
|
250
|
+
**Note:** Version bump only for package riot-particles
|
|
251
|
+
|
|
252
|
+
## [1.40.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.40.0...riot-particles@1.40.1) (2022-02-06)
|
|
253
|
+
|
|
254
|
+
**Note:** Version bump only for package riot-particles
|
|
255
|
+
|
|
256
|
+
# [1.40.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.13.3...riot-particles@1.40.0) (2022-02-04)
|
|
257
|
+
|
|
258
|
+
**Note:** Version bump only for package riot-particles
|
|
259
|
+
|
|
260
|
+
# [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)
|
|
261
|
+
|
|
262
|
+
## [1.13.3](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.13.2...riot-particles@1.13.3) (2022-02-02)
|
|
263
|
+
|
|
264
|
+
**Note:** Version bump only for package riot-particles
|
|
265
|
+
|
|
266
|
+
## [1.13.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.13.1...riot-particles@1.13.2) (2022-01-29)
|
|
267
|
+
|
|
268
|
+
**Note:** Version bump only for package riot-particles
|
|
269
|
+
|
|
270
|
+
## [1.13.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.13.0...riot-particles@1.13.1) (2022-01-26)
|
|
271
|
+
|
|
272
|
+
**Note:** Version bump only for package riot-particles
|
|
273
|
+
|
|
274
|
+
# [1.13.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.12.0...riot-particles@1.13.0) (2022-01-08)
|
|
275
|
+
|
|
276
|
+
**Note:** Version bump only for package riot-particles
|
|
277
|
+
|
|
278
|
+
# [1.12.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.11.6...riot-particles@1.12.0) (2021-12-29)
|
|
279
|
+
|
|
280
|
+
**Note:** Version bump only for package riot-particles
|
|
281
|
+
|
|
282
|
+
## [1.11.6](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.11.5...riot-particles@1.11.6) (2021-12-24)
|
|
283
|
+
|
|
284
|
+
**Note:** Version bump only for package riot-particles
|
|
285
|
+
|
|
286
|
+
# [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)
|
|
287
|
+
|
|
288
|
+
### Features
|
|
289
|
+
|
|
290
|
+
- splitting engine from slim and full bundles (v2) ([268b78c](https://github.com/matteobruni/tsparticles/commit/268b78c12d6c54069893d27643cfe7a30f3be777))
|
|
291
|
+
|
|
292
|
+
# [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)
|
|
293
|
+
|
|
294
|
+
### Features
|
|
295
|
+
|
|
296
|
+
- splitting engine from slim and full bundles (v2) ([268b78c](https://github.com/matteobruni/tsparticles/commit/268b78c12d6c54069893d27643cfe7a30f3be777))
|
|
297
|
+
|
|
298
|
+
# [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)
|
|
299
|
+
|
|
300
|
+
### Features
|
|
301
|
+
|
|
302
|
+
- splitting engine from slim and full bundles (v2) ([268b78c](https://github.com/matteobruni/tsparticles/commit/268b78c12d6c54069893d27643cfe7a30f3be777))
|
|
303
|
+
|
|
304
|
+
## [1.11.5](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.11.4...riot-particles@1.11.5) (2021-11-28)
|
|
305
|
+
|
|
306
|
+
**Note:** Version bump only for package riot-particles
|
|
307
|
+
|
|
308
|
+
## [1.11.4](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.11.3...riot-particles@1.11.4) (2021-11-17)
|
|
309
|
+
|
|
310
|
+
**Note:** Version bump only for package riot-particles
|
|
311
|
+
|
|
312
|
+
## [1.11.3](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.11.2...riot-particles@1.11.3) (2021-11-05)
|
|
313
|
+
|
|
314
|
+
**Note:** Version bump only for package riot-particles
|
|
315
|
+
|
|
316
|
+
## [1.11.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.11.1...riot-particles@1.11.2) (2021-10-31)
|
|
317
|
+
|
|
318
|
+
**Note:** Version bump only for package riot-particles
|
|
319
|
+
|
|
320
|
+
## [1.11.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.11.0...riot-particles@1.11.1) (2021-10-30)
|
|
321
|
+
|
|
322
|
+
**Note:** Version bump only for package riot-particles
|
|
323
|
+
|
|
324
|
+
# [1.11.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.10.0...riot-particles@1.11.0) (2021-10-28)
|
|
325
|
+
|
|
326
|
+
**Note:** Version bump only for package riot-particles
|
|
327
|
+
|
|
328
|
+
# [1.10.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.9.4...riot-particles@1.10.0) (2021-10-14)
|
|
329
|
+
|
|
330
|
+
**Note:** Version bump only for package riot-particles
|
|
331
|
+
|
|
332
|
+
## [1.9.4](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.9.3...riot-particles@1.9.4) (2021-10-06)
|
|
333
|
+
|
|
334
|
+
**Note:** Version bump only for package riot-particles
|
|
335
|
+
|
|
336
|
+
## [1.9.3](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.9.2...riot-particles@1.9.3) (2021-10-03)
|
|
337
|
+
|
|
338
|
+
**Note:** Version bump only for package riot-particles
|
|
339
|
+
|
|
340
|
+
## [1.9.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.9.1...riot-particles@1.9.2) (2021-09-27)
|
|
341
|
+
|
|
342
|
+
**Note:** Version bump only for package riot-particles
|
|
343
|
+
|
|
344
|
+
## [1.9.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.9.0...riot-particles@1.9.1) (2021-09-20)
|
|
345
|
+
|
|
346
|
+
**Note:** Version bump only for package riot-particles
|
|
347
|
+
|
|
348
|
+
# [1.9.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.8.1...riot-particles@1.9.0) (2021-09-18)
|
|
349
|
+
|
|
350
|
+
**Note:** Version bump only for package riot-particles
|
|
351
|
+
|
|
352
|
+
## [1.8.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.8.0...riot-particles@1.8.1) (2021-09-15)
|
|
353
|
+
|
|
354
|
+
**Note:** Version bump only for package riot-particles
|
|
355
|
+
|
|
356
|
+
# [1.8.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.7.3...riot-particles@1.8.0) (2021-08-23)
|
|
357
|
+
|
|
358
|
+
### Bug Fixes
|
|
359
|
+
|
|
360
|
+
- **deps:** pin dependencies ([23be870](https://github.com/matteobruni/tsparticles/commit/23be8708d698e1e37a18f2ed292cbccffb0f1e47))
|
|
361
|
+
|
|
362
|
+
### Features
|
|
363
|
+
|
|
364
|
+
- improved move path generators ([9b67377](https://github.com/matteobruni/tsparticles/commit/9b67377f9208a005b122e312ad4ad3c95a50deb7))
|
|
365
|
+
|
|
366
|
+
## [1.7.3](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.7.2...riot-particles@1.7.3) (2021-08-10)
|
|
367
|
+
|
|
368
|
+
### Features
|
|
369
|
+
|
|
370
|
+
- added new methods to particle class ([5743453](https://github.com/matteobruni/tsparticles/commit/5743453906001569f262888aa54539ad4e1463ac))
|
|
371
|
+
|
|
372
|
+
## [1.7.2](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.7.1...riot-particles@1.7.2) (2021-07-31)
|
|
373
|
+
|
|
374
|
+
**Note:** Version bump only for package riot-particles
|
|
375
|
+
|
|
376
|
+
## [1.7.1](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.7.0...riot-particles@1.7.1) (2021-07-29)
|
|
377
|
+
|
|
378
|
+
**Note:** Version bump only for package riot-particles
|
|
379
|
+
|
|
380
|
+
# [1.7.0](https://github.com/matteobruni/tsparticles/compare/riot-particles@1.6.0...riot-particles@1.7.0) (2021-07-29)
|
|
381
|
+
|
|
382
|
+
**Note:** Version bump only for package riot-particles
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
[](https://particles.js.org)
|
|
2
|
+
|
|
3
|
+
# @tsparticles/riot
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@tsparticles/riot) [](https://www.npmjs.com/package/@tsparticles/riot) [](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/package.json
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tsparticles/riot",
|
|
3
|
+
"version": "4.0.0-beta.12",
|
|
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.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "echo build",
|
|
8
|
+
"build:ci": "echo build",
|
|
9
|
+
"prettify:ci:src": "prettier --check ./src/*",
|
|
10
|
+
"prettify:ci:readme": "prettier --check ./README.md",
|
|
11
|
+
"prettify:src": "prettier --write ./src/*",
|
|
12
|
+
"prettify:readme": "prettier --write ./README.md",
|
|
13
|
+
"prepack": "pnpm run build"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/tsparticles/tsparticles.git",
|
|
18
|
+
"directory": "wrappers/riot"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"front-end",
|
|
22
|
+
"frontend",
|
|
23
|
+
"tsparticles",
|
|
24
|
+
"particles.js",
|
|
25
|
+
"particlesjs",
|
|
26
|
+
"particles",
|
|
27
|
+
"particle",
|
|
28
|
+
"canvas",
|
|
29
|
+
"jsparticles",
|
|
30
|
+
"xparticles",
|
|
31
|
+
"particles-js",
|
|
32
|
+
"particles-bg",
|
|
33
|
+
"particles-bg-vue",
|
|
34
|
+
"particles-ts",
|
|
35
|
+
"particles.ts",
|
|
36
|
+
"react-particles-js",
|
|
37
|
+
"react-particles.js",
|
|
38
|
+
"react-particles",
|
|
39
|
+
"react",
|
|
40
|
+
"reactjs",
|
|
41
|
+
"vue-particles",
|
|
42
|
+
"ngx-particles",
|
|
43
|
+
"angular-particles",
|
|
44
|
+
"particleground",
|
|
45
|
+
"vue",
|
|
46
|
+
"vuejs",
|
|
47
|
+
"preact",
|
|
48
|
+
"preactjs",
|
|
49
|
+
"jquery",
|
|
50
|
+
"angularjs",
|
|
51
|
+
"angular",
|
|
52
|
+
"typescript",
|
|
53
|
+
"javascript",
|
|
54
|
+
"animation",
|
|
55
|
+
"web",
|
|
56
|
+
"html5",
|
|
57
|
+
"web-design",
|
|
58
|
+
"webdesign",
|
|
59
|
+
"css",
|
|
60
|
+
"html",
|
|
61
|
+
"css3",
|
|
62
|
+
"animated",
|
|
63
|
+
"background",
|
|
64
|
+
"confetti",
|
|
65
|
+
"canvas",
|
|
66
|
+
"fireworks",
|
|
67
|
+
"fireworks-js",
|
|
68
|
+
"confetti-js",
|
|
69
|
+
"confettijs",
|
|
70
|
+
"fireworksjs",
|
|
71
|
+
"canvas-confetti"
|
|
72
|
+
],
|
|
73
|
+
"author": "Matteo Bruni <matteo.bruni@me.com>",
|
|
74
|
+
"license": "MIT",
|
|
75
|
+
"bugs": {
|
|
76
|
+
"url": "https://github.com/tsparticles/riot/issues"
|
|
77
|
+
},
|
|
78
|
+
"funding": [
|
|
79
|
+
{
|
|
80
|
+
"type": "github",
|
|
81
|
+
"url": "https://github.com/sponsors/matteobruni"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"type": "github",
|
|
85
|
+
"url": "https://github.com/sponsors/tsparticles"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"type": "buymeacoffee",
|
|
89
|
+
"url": "https://www.buymeacoffee.com/matteobruni"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"prettier": "@tsparticles/prettier-config",
|
|
93
|
+
"peerDependencies": {
|
|
94
|
+
"riot": "^9.1.2"
|
|
95
|
+
},
|
|
96
|
+
"dependencies": {
|
|
97
|
+
"@tsparticles/engine": "^4.0.0-beta.12"
|
|
98
|
+
},
|
|
99
|
+
"devDependencies": {
|
|
100
|
+
"@babel/core": "^7.29.0",
|
|
101
|
+
"@babel/preset-typescript": "^7.28.5",
|
|
102
|
+
"@riotjs/cli": "^10.0.0",
|
|
103
|
+
"@riotjs/compiler": "^10.0.1",
|
|
104
|
+
"@tsparticles/prettier-config": "^3.4.6",
|
|
105
|
+
"chai": "^6.2.2",
|
|
106
|
+
"esm": "^3.2.25",
|
|
107
|
+
"jsdom": "^29.0.2",
|
|
108
|
+
"jsdom-global": "^3.0.2",
|
|
109
|
+
"mocha": "^11.7.5",
|
|
110
|
+
"nyc": "^18.0.0",
|
|
111
|
+
"prettier": "^3.8.2",
|
|
112
|
+
"riot": "^10.1.3"
|
|
113
|
+
},
|
|
114
|
+
"publishConfig": {
|
|
115
|
+
"access": "public"
|
|
116
|
+
},
|
|
117
|
+
"gitHead": "ebd73f94ae2391c9068de098f2856e1efb26254c"
|
|
118
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"includes": "./markdown",
|
|
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
|
+
}
|