@tsparticles/plugin-emitters
Version:
tsParticles emitters plugin
17 lines (16 loc) • 454 B
JavaScript
import { isNull, loadProperty, loadRangeProperty, } from "@tsparticles/engine";
export class EmitterLife {
count;
delay;
duration;
wait = false;
load(data) {
if (isNull(data)) {
return;
}
loadProperty(this, "count", data.count);
loadRangeProperty(this, "delay", data.delay);
loadRangeProperty(this, "duration", data.duration);
loadProperty(this, "wait", data.wait);
}
}