UNPKG

@tsparticles/updater-size

Version:

tsParticles particles size updater

17 lines (16 loc) 485 B
import { RangedAnimationValueWithRandom, isNull } from "@tsparticles/engine"; import { SizeAnimation } from "./SizeAnimation.js"; export class Size extends RangedAnimationValueWithRandom { animation = new SizeAnimation(); value = 3; load(data) { super.load(data); if (isNull(data)) { return; } const animation = data.animation; if (animation !== undefined) { this.animation.load(animation); } } }