UNPKG

@tsparticles/plugin-export-image

Version:

tsParticles export image plugin

30 lines (29 loc) 1.02 kB
(function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === "function" && define.amd) { define(["require", "exports", "./ExportImageInstance.js"], factory); } })(function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ExportImagePlugin = void 0; const ExportImageInstance_js_1 = require("./ExportImageInstance.js"); class ExportImagePlugin { constructor(engine) { this.id = "export-image"; this._engine = engine; } getPlugin(container) { return Promise.resolve(new ExportImageInstance_js_1.ExportImageInstance(container, this._engine)); } loadOptions() { } needsPlugin() { return true; } } exports.ExportImagePlugin = ExportImagePlugin; });