30 lines
814 B
JavaScript
30 lines
814 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.Trail = void 0;
|
|
const tsparticles_engine_1 = require("tsparticles-engine");
|
|
class Trail {
|
|
constructor() {
|
|
this.delay = 1;
|
|
this.pauseOnStop = false;
|
|
this.quantity = 1;
|
|
}
|
|
load(data) {
|
|
if (!data) {
|
|
return;
|
|
}
|
|
if (data.delay !== undefined) {
|
|
this.delay = data.delay;
|
|
}
|
|
if (data.quantity !== undefined) {
|
|
this.quantity = data.quantity;
|
|
}
|
|
if (data.particles !== undefined) {
|
|
this.particles = (0, tsparticles_engine_1.deepExtend)({}, data.particles);
|
|
}
|
|
if (data.pauseOnStop !== undefined) {
|
|
this.pauseOnStop = data.pauseOnStop;
|
|
}
|
|
}
|
|
}
|
|
exports.Trail = Trail;
|