<gh_stars>1-10
{"ast":null,"code":"import { cond, defined, set, add, min, max } from \"../base\";\nimport AnimatedValue from \"../core/InternalAnimatedValue\";\nimport diff from \"./diff\";\nexport default function diffClamp(a, minVal, maxVal) {\n  var value = new AnimatedValue();\n  return set(value, min(max(add(cond(defined(value), value, a), diff(a)), minVal), maxVal));\n}","map":{"version":3,"sources":["C:/Me/wcs/wiki-notes/2104-wns-lyon-groupe1-mobile/node_modules/react-native-reanimated/lib/reanimated1/derived/diffClamp.js"],"names":["cond","defined","set","add","min","max","AnimatedValue","diff","diffClamp","a","minVal","maxVal","value"],"mappings":"AAAA,SAASA,IAAT,EAAeC,OAAf,EAAwBC,GAAxB,EAA6BC,GAA7B,EAAkCC,GAAlC,EAAuCC,GAAvC;AACA,OAAOC,aAAP;AACA,OAAOC,IAAP;AAEA,eAAe,SAASC,SAAT,CAAmBC,CAAnB,EAAsBC,MAAtB,EAA8BC,MAA9B,EAAsC;AACnD,MAAMC,KAAK,GAAG,IAAIN,aAAJ,EAAd;AACA,SAAOJ,GAAG,CACRU,KADQ,EAERR,GAAG,CAACC,GAAG,CAACF,GAAG,CAACH,IAAI,CAACC,OAAO,CAACW,KAAD,CAAR,EAAiBA,KAAjB,EAAwBH,CAAxB,CAAL,EAAiCF,IAAI,CAACE,CAAD,CAArC,CAAJ,EAA+CC,MAA/C,CAAJ,EAA4DC,MAA5D,CAFK,CAAV;AAID","sourcesContent":["import { cond, defined, set, add, min, max } from '../base';\nimport AnimatedValue from '../core/InternalAnimatedValue';\nimport diff from './diff';\n\nexport default function diffClamp(a, minVal, maxVal) {\n  const value = new AnimatedValue();\n  return set(\n    value,\n    min(max(add(cond(defined(value), value, a), diff(a)), minVal), maxVal)\n  );\n}\n"]},"metadata":{},"sourceType":"module"}