<filename>node_modules/.cache/babel-loader/1399415ca6a20d439013241198df9f74.json<gh_stars>0
{"ast":null,"code":"\"use strict\";\n\nvar _classCallCheck = require(\"/Users/gurvinderdehl/Documents/GitHub/New-React-Portifolio/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/classCallCheck\");\n\nvar _createClass = require(\"/Users/gurvinderdehl/Documents/GitHub/New-React-Portifolio/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/createClass\");\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.Attract = void 0;\n\nvar Attract = /*#__PURE__*/function () {\n  function Attract() {\n    _classCallCheck(this, Attract);\n\n    this.enable = false;\n    this.rotate = {\n      x: 3000,\n      y: 3000\n    };\n  }\n\n  _createClass(Attract, [{\n    key: \"load\",\n    value: function load(data) {\n      var _a, _b, _c, _d;\n\n      if (data === undefined) {\n        return;\n      }\n\n      if (data.enable !== undefined) {\n        this.enable = data.enable;\n      }\n\n      var rotateX = (_b = (_a = data.rotate) === null || _a === void 0 ? void 0 : _a.x) !== null && _b !== void 0 ? _b : data.rotateX;\n\n      if (rotateX !== undefined) {\n        this.rotate.x = rotateX;\n      }\n\n      var rotateY = (_d = (_c = data.rotate) === null || _c === void 0 ? void 0 : _c.y) !== null && _d !== void 0 ? _d : data.rotateY;\n\n      if (rotateY !== undefined) {\n        this.rotate.y = rotateY;\n      }\n    }\n  }, {\n    key: \"rotateX\",\n    get: function get() {\n      return this.rotate.x;\n    },\n    set: function set(value) {\n      this.rotate.x = value;\n    }\n  }, {\n    key: \"rotateY\",\n    get: function get() {\n      return this.rotate.y;\n    },\n    set: function set(value) {\n      this.rotate.y = value;\n    }\n  }]);\n\n  return Attract;\n}();\n\nexports.Attract = Attract;","map":{"version":3,"sources":["/Users/gurvinderdehl/Documents/GitHub/New-React-Portifolio/node_modules/tsparticles/dist/Options/Classes/Particles/Move/Attract.js"],"names":["Object","defineProperty","exports","value","Attract","enable","rotate","x","y","data","_a","_b","_c","_d","undef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,KAAKF,SAAhB,EAA2B;AACvB,aAAKR,MAAL,CAAYE,CAAZ,GAAgBQ,OAAhB;AACH;AACJ;;;wBA5Ba;AACV,aAAO,KAAKV,MAAL,CAAYC,CAAnB;AACH,K;sBACWJ,K,EAAO;AACf,WAAKG,MAAL,CAAYC,CAAZ,GAAgBJ,KAAhB;AACH;;;wBACa;AACV,aAAO,KAAKG,MAAL,CAAYE,CAAnB;AACH,K;sBACWL,K,EAAO;AACf,WAAKG,MAAL,CAAYE,CAAZ,GAAgBL,KAAhB;AACH;;;;;;AAmBLD,OAAO,CAACE,OAAR,GAAkBA,OAAlB","sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Attract = void 0;\nclass Attract {\n    constructor() {\n        this.enable = false;\n        this.rotate = {\n            x: 3000,\n            y: 3000,\n        };\n    }\n    get rotateX() {\n        return this.rotate.x;\n    }\n    set rotateX(value) {\n        this.rotate.x = value;\n    }\n    get rotateY() {\n        return this.rotate.y;\n    }\n    set rotateY(value) {\n        this.rotate.y = value;\n    }\n    load(data) {\n        var _a, _b, _c, _d;\n        if (data === undefined) {\n            return;\n        }\n        if (data.enable !== undefined) {\n            this.enable = data.enable;\n        }\n        const rotateX = (_b = (_a = data.rotate) === null || _a === void 0 ? void 0 : _a.x) !== null && _b !== void 0 ? _b : data.rotateX;\n        if (rotateX !== undefined) {\n            this.rotate.x = rotateX;\n        }\n        const rotateY = (_d = (_c = data.rotate) === null || _c === void 0 ? void 0 : _c.y) !== null && _d !== void 0 ? _d : data.rotateY;\n        if (rotateY !== undefined) {\n            this.rotate.y = rotateY;\n        }\n    }\n}\nexports.Attract = Attract;\n"]},"metadata":{},"sourceType":"script"}