@tsparticles/updater-life
Version:
tsParticles particles life updater
21 lines (20 loc) • 525 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.LifeDuration = void 0;
const engine_1 = require("@tsparticles/engine");
class LifeDuration 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.LifeDuration = LifeDuration;