UNPKG

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.

29 lines (28 loc) 786 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ZIndex = void 0; const ValueWithRandom_1 = require("../../ValueWithRandom"); class ZIndex extends ValueWithRandom_1.ValueWithRandom { constructor() { super(); this.opacityRate = 1; this.sizeRate = 1; this.velocityRate = 1; } load(data) { super.load(data); if (!data) { return; } if (data.opacityRate !== undefined) { this.opacityRate = data.opacityRate; } if (data.sizeRate !== undefined) { this.sizeRate = data.sizeRate; } if (data.velocityRate !== undefined) { this.velocityRate = data.velocityRate; } } } exports.ZIndex = ZIndex;