2023-02-17 11:06:01 +01:00

29 lines
831 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Rotate = void 0;
const tsparticles_engine_1 = require("tsparticles-engine");
const RotateAnimation_1 = require("./RotateAnimation");
class Rotate extends tsparticles_engine_1.ValueWithRandom {
constructor() {
super();
this.animation = new RotateAnimation_1.RotateAnimation();
this.direction = "clockwise";
this.path = false;
this.value = 0;
}
load(data) {
if (!data) {
return;
}
super.load(data);
if (data.direction !== undefined) {
this.direction = data.direction;
}
this.animation.load(data.animation);
if (data.path !== undefined) {
this.path = data.path;
}
}
}
exports.Rotate = Rotate;