@onetype/framework 2.0.26 → 2.0.28

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.
Files changed (66) hide show
  1. package/addons/core/assets/back/functions/utils/transform.js +1 -1
  2. package/addons/render/directives/front/js/functions/process/data.js +0 -1
  3. package/addons/render/transforms/addon.js +2 -0
  4. package/addons/render/transforms/functions/data.js +21 -0
  5. package/addons/render/transforms/functions/run.js +11 -0
  6. package/addons/render/transforms/item/functions/load.js +55 -0
  7. package/addons/render/transforms/item/functions/run.js +12 -0
  8. package/addons/render/transforms/items/directives/transform.js +15 -18
  9. package/lib/items/elements/global/heading/heading.css +1 -1
  10. package/lib/items/elements/global/markdown/markdown.js +207 -3
  11. package/lib/items/elements/{sections → navigation}/navbar/navbar.css +9 -9
  12. package/lib/items/elements/{sections → navigation}/navbar/navbar.js +2 -2
  13. package/lib/items/elements/navigation/sidebar/sidebar.css +101 -0
  14. package/lib/items/elements/navigation/sidebar/sidebar.js +56 -0
  15. package/lib/items/elements/{global → navigation}/tabs/tabs.css +6 -6
  16. package/lib/items/elements/{global → navigation}/tabs/tabs.js +2 -2
  17. package/lib/items/elements/sections/pricing/pricing.css +148 -0
  18. package/lib/items/elements/sections/pricing/pricing.js +76 -0
  19. package/lib/items/transforms/accordion/accordion.js +139 -141
  20. package/lib/items/transforms/chart/area.js +130 -133
  21. package/lib/items/transforms/chart/bar.js +116 -119
  22. package/lib/items/transforms/chart/bubble.js +142 -145
  23. package/lib/items/transforms/chart/doughnut.js +104 -107
  24. package/lib/items/transforms/chart/line.js +127 -130
  25. package/lib/items/transforms/chart/pie.js +102 -105
  26. package/lib/items/transforms/chart/radar.js +134 -137
  27. package/lib/items/transforms/chart/scatter.js +127 -130
  28. package/lib/items/transforms/codeflask/codeflask.js +10 -12
  29. package/lib/items/transforms/codemirror/codemirror.js +186 -189
  30. package/lib/items/transforms/comparison/comparison.js +130 -133
  31. package/lib/items/transforms/heatmap/heatmap.js +406 -407
  32. package/lib/items/transforms/interact/interact.js +240 -241
  33. package/lib/items/transforms/particles/particles.js +282 -283
  34. package/lib/items/transforms/sparkline/sparkline.js +207 -208
  35. package/lib/items/transforms/swiper/swiper.js +115 -118
  36. package/lib/items/transforms/tabs/tabs.js +383 -384
  37. package/lib/items/transforms/typed/typed.js +146 -147
  38. package/lib/load.js +8 -16
  39. package/lib/src/classes/addon/classes/render/mixins/process.js +16 -0
  40. package/lib/src/mixins/addons.js +10 -10
  41. package/lib/styles/variables.css +1 -1
  42. package/package.json +1 -1
  43. package/addons/render/transforms/functions/load/assets.js +0 -49
  44. /package/{addons/render/directives/front/js/items → lib/items/directives}/100-if.js +0 -0
  45. /package/{addons/render/directives/front/js/items → lib/items/directives}/1000-render.js +0 -0
  46. /package/{addons/render/directives/front/js/items → lib/items/directives}/110-show.js +0 -0
  47. /package/{addons/render/directives/front/js/items → lib/items/directives}/160-slot.js +0 -0
  48. /package/{addons/render/directives/front/js/items → lib/items/directives}/200-for.js +0 -0
  49. /package/{addons/render/directives/front/js/items → lib/items/directives}/500-blur.js +0 -0
  50. /package/{addons/render/directives/front/js/items → lib/items/directives}/500-change.js +0 -0
  51. /package/{addons/render/directives/front/js/items → lib/items/directives}/500-click-outside.js +0 -0
  52. /package/{addons/render/directives/front/js/items → lib/items/directives}/500-click.js +0 -0
  53. /package/{addons/render/directives/front/js/items → lib/items/directives}/500-double-click.js +0 -0
  54. /package/{addons/render/directives/front/js/items → lib/items/directives}/500-focus.js +0 -0
  55. /package/{addons/render/directives/front/js/items → lib/items/directives}/500-input.js +0 -0
  56. /package/{addons/render/directives/front/js/items → lib/items/directives}/500-keydown.js +0 -0
  57. /package/{addons/render/directives/front/js/items → lib/items/directives}/500-keyup.js +0 -0
  58. /package/{addons/render/directives/front/js/items → lib/items/directives}/500-mouse-enter.js +0 -0
  59. /package/{addons/render/directives/front/js/items → lib/items/directives}/500-mouse-leave.js +0 -0
  60. /package/{addons/render/directives/front/js/items → lib/items/directives}/500-mouse-move.js +0 -0
  61. /package/{addons/render/directives/front/js/items → lib/items/directives}/500-scroll.js +0 -0
  62. /package/{addons/render/directives/front/js/items → lib/items/directives}/500-submit.js +0 -0
  63. /package/{addons/render/directives/front/js/items → lib/items/directives}/650-fetch.js +0 -0
  64. /package/{addons/render/directives/front/js/items → lib/items/directives}/660-form.js +0 -0
  65. /package/{addons/render/directives/front/js/items → lib/items/directives}/700-text.js +0 -0
  66. /package/{addons/render/directives/front/js/items → lib/items/directives}/750-html.js +0 -0
@@ -1,329 +1,328 @@
1
- onetype.AddonReady('transforms', (transforms) =>
2
- {
3
- transforms.ItemAdd({
4
- id: 'particles',
5
- icon: 'blur_on',
6
- name: 'Particles',
7
- description: 'Animated particle effects background. Create interactive particle systems with customizable behaviors.',
8
- js: [
9
- 'https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js'
10
- ],
11
- config: {
12
- 'preset': ['string', 'default'],
13
- 'particle-number': ['number', 80],
14
- 'particle-color': ['string', '#ffffff'],
15
- 'particle-opacity': ['number', 0.5],
16
- 'particle-size': ['number', 3],
17
- 'particle-size-random': ['boolean', true],
18
- 'particle-shape': ['string', 'circle'],
19
- 'line-linked': ['boolean', true],
20
- 'line-color': ['string', '#ffffff'],
21
- 'line-opacity': ['number', 0.4],
22
- 'line-width': ['number', 1],
23
- 'line-distance': ['number', 150],
24
- 'move-enable': ['boolean', true],
25
- 'move-speed': ['number', 6],
26
- 'move-direction': ['string', 'none'],
27
- 'move-random': ['boolean', false],
28
- 'move-straight': ['boolean', false],
29
- 'move-bounce': ['boolean', false],
30
- 'move-attract': ['boolean', false],
31
- 'interactivity-hover': ['boolean', true],
32
- 'interactivity-click': ['boolean', true],
33
- 'hover-mode': ['string', 'repulse'],
34
- 'click-mode': ['string', 'push'],
35
- 'retina-detect': ['boolean', true]
36
- },
37
- code: function(data, item, compile, node, identifier)
1
+ transforms.ItemAdd({
2
+ id: 'particles',
3
+ icon: 'blur_on',
4
+ name: 'Particles',
5
+ description: 'Animated particle effects background. Create interactive particle systems with customizable behaviors.',
6
+ js: [
7
+ 'https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js'
8
+ ],
9
+ config: {
10
+ 'preset': ['string', 'default'],
11
+ 'particle-number': ['number', 80],
12
+ 'particle-color': ['string', '#ffffff'],
13
+ 'particle-opacity': ['number', 0.5],
14
+ 'particle-size': ['number', 3],
15
+ 'particle-size-random': ['boolean', true],
16
+ 'particle-shape': ['string', 'circle'],
17
+ 'line-linked': ['boolean', true],
18
+ 'line-color': ['string', '#ffffff'],
19
+ 'line-opacity': ['number', 0.4],
20
+ 'line-width': ['number', 1],
21
+ 'line-distance': ['number', 150],
22
+ 'move-enable': ['boolean', true],
23
+ 'move-speed': ['number', 6],
24
+ 'move-direction': ['string', 'none'],
25
+ 'move-random': ['boolean', false],
26
+ 'move-straight': ['boolean', false],
27
+ 'move-bounce': ['boolean', false],
28
+ 'move-attract': ['boolean', false],
29
+ 'interactivity-hover': ['boolean', true],
30
+ 'interactivity-click': ['boolean', true],
31
+ 'hover-mode': ['string', 'repulse'],
32
+ 'click-mode': ['string', 'push'],
33
+ 'retina-detect': ['boolean', true]
34
+ },
35
+ code: function(data, node, transformer)
36
+ {
37
+ const id = 'particles-' + onetype.Generate(8);
38
+
39
+ this.setup = () =>
38
40
  {
39
- this.setup = () =>
40
- {
41
- node.classList.add('particles');
42
- node.classList.add('particles-' + identifier);
41
+ node.classList.add('particles');
42
+ node.classList.add(id);
43
43
 
44
- const particlesId = 'particles-' + identifier;
45
- node.id = particlesId;
44
+ const particlesId = 'particles-' + identifier;
45
+ node.id = particlesId;
46
46
 
47
- const children = Array.from(node.children);
47
+ const children = Array.from(node.children);
48
48
 
49
- if(children.length > 0)
49
+ if(children.length > 0)
50
+ {
51
+ const contentWrapper = document.createElement('div');
52
+ contentWrapper.className = 'particles-content';
53
+
54
+ children.forEach(child =>
50
55
  {
51
- const contentWrapper = document.createElement('div');
52
- contentWrapper.className = 'particles-content';
56
+ contentWrapper.appendChild(child);
57
+ });
53
58
 
54
- children.forEach(child =>
55
- {
56
- contentWrapper.appendChild(child);
57
- });
59
+ node.appendChild(contentWrapper);
60
+ }
58
61
 
59
- node.appendChild(contentWrapper);
62
+ this.particlesId = particlesId;
63
+ };
64
+
65
+ this.styles = () =>
66
+ {
67
+ const style = document.createElement('style');
68
+
69
+ style.textContent = `
70
+ .particles-${id} {
71
+ position: relative;
72
+ width: 100%;
73
+ height: 100%;
74
+ }
75
+ .particles-${id} canvas {
76
+ position: absolute;
77
+ top: 0;
78
+ left: 0;
79
+ width: 100%;
80
+ height: 100%;
81
+ pointer-events: auto;
60
82
  }
83
+ .particles-${id} .particles-content {
84
+ position: relative;
85
+ z-index: 1;
86
+ }
87
+ `;
88
+
89
+ document.head.appendChild(style);
90
+ };
61
91
 
62
- this.particlesId = particlesId;
92
+ this.presets = () =>
93
+ {
94
+ const preset = data['preset'];
95
+
96
+ const presets = {
97
+ 'snow': {
98
+ particleNumber: 100,
99
+ particleColor: '#ffffff',
100
+ particleOpacity: 0.8,
101
+ particleSize: 4,
102
+ moveSpeed: 2,
103
+ moveDirection: 'bottom',
104
+ lineLinked: false
105
+ },
106
+ 'stars': {
107
+ particleNumber: 200,
108
+ particleColor: '#ffffff',
109
+ particleOpacity: 1,
110
+ particleSize: 2,
111
+ moveSpeed: 0.5,
112
+ lineLinked: false,
113
+ particleSizeRandom: true
114
+ },
115
+ 'bubbles': {
116
+ particleNumber: 40,
117
+ particleColor: '#ffffff',
118
+ particleOpacity: 0.4,
119
+ particleSize: 8,
120
+ moveSpeed: 3,
121
+ moveDirection: 'top',
122
+ lineLinked: false,
123
+ particleShape: 'circle'
124
+ },
125
+ 'network': {
126
+ particleNumber: 60,
127
+ particleColor: '#0066cc',
128
+ particleOpacity: 0.6,
129
+ lineLinked: true,
130
+ lineColor: '#0066cc',
131
+ lineOpacity: 0.3,
132
+ moveSpeed: 4
133
+ }
63
134
  };
64
135
 
65
- this.styles = () =>
136
+ if(presets[preset])
66
137
  {
67
- const style = document.createElement('style');
138
+ return presets[preset];
139
+ }
68
140
 
69
- style.textContent = `
70
- .particles-${identifier} {
71
- position: relative;
72
- width: 100%;
73
- height: 100%;
74
- }
75
- .particles-${identifier} canvas {
76
- position: absolute;
77
- top: 0;
78
- left: 0;
79
- width: 100%;
80
- height: 100%;
81
- pointer-events: auto;
82
- }
83
- .particles-${identifier} .particles-content {
84
- position: relative;
85
- z-index: 1;
86
- }
87
- `;
141
+ return null;
142
+ };
88
143
 
89
- document.head.appendChild(style);
90
- };
144
+ this.config = () =>
145
+ {
146
+ const presetConfig = this.presets();
91
147
 
92
- this.presets = () =>
93
- {
94
- const preset = data['preset'].value;
148
+ const particleNumber = presetConfig?.particleNumber || data['particle-number'];
149
+ const particleColor = presetConfig?.particleColor || data['particle-color'];
150
+ const particleOpacity = presetConfig?.particleOpacity || data['particle-opacity'];
151
+ const particleSize = presetConfig?.particleSize || data['particle-size'];
152
+ const particleSizeRandom = presetConfig?.particleSizeRandom ?? data['particle-size-random'];
153
+ const particleShape = presetConfig?.particleShape || data['particle-shape'];
154
+ const lineLinked = presetConfig?.lineLinked ?? data['line-linked'];
155
+ const lineColor = presetConfig?.lineColor || data['line-color'];
156
+ const lineOpacity = presetConfig?.lineOpacity || data['line-opacity'];
157
+ const lineWidth = data['line-width'];
158
+ const lineDistance = data['line-distance'];
159
+ const moveSpeed = presetConfig?.moveSpeed || data['move-speed'];
160
+ const moveDirection = presetConfig?.moveDirection || data['move-direction'];
161
+ const moveRandom = data['move-random'];
162
+ const moveStraight = data['move-straight'];
163
+ const moveBounce = data['move-bounce'];
164
+ const moveAttract = data['move-attract'];
95
165
 
96
- const presets = {
97
- 'snow': {
98
- particleNumber: 100,
99
- particleColor: '#ffffff',
100
- particleOpacity: 0.8,
101
- particleSize: 4,
102
- moveSpeed: 2,
103
- moveDirection: 'bottom',
104
- lineLinked: false
166
+ const config = {
167
+ particles: {
168
+ number: {
169
+ value: particleNumber,
170
+ density: {
171
+ enable: true,
172
+ value_area: 800
173
+ }
105
174
  },
106
- 'stars': {
107
- particleNumber: 200,
108
- particleColor: '#ffffff',
109
- particleOpacity: 1,
110
- particleSize: 2,
111
- moveSpeed: 0.5,
112
- lineLinked: false,
113
- particleSizeRandom: true
175
+ color: {
176
+ value: particleColor
177
+ },
178
+ shape: {
179
+ type: particleShape,
180
+ stroke: {
181
+ width: 0,
182
+ color: '#000000'
183
+ }
184
+ },
185
+ opacity: {
186
+ value: particleOpacity,
187
+ random: false,
188
+ anim: {
189
+ enable: false,
190
+ speed: 1,
191
+ opacity_min: 0.1,
192
+ sync: false
193
+ }
194
+ },
195
+ size: {
196
+ value: particleSize,
197
+ random: particleSizeRandom,
198
+ anim: {
199
+ enable: false,
200
+ speed: 40,
201
+ size_min: 0.1,
202
+ sync: false
203
+ }
114
204
  },
115
- 'bubbles': {
116
- particleNumber: 40,
117
- particleColor: '#ffffff',
118
- particleOpacity: 0.4,
119
- particleSize: 8,
120
- moveSpeed: 3,
121
- moveDirection: 'top',
122
- lineLinked: false,
123
- particleShape: 'circle'
205
+ line_linked: {
206
+ enable: lineLinked,
207
+ distance: lineDistance,
208
+ color: lineColor,
209
+ opacity: lineOpacity,
210
+ width: lineWidth
124
211
  },
125
- 'network': {
126
- particleNumber: 60,
127
- particleColor: '#0066cc',
128
- particleOpacity: 0.6,
129
- lineLinked: true,
130
- lineColor: '#0066cc',
131
- lineOpacity: 0.3,
132
- moveSpeed: 4
212
+ move: {
213
+ enable: data['move-enable'],
214
+ speed: moveSpeed,
215
+ direction: moveDirection,
216
+ random: moveRandom,
217
+ straight: moveStraight,
218
+ out_mode: 'out',
219
+ bounce: moveBounce,
220
+ attract: {
221
+ enable: moveAttract,
222
+ rotateX: 600,
223
+ rotateY: 1200
224
+ }
133
225
  }
134
- };
135
-
136
- if(presets[preset])
137
- {
138
- return presets[preset];
139
- }
140
-
141
- return null;
142
- };
143
-
144
- this.config = () =>
145
- {
146
- const presetConfig = this.presets();
147
-
148
- const particleNumber = presetConfig?.particleNumber || data['particle-number'].value;
149
- const particleColor = presetConfig?.particleColor || data['particle-color'].value;
150
- const particleOpacity = presetConfig?.particleOpacity || data['particle-opacity'].value;
151
- const particleSize = presetConfig?.particleSize || data['particle-size'].value;
152
- const particleSizeRandom = presetConfig?.particleSizeRandom ?? data['particle-size-random'].value;
153
- const particleShape = presetConfig?.particleShape || data['particle-shape'].value;
154
- const lineLinked = presetConfig?.lineLinked ?? data['line-linked'].value;
155
- const lineColor = presetConfig?.lineColor || data['line-color'].value;
156
- const lineOpacity = presetConfig?.lineOpacity || data['line-opacity'].value;
157
- const lineWidth = data['line-width'].value;
158
- const lineDistance = data['line-distance'].value;
159
- const moveSpeed = presetConfig?.moveSpeed || data['move-speed'].value;
160
- const moveDirection = presetConfig?.moveDirection || data['move-direction'].value;
161
- const moveRandom = data['move-random'].value;
162
- const moveStraight = data['move-straight'].value;
163
- const moveBounce = data['move-bounce'].value;
164
- const moveAttract = data['move-attract'].value;
165
-
166
- const config = {
167
- particles: {
168
- number: {
169
- value: particleNumber,
170
- density: {
171
- enable: true,
172
- value_area: 800
173
- }
226
+ },
227
+ interactivity: {
228
+ detect_on: 'canvas',
229
+ events: {
230
+ onhover: {
231
+ enable: data['interactivity-hover'],
232
+ mode: data['hover-mode']
174
233
  },
175
- color: {
176
- value: particleColor
234
+ onclick: {
235
+ enable: data['interactivity-click'],
236
+ mode: data['click-mode']
177
237
  },
178
- shape: {
179
- type: particleShape,
180
- stroke: {
181
- width: 0,
182
- color: '#000000'
238
+ resize: true
239
+ },
240
+ modes: {
241
+ grab: {
242
+ distance: 400,
243
+ line_linked: {
244
+ opacity: 1
183
245
  }
184
246
  },
185
- opacity: {
186
- value: particleOpacity,
187
- random: false,
188
- anim: {
189
- enable: false,
190
- speed: 1,
191
- opacity_min: 0.1,
192
- sync: false
193
- }
247
+ bubble: {
248
+ distance: 400,
249
+ size: 40,
250
+ duration: 2,
251
+ opacity: 8,
252
+ speed: 3
194
253
  },
195
- size: {
196
- value: particleSize,
197
- random: particleSizeRandom,
198
- anim: {
199
- enable: false,
200
- speed: 40,
201
- size_min: 0.1,
202
- sync: false
203
- }
254
+ repulse: {
255
+ distance: 200,
256
+ duration: 0.4
204
257
  },
205
- line_linked: {
206
- enable: lineLinked,
207
- distance: lineDistance,
208
- color: lineColor,
209
- opacity: lineOpacity,
210
- width: lineWidth
258
+ push: {
259
+ particles_nb: 4
211
260
  },
212
- move: {
213
- enable: data['move-enable'].value,
214
- speed: moveSpeed,
215
- direction: moveDirection,
216
- random: moveRandom,
217
- straight: moveStraight,
218
- out_mode: 'out',
219
- bounce: moveBounce,
220
- attract: {
221
- enable: moveAttract,
222
- rotateX: 600,
223
- rotateY: 1200
224
- }
261
+ remove: {
262
+ particles_nb: 2
225
263
  }
226
- },
227
- interactivity: {
228
- detect_on: 'canvas',
229
- events: {
230
- onhover: {
231
- enable: data['interactivity-hover'].value,
232
- mode: data['hover-mode'].value
233
- },
234
- onclick: {
235
- enable: data['interactivity-click'].value,
236
- mode: data['click-mode'].value
237
- },
238
- resize: true
239
- },
240
- modes: {
241
- grab: {
242
- distance: 400,
243
- line_linked: {
244
- opacity: 1
245
- }
246
- },
247
- bubble: {
248
- distance: 400,
249
- size: 40,
250
- duration: 2,
251
- opacity: 8,
252
- speed: 3
253
- },
254
- repulse: {
255
- distance: 200,
256
- duration: 0.4
257
- },
258
- push: {
259
- particles_nb: 4
260
- },
261
- remove: {
262
- particles_nb: 2
263
- }
264
- }
265
- },
266
- retina_detect: data['retina-detect'].value
267
- };
268
-
269
- return config;
264
+ }
265
+ },
266
+ retina_detect: data['retina-detect']
270
267
  };
271
268
 
272
- this.initialize = () =>
269
+ return config;
270
+ };
271
+
272
+ this.initialize = () =>
273
+ {
274
+ setTimeout(() =>
273
275
  {
274
- setTimeout(() =>
276
+ if(typeof particlesJS === 'undefined')
275
277
  {
276
- if(typeof particlesJS === 'undefined')
277
- {
278
- console.error('Particles.js library not loaded');
279
- return;
280
- }
278
+ console.error('Particles.js library not loaded');
279
+ return;
280
+ }
281
281
 
282
- particlesJS(this.particlesId, this.config());
282
+ particlesJS(this.particlesId, this.config());
283
283
 
284
- node._particlesInstance = {
285
- refresh: () =>
284
+ node._particlesInstance = {
285
+ refresh: () =>
286
+ {
287
+ if(window.pJSDom && window.pJSDom.length > 0)
286
288
  {
287
- if(window.pJSDom && window.pJSDom.length > 0)
289
+ window.pJSDom.forEach(instance =>
288
290
  {
289
- window.pJSDom.forEach(instance =>
291
+ if(instance.pJS && instance.pJS.canvas && instance.pJS.canvas.el)
290
292
  {
291
- if(instance.pJS && instance.pJS.canvas && instance.pJS.canvas.el)
293
+ if(instance.pJS.canvas.el.parentNode && instance.pJS.canvas.el.parentNode.id === this.particlesId)
292
294
  {
293
- if(instance.pJS.canvas.el.parentNode && instance.pJS.canvas.el.parentNode.id === this.particlesId)
294
- {
295
- instance.pJS.fn.vendors.destroypJS();
296
- window.pJSDom = window.pJSDom.filter(item => item !== instance);
297
- }
295
+ instance.pJS.fn.vendors.destroypJS();
296
+ window.pJSDom = window.pJSDom.filter(item => item !== instance);
298
297
  }
299
- });
300
- }
301
- particlesJS(this.particlesId, this.config());
302
- },
303
- update: (newConfig) =>
298
+ }
299
+ });
300
+ }
301
+ particlesJS(this.particlesId, this.config());
302
+ },
303
+ update: (newConfig) =>
304
+ {
305
+ if(window.pJSDom && window.pJSDom.length > 0)
304
306
  {
305
- if(window.pJSDom && window.pJSDom.length > 0)
307
+ window.pJSDom.forEach(instance =>
306
308
  {
307
- window.pJSDom.forEach(instance =>
309
+ if(instance.pJS && instance.pJS.canvas && instance.pJS.canvas.el)
308
310
  {
309
- if(instance.pJS && instance.pJS.canvas && instance.pJS.canvas.el)
311
+ if(instance.pJS.canvas.el.parentNode && instance.pJS.canvas.el.parentNode.id === this.particlesId)
310
312
  {
311
- if(instance.pJS.canvas.el.parentNode && instance.pJS.canvas.el.parentNode.id === this.particlesId)
312
- {
313
- Object.assign(instance.pJS.particles, newConfig.particles);
314
- instance.pJS.fn.particlesRefresh();
315
- }
313
+ Object.assign(instance.pJS.particles, newConfig.particles);
314
+ instance.pJS.fn.particlesRefresh();
316
315
  }
317
- });
318
- }
316
+ }
317
+ });
319
318
  }
320
- };
321
- }, 0);
322
- };
319
+ }
320
+ };
321
+ }, 0);
322
+ };
323
323
 
324
- this.setup();
325
- this.styles();
326
- this.initialize();
327
- }
328
- });
329
- });
324
+ this.setup();
325
+ this.styles();
326
+ this.initialize();
327
+ }
328
+ });