@tsparticles/updater-life
Version:
tsParticles particles life updater
17 lines (16 loc) • 378 B
JavaScript
import { ValueWithRandom, isNull } from "@tsparticles/engine";
export class LifeDuration extends ValueWithRandom {
constructor() {
super();
this.sync = false;
}
load(data) {
if (isNull(data)) {
return;
}
super.load(data);
if (data.sync !== undefined) {
this.sync = data.sync;
}
}
}