@tsparticles/plugin-export-image
Version:
tsParticles export image plugin
19 lines (18 loc) • 793 B
JavaScript
(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", "./ExportImagePlugin.js"], factory);
}
})(function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadExportImagePlugin = loadExportImagePlugin;
const ExportImagePlugin_js_1 = require("./ExportImagePlugin.js");
async function loadExportImagePlugin(engine, refresh = true) {
engine.checkVersion("3.9.1");
await engine.addPlugin(new ExportImagePlugin_js_1.ExportImagePlugin(engine), refresh);
}
});