You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
6.2 KiB
1 line
6.2 KiB
{"ast":null,"code":"'use strict';\n\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _get from \"@babel/runtime/helpers/get\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nimport AnimatedInterpolation from \"./AnimatedInterpolation\";\nimport AnimatedNode from \"./AnimatedNode\";\nimport AnimatedWithChildren from \"./AnimatedWithChildren\";\nvar AnimatedDiffClamp = function (_AnimatedWithChildren) {\n _inherits(AnimatedDiffClamp, _AnimatedWithChildren);\n var _super = _createSuper(AnimatedDiffClamp);\n function AnimatedDiffClamp(a, min, max) {\n var _this;\n _classCallCheck(this, AnimatedDiffClamp);\n _this = _super.call(this);\n _this._a = a;\n _this._min = min;\n _this._max = max;\n _this._value = _this._lastValue = _this._a.__getValue();\n return _this;\n }\n _createClass(AnimatedDiffClamp, [{\n key: \"__makeNative\",\n value: function __makeNative() {\n this._a.__makeNative();\n _get(_getPrototypeOf(AnimatedDiffClamp.prototype), \"__makeNative\", this).call(this);\n }\n }, {\n key: \"interpolate\",\n value: function interpolate(config) {\n return new AnimatedInterpolation(this, config);\n }\n }, {\n key: \"__getValue\",\n value: function __getValue() {\n var value = this._a.__getValue();\n var diff = value - this._lastValue;\n this._lastValue = value;\n this._value = Math.min(Math.max(this._value + diff, this._min), this._max);\n return this._value;\n }\n }, {\n key: \"__attach\",\n value: function __attach() {\n this._a.__addChild(this);\n }\n }, {\n key: \"__detach\",\n value: function __detach() {\n this._a.__removeChild(this);\n _get(_getPrototypeOf(AnimatedDiffClamp.prototype), \"__detach\", this).call(this);\n }\n }, {\n key: \"__getNativeConfig\",\n value: function __getNativeConfig() {\n return {\n type: 'diffclamp',\n input: this._a.__getNativeTag(),\n min: this._min,\n max: this._max\n };\n }\n }]);\n return AnimatedDiffClamp;\n}(AnimatedWithChildren);\nexport default AnimatedDiffClamp;","map":{"version":3,"names":["AnimatedInterpolation","AnimatedNode","AnimatedWithChildren","AnimatedDiffClamp","a","min","max","_a","_min","_max","_value","_lastValue","__getValue","__makeNative","config","value","diff","Math","__addChild","__removeChild","type","input","__getNativeTag"],"sources":["/Users/thomaschazot/Documents/But2A/LaSuperMeteo/iut-expo-starter/node_modules/react-native-web/dist/vendor/react-native/Animated/nodes/AnimatedDiffClamp.js"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n'use strict';\n\nimport AnimatedInterpolation from './AnimatedInterpolation';\nimport AnimatedNode from './AnimatedNode';\nimport AnimatedWithChildren from './AnimatedWithChildren';\n\nclass AnimatedDiffClamp extends AnimatedWithChildren {\n constructor(a, min, max) {\n super();\n this._a = a;\n this._min = min;\n this._max = max;\n this._value = this._lastValue = this._a.__getValue();\n }\n\n __makeNative() {\n this._a.__makeNative();\n\n super.__makeNative();\n }\n\n interpolate(config) {\n return new AnimatedInterpolation(this, config);\n }\n\n __getValue() {\n var value = this._a.__getValue();\n\n var diff = value - this._lastValue;\n this._lastValue = value;\n this._value = Math.min(Math.max(this._value + diff, this._min), this._max);\n return this._value;\n }\n\n __attach() {\n this._a.__addChild(this);\n }\n\n __detach() {\n this._a.__removeChild(this);\n\n super.__detach();\n }\n\n __getNativeConfig() {\n return {\n type: 'diffclamp',\n input: this._a.__getNativeTag(),\n min: this._min,\n max: this._max\n };\n }\n\n}\n\nexport default AnimatedDiffClamp;"],"mappings":"AASA,YAAY;;AAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEb,OAAOA,qBAAqB;AAC5B,OAAOC,YAAY;AACnB,OAAOC,oBAAoB;AAA+B,IAEpDC,iBAAiB;EAAA;EAAA;EACrB,2BAAYC,CAAC,EAAEC,GAAG,EAAEC,GAAG,EAAE;IAAA;IAAA;IACvB;IACA,MAAKC,EAAE,GAAGH,CAAC;IACX,MAAKI,IAAI,GAAGH,GAAG;IACf,MAAKI,IAAI,GAAGH,GAAG;IACf,MAAKI,MAAM,GAAG,MAAKC,UAAU,GAAG,MAAKJ,EAAE,CAACK,UAAU,EAAE;IAAC;EACvD;EAAC;IAAA;IAAA,OAED,wBAAe;MACb,IAAI,CAACL,EAAE,CAACM,YAAY,EAAE;MAEtB;IACF;EAAC;IAAA;IAAA,OAED,qBAAYC,MAAM,EAAE;MAClB,OAAO,IAAId,qBAAqB,CAAC,IAAI,EAAEc,MAAM,CAAC;IAChD;EAAC;IAAA;IAAA,OAED,sBAAa;MACX,IAAIC,KAAK,GAAG,IAAI,CAACR,EAAE,CAACK,UAAU,EAAE;MAEhC,IAAII,IAAI,GAAGD,KAAK,GAAG,IAAI,CAACJ,UAAU;MAClC,IAAI,CAACA,UAAU,GAAGI,KAAK;MACvB,IAAI,CAACL,MAAM,GAAGO,IAAI,CAACZ,GAAG,CAACY,IAAI,CAACX,GAAG,CAAC,IAAI,CAACI,MAAM,GAAGM,IAAI,EAAE,IAAI,CAACR,IAAI,CAAC,EAAE,IAAI,CAACC,IAAI,CAAC;MAC1E,OAAO,IAAI,CAACC,MAAM;IACpB;EA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