text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.Rotate = void 0;
  const RotateAnimation_1 = require("./RotateAnimation");
  const Enums_1 = require("../../../../Enums");
  const ValueWithRandom_1 = require("../../ValueWithRandom");
  class Rotate extends ValueWithRandom_1.ValueWithRandom {
      constructor() {
          super();
          this.animation = new RotateAnimation_1.RotateAnimation();
          this.direction = Enums_1.RotateDirection.clockwise;
          this.path = false;
          this.value = {
              min: 0,
              max: 360,
          };
      }
      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;
  