UNPKG

repoweaver

Version:

A GitHub App that skillfully weaves multiple templates together to create and update repositories with intelligent merge strategies

1 lines 4.47 kB
{"ast":null,"code":"'use strict';\n\nimport AnimatedInterpolation from \"./AnimatedInterpolation\";\nimport AnimatedWithChildren from \"./AnimatedWithChildren\";\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 __makeNative(platformConfig) {\n this._a.__makeNative(platformConfig);\n super.__makeNative(platformConfig);\n }\n interpolate(config) {\n return new AnimatedInterpolation(this, config);\n }\n __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 __attach() {\n this._a.__addChild(this);\n }\n __detach() {\n this._a.__removeChild(this);\n super.__detach();\n }\n __getNativeConfig() {\n return {\n type: 'diffclamp',\n input: this._a.__getNativeTag(),\n min: this._min,\n max: this._max\n };\n }\n}\nexport default AnimatedDiffClamp;","map":{"version":3,"names":["AnimatedInterpolation","AnimatedWithChildren","AnimatedDiffClamp","constructor","a","min","max","_a","_min","_max","_value","_lastValue","__getValue","__makeNative","platformConfig","interpolate","config","value","diff","Math","__attach","__addChild","__detach","__removeChild","__getNativeConfig","type","input","__getNativeTag"],"sources":["/Users/pmouli/Documents/GitHub.nosync/boots-strapper/mobile/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\n'use strict';\n\nimport AnimatedInterpolation from './AnimatedInterpolation';\nimport AnimatedWithChildren from './AnimatedWithChildren';\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 __makeNative(platformConfig) {\n this._a.__makeNative(platformConfig);\n super.__makeNative(platformConfig);\n }\n interpolate(config) {\n return new AnimatedInterpolation(this, config);\n }\n __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 __attach() {\n this._a.__addChild(this);\n }\n __detach() {\n this._a.__removeChild(this);\n super.__detach();\n }\n __getNativeConfig() {\n return {\n type: 'diffclamp',\n input: this._a.__getNativeTag(),\n min: this._min,\n max: this._max\n };\n }\n}\nexport default AnimatedDiffClamp;"],"mappings":"AAUA,YAAY;;AAEZ,OAAOA,qBAAqB;AAC5B,OAAOC,oBAAoB;AAC3B,MAAMC,iBAAiB,SAASD,oBAAoB,CAAC;EACnDE,WAAWA,CAACC,CAAC,EAAEC,GAAG,EAAEC,GAAG,EAAE;IACvB,KAAK,CAAC,CAAC;IACP,IAAI,CAACC,EAAE,GAAGH,CAAC;IACX,IAAI,CAACI,IAAI,GAAGH,GAAG;IACf,IAAI,CAACI,IAAI,GAAGH,GAAG;IACf,IAAI,CAACI,MAAM,GAAG,IAAI,CAACC,UAAU,GAAG,IAAI,CAACJ,EAAE,CAACK,UAAU,CAAC,CAAC;EACtD;EACAC,YAAYA,CAACC,cAAc,EAAE;IAC3B,IAAI,CAACP,EAAE,CAACM,YAAY,CAACC,cAAc,CAAC;IACpC,KAAK,CAACD,YAAY,CAACC,cAAc,CAAC;EACpC;EACAC,WAAWA,CAACC,MAAM,EAAE;IAClB,OAAO,IAAIhB,qBAAqB,CAAC,IAAI,EAAEgB,MAAM,CAAC;EAChD;EACAJ,UAAUA,CAAA,EAAG;IACX,IAAIK,KAAK,GAAG,IAAI,CAACV,EAAE,CAACK,UAAU,CAAC,CAAC;IAChC,IAAIM,IAAI,GAAGD,KAAK,GAAG,IAAI,CAACN,UAAU;IAClC,IAAI,CAACA,UAAU,GAAGM,KAAK;IACvB,IAAI,CAACP,MAAM,GAAGS,IAAI,CAACd,GAAG,CAACc,IAAI,CAACb,GAAG,CAAC,IAAI,CAACI,MAAM,GAAGQ,IAAI,EAAE,IAAI,CAACV,IAAI,CAAC,EAAE,IAAI,CAACC,IAAI,CAAC;IAC1E,OAAO,IAAI,CAACC,MAAM;EACpB;EACAU,QAAQA,CAAA,EAAG;IACT,IAAI,CAACb,EAAE,CAACc,UAAU,CAAC,IAAI,CAAC;EAC1B;EACAC,QAAQA,CAAA,EAAG;IACT,IAAI,CAACf,EAAE,CAACgB,aAAa,CAAC,IAAI,CAAC;IAC3B,KAAK,CAACD,QAAQ,CAAC,CAAC;EAClB;EACAE,iBAAiBA,CAAA,EAAG;IAClB,OAAO;MACLC,IAAI,EAAE,WAAW;MACjBC,KAAK,EAAE,IAAI,CAACnB,EAAE,CAACoB,cAAc,CAAC,CAAC;MAC/BtB,GAAG,EAAE,IAAI,CAACG,IAAI;MACdF,GAAG,EAAE,IAAI,CAACG;IACZ,CAAC;EACH;AACF;AACA,eAAeP,iBAAiB","ignoreList":[]},"metadata":{"hasCjsExports":false},"sourceType":"module","externalDependencies":[]}