UNPKG

@tsparticles/updater-life

Version:

tsParticles particles life updater

12 lines (11 loc) 300 B
import { ValueWithRandom, isNull, loadProperty } from "@tsparticles/engine"; export class LifeDelay extends ValueWithRandom { sync = false; load(data) { if (isNull(data)) { return; } super.load(data); loadProperty(this, "sync", data.sync); } }