9d9724fd64f9f4073a82df835e45f03e.json 3.1 KB
{"ast":null,"code":"var _interopRequireDefault=require(\"@babel/runtime/helpers/interopRequireDefault\");Object.defineProperty(exports,\"__esModule\",{value:true});exports.default=void 0;var _classCallCheck2=_interopRequireDefault(require(\"@babel/runtime/helpers/classCallCheck\"));var _createClass2=_interopRequireDefault(require(\"@babel/runtime/helpers/createClass\"));var _possibleConstructorReturn2=_interopRequireDefault(require(\"@babel/runtime/helpers/possibleConstructorReturn\"));var _getPrototypeOf2=_interopRequireDefault(require(\"@babel/runtime/helpers/getPrototypeOf\"));var _inherits2=_interopRequireDefault(require(\"@babel/runtime/helpers/inherits\"));var _AnimatedSet=require(\"../core/AnimatedSet\");var _interpolate2=_interopRequireDefault(require(\"../derived/interpolate\"));var _InternalAnimatedValue=_interopRequireDefault(require(\"./InternalAnimatedValue\"));var _evaluateOnce=require(\"../derived/evaluateOnce\");var _Platform=_interopRequireDefault(require(\"react-native-web/dist/exports/Platform\"));var AnimatedValue=function(_InternalAnimatedValu){(0,_inherits2.default)(AnimatedValue,_InternalAnimatedValu);function AnimatedValue(){(0,_classCallCheck2.default)(this,AnimatedValue);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(AnimatedValue).apply(this,arguments));}(0,_createClass2.default)(AnimatedValue,[{key:\"setValue\",value:function setValue(value){this.__detachAnimation(this._animation);if(_Platform.default.OS==='web'){this._updateValue(value);}else{(0,_evaluateOnce.evaluateOnce)((0,_AnimatedSet.createAnimatedSet)(this,value),this);}}},{key:\"interpolate\",value:function interpolate(config){return(0,_interpolate2.default)(this,config);}}]);return AnimatedValue;}(_InternalAnimatedValue.default);exports.default=AnimatedValue;","map":{"version":3,"sources":["C:/Users/bluej/Desktop/2_2/searchGuide/searchGuide/node_modules/react-native-reanimated/src/core/AnimatedValue.js"],"names":["AnimatedValue","value","__detachAnimation","_animation","Platform","OS","_updateValue","config","InternalAnimatedValue"],"mappings":"6nBAAA,gDACA,4EACA,sFACA,qD,2FAIqBA,CAAAA,a,+WACVC,K,CAAO,CACd,KAAKC,iBAAL,CAAuB,KAAKC,UAA5B,EACA,GAAIC,kBAASC,EAAT,GAAgB,KAApB,CAA2B,CACzB,KAAKC,YAAL,CAAkBL,KAAlB,EACD,CAFD,IAEO,CACL,+BAAa,mCAAI,IAAJ,CAAUA,KAAV,CAAb,CAA+B,IAA/B,EACD,CACF,C,gDAEWM,M,CAAQ,CAClB,MAAO,0BAAY,IAAZ,CAAkBA,MAAlB,CAAP,CACD,C,2BAZwCC,8B","sourcesContent":["import { createAnimatedSet as set } from '../core/AnimatedSet';\nimport interpolate from '../derived/interpolate';\nimport InternalAnimatedValue from './InternalAnimatedValue';\nimport { evaluateOnce } from '../derived/evaluateOnce';\nimport { Platform } from 'react-native';\n\n// Animated value wrapped with extra methods for omit cycle of dependencies\nexport default class AnimatedValue extends InternalAnimatedValue {\n  setValue(value) {\n    this.__detachAnimation(this._animation);\n    if (Platform.OS === 'web') {\n      this._updateValue(value);\n    } else {\n      evaluateOnce(set(this, value), this);\n    }\n  }\n\n  interpolate(config) {\n    return interpolate(this, config);\n  }\n}\n"]},"metadata":{},"sourceType":"script"}