@tsparticles/updater-size
Version:
tsParticles particles size updater
12 lines (11 loc) • 352 B
JavaScript
import { DestroyType, RangedAnimationOptions, isNull, loadProperty, } from "@tsparticles/engine";
export class SizeAnimation extends RangedAnimationOptions {
destroy = DestroyType.none;
load(data) {
super.load(data);
if (isNull(data)) {
return;
}
loadProperty(this, "destroy", data.destroy);
}
}