()
| 80 | } |
| 81 | |
| 82 | override async willApply(): Promise<void> { |
| 83 | if (typeof this.particles !== 'undefined') { |
| 84 | return; |
| 85 | } else { |
| 86 | throw new Error('Particle system object does not exist.'); |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | override async apply(): Promise<void> { |
| 91 | await tsParticles.load({ id: 'tsparticles', options: this.particles }); |