31 lines
874 B
JavaScript
31 lines
874 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.RotateAnimation = void 0;
|
|
const tsparticles_engine_1 = require("tsparticles-engine");
|
|
class RotateAnimation {
|
|
constructor() {
|
|
this.enable = false;
|
|
this.speed = 0;
|
|
this.decay = 0;
|
|
this.sync = false;
|
|
}
|
|
load(data) {
|
|
if (!data) {
|
|
return;
|
|
}
|
|
if (data.enable !== undefined) {
|
|
this.enable = data.enable;
|
|
}
|
|
if (data.speed !== undefined) {
|
|
this.speed = (0, tsparticles_engine_1.setRangeValue)(data.speed);
|
|
}
|
|
if (data.decay !== undefined) {
|
|
this.decay = (0, tsparticles_engine_1.setRangeValue)(data.decay);
|
|
}
|
|
if (data.sync !== undefined) {
|
|
this.sync = data.sync;
|
|
}
|
|
}
|
|
}
|
|
exports.RotateAnimation = RotateAnimation;
|