MCPcopy Create free account
hub / github.com/Monogatari/Monogatari / stop

Method stop

src/actions/Particles.ts:13–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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> {

Callers 3

resetMethod · 0.95
revertMethod · 0.45
applyMethod · 0.45

Calls 1

elementMethod · 0.45

Tested by

no test coverage detected