UNPKG

@tsparticles/updater-life

Version:

tsParticles particles life updater

11 lines (10 loc) 428 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.loadLifeUpdater = loadLifeUpdater; const LifeUpdater_js_1 = require("./LifeUpdater.js"); async function loadLifeUpdater(engine, refresh = true) { engine.checkVersion("3.9.0"); await engine.addParticleUpdater("life", async (container) => { return Promise.resolve(new LifeUpdater_js_1.LifeUpdater(container)); }, refresh); }