UNPKG

@tsparticles/fireworks

Version:

tsParticles fireworks bundle — easily create spectacular fireworks and fountain particle effects with built-in presets. Ready to use components available for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.

30 lines (29 loc) • 701 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FireworksInstance = void 0; const utils_js_1 = require("./utils.js"); class FireworksInstance { #container; #id; constructor(container, id) { this.#container = container; this.#id = id; } get destroyed() { return this.#container.destroyed; } destroy() { this.#container.destroy(); (0, utils_js_1.deleteFireworksInstance)(this.#id, this); } pause() { this.#container.pause(); } play() { this.#container.play(); } stop() { this.#container.stop(); } } exports.FireworksInstance = FireworksInstance;