2bedb54314d022699d6619067d9a5911.json
3.21 KB
{"ast":null,"code":"var _interopRequireDefault=require(\"@babel/runtime/helpers/interopRequireDefault\");Object.defineProperty(exports,\"__esModule\",{value:true});exports.createAnimatedParam=createAnimatedParam;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 _AnimatedNode2=_interopRequireDefault(require(\"./AnimatedNode\"));var _val=require(\"../val\");var AnimatedParam=function(_AnimatedNode){(0,_inherits2.default)(AnimatedParam,_AnimatedNode);function AnimatedParam(){var _this;(0,_classCallCheck2.default)(this,AnimatedParam);_this=(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(AnimatedParam).call(this,{type:'param'},[]));_this.argsStack=[];_this.__attach();return _this;}(0,_createClass2.default)(AnimatedParam,[{key:\"beginContext\",value:function beginContext(ref){this.argsStack.push(ref);}},{key:\"endContext\",value:function endContext(){this.argsStack.pop();}},{key:\"setValue\",value:function setValue(value){var top=this.argsStack[this.argsStack.length-1];top.setValue(value);}},{key:\"__onEvaluate\",value:function __onEvaluate(){var top=this.argsStack[this.argsStack.length-1];return(0,_val.val)(top);}}]);return AnimatedParam;}(_AnimatedNode2.default);function createAnimatedParam(){return new AnimatedParam();}","map":{"version":3,"sources":["C:/Users/bluej/Desktop/2_2/searchGuide/searchGuide/node_modules/react-native-reanimated/src/core/AnimatedParam.js"],"names":["AnimatedParam","type","argsStack","__attach","ref","push","pop","value","top","length","setValue","AnimatedNode","createAnimatedParam"],"mappings":"spBAAA,qEACA,2B,GAEMA,CAAAA,a,6EAGJ,wBAAc,4DACZ,yGAAM,CAAEC,IAAI,CAAE,OAAR,CAAN,CAAyB,EAAzB,GADY,MAFdC,SAEc,CAFF,EAEE,CAEZ,MAAKC,QAAL,GAFY,aAGb,C,yFAEYC,G,CAAK,CAChB,KAAKF,SAAL,CAAeG,IAAf,CAAoBD,GAApB,EACD,C,+CAEY,CACX,KAAKF,SAAL,CAAeI,GAAf,GACD,C,0CAEQC,K,CAAO,CACd,GAAMC,CAAAA,GAAG,CAAG,KAAKN,SAAL,CAAe,KAAKA,SAAL,CAAeO,MAAf,CAAwB,CAAvC,CAAZ,CACAD,GAAG,CAACE,QAAJ,CAAaH,KAAb,EACD,C,mDAEc,CACb,GAAMC,CAAAA,GAAG,CAAG,KAAKN,SAAL,CAAe,KAAKA,SAAL,CAAeO,MAAf,CAAwB,CAAvC,CAAZ,CACA,MAAO,aAAID,GAAJ,CAAP,CACD,C,2BAxByBG,sB,EA2BrB,QAASC,CAAAA,mBAAT,EAA+B,CACpC,MAAO,IAAIZ,CAAAA,aAAJ,EAAP,CACD","sourcesContent":["import AnimatedNode from './AnimatedNode';\nimport { val } from '../val';\n\nclass AnimatedParam extends AnimatedNode {\n argsStack = [];\n\n constructor() {\n super({ type: 'param' }, []);\n this.__attach();\n }\n\n beginContext(ref) {\n this.argsStack.push(ref);\n }\n\n endContext() {\n this.argsStack.pop();\n }\n\n setValue(value) {\n const top = this.argsStack[this.argsStack.length - 1];\n top.setValue(value);\n }\n\n __onEvaluate() {\n const top = this.argsStack[this.argsStack.length - 1];\n return val(top);\n }\n}\n\nexport function createAnimatedParam() {\n return new AnimatedParam();\n}\n"]},"metadata":{},"sourceType":"script"}