UNPKG

@tsparticles/plugin-emitters

Version:

tsParticles emitters plugin

17 lines (16 loc) 454 B
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); } }