UNPKG

@tsparticles/updater-life

Version:

tsParticles particles life updater

21 lines (20 loc) 513 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LifeDelay = void 0; const engine_1 = require("@tsparticles/engine"); class LifeDelay extends engine_1.ValueWithRandom { constructor() { super(); this.sync = false; } load(data) { if ((0, engine_1.isNull)(data)) { return; } super.load(data); if (data.sync !== undefined) { this.sync = data.sync; } } } exports.LifeDelay = LifeDelay;