{"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.Rotate = void 0;\n\nconst RotateAnimation_1 = require(\"./RotateAnimation\");\n\nconst Enums_1 = require(\"../../../../Enums\");\n\nconst ValueWithRandom_1 = require(\"../../ValueWithRandom\");\n\nclass Rotate extends ValueWithRandom_1.ValueWithRandom {\n  constructor() {\n    super();\n    this.animation = new RotateAnimation_1.RotateAnimation();\n    this.direction = Enums_1.RotateDirection.clockwise;\n    this.path = false;\n    this.value = 0;\n  }\n\n  load(data) {\n    if (!data) {\n      return;\n    }\n\n    super.load(data);\n\n    if (data.direction !== undefined) {\n      this.direction = data.direction;\n    }\n\n    this.animation.load(data.animation);\n\n    if (data.path !== undefined) {\n      this.path = data.path;\n    }\n  }\n\n}\n\nexports.Rotate = Rotate;","map":null,"metadata":{},"sourceType":"script"}