tsparticles-engine
Version:
Easily create highly customizable particle, confetti and fireworks animations and use them as animated backgrounds for your website. Ready to use components available also for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.
31 lines (30 loc) • 839 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.SizeAnimation = void 0;
const AnimationOptions_1 = require("../../AnimationOptions");
class SizeAnimation extends AnimationOptions_1.RangedAnimationOptions {
constructor() {
super();
this.destroy = "none";
this.speed = 5;
}
get size_min() {
return this.minimumValue;
}
set size_min(value) {
this.minimumValue = value;
}
load(data) {
if (data?.size_min !== undefined && data.minimumValue === undefined) {
data.minimumValue = data.size_min;
}
super.load(data);
if (!data) {
return;
}
if (data.destroy !== undefined) {
this.destroy = data.destroy;
}
}
}
exports.SizeAnimation = SizeAnimation;
;