()
| 11 | }; |
| 12 | |
| 13 | static stop() { |
| 14 | try { |
| 15 | const particles = tsParticles.domItem(0); |
| 16 | if (typeof particles !== 'undefined') { |
| 17 | particles.stop(); |
| 18 | this.engine.element().find('#tsparticles').html(''); |
| 19 | } |
| 20 | } catch (e) { |
| 21 | console.error('An error ocurred while trying to stop particle system.', e); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | |
| 26 | static override async setup(): Promise<void> { |