{"version":3,"sources":["jsdelivr-header.js","/npm/react-native-pixel-image-color@0.1.1/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCLE,kBACK,sBAEA,SAAS,aAAa,EAAW,EAAG,GACzC,OAAO,IAAI,SAAQ,CAAC,EAAS,KACzB,cAAc,aAAa,oBAAoB,EAAW,EAAG,GAAG,CAAC,EAAK,KACpE,GAAI,EACF,OAAO,EAAO,GAEhB,EAAQ,EAAM,GACd,GAER,QAEO,SAAS,kBAAkB,EAAW,EAAO,GAClD,OAAO,IAAI,SAAQ,CAAC,EAAS,KACzB,cAAc,aAAa,yBAAyB,EAAW,EAAO,GAAQ,CAAC,EAAK,KAClF,GAAI,EACF,OAAO,EAAO,GAEhB,EAAQ,EAAM,GACd,GAER,QAEO,SAAS,wBAAwB,EAAW,EAAU,EAAU,EAAQ,GAC7E,OAAO,IAAI,SAAQ,CAAC,EAAS,KACzB,cAAc,aAAa,wBAAwB,EAAW,EAAU,EAAU,EAAQ,GAAa,CAAC,EAAK,KAC3G,GAAI,EACF,OAAO,EAAO,GAEhB,EAAQ,EAAM,GACd,GAER","file":"/npm/react-native-pixel-image-color@0.1.1/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/react-native-pixel-image-color@0.1.1/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import {\n  NativeModules,\n} from 'react-native';\n\nexport function getPixelRGBA(imageName, x, y) {\n  return new Promise((resolve, reject) => {\n      NativeModules.RNPixelColor.getPixelRGBAofImage(imageName, x, y, (err, color) => {        \n        if (err) {\n          return reject(err);\n        }\n        resolve(color);\n      });\n  });\n}\n\nexport function getPixelRGBAPolar(imageName, angle, radius) {\n  return new Promise((resolve, reject) => {\n      NativeModules.RNPixelColor.getPixelRGBAPolarOfImage(imageName, angle, radius, (err, color) => {        \n        if (err) {\n          return reject(err);\n        }\n        resolve(color);\n      });\n  });\n}\n\nexport function findAngleOfNearestColor(imageName, minAngle, maxAngle, radius, targetColor) {\n  return new Promise((resolve, reject) => {\n      NativeModules.RNPixelColor.findAngleOfNearestColor(imageName, minAngle, maxAngle, radius, targetColor, (err, angle) => {        \n        if (err) {\n          return reject(err);\n        }\n        resolve(angle);\n      });\n  });\n}"]}