{"ast":null,"code":"import Dimensions from \"../Dimensions\";\n\nvar PixelRatio = function () {\n  function PixelRatio() {}\n\n  PixelRatio.get = function get() {\n    return Dimensions.get('window').scale;\n  };\n\n  PixelRatio.getFontScale = function getFontScale() {\n    return Dimensions.get('window').fontScale || PixelRatio.get();\n  };\n\n  PixelRatio.getPixelSizeForLayoutSize = function getPixelSizeForLayoutSize(layoutSize) {\n    return Math.round(layoutSize * PixelRatio.get());\n  };\n\n  PixelRatio.roundToNearestPixel = function roundToNearestPixel(layoutSize) {\n    var ratio = PixelRatio.get();\n    return Math.round(layoutSize * ratio) / ratio;\n  };\n\n  return PixelRatio;\n}();\n\nexport { PixelRatio as default };","map":{"version":3,"sources":["/Users/rohitsingh/Documents/projects/new-nativebase-setup/NativeBase/example/node_modules/react-native-web/dist/exports/PixelRatio/index.js"],"names":["Dimensions","PixelRatio","get","scale","getFontScale","fontScale","getPixelSizeForLayoutSize","layoutSize","Math","round","roundToNearestPixel","ratio","default"],"mappings":"AASA,OAAOA,UAAP;;AAKA,IAAIC,UAAU,GAAgB,YAAY;AACxC,WAASA,UAAT,GAAsB,CAAE;;AAKxBA,EAAAA,UAAU,CAACC,GAAX,GAAiB,SAASA,GAAT,GAAe;AAC9B,WAAOF,UAAU,CAACE,GAAX,CAAe,QAAf,EAAyBC,KAAhC;AACD,GAFD;;AAQAF,EAAAA,UAAU,CAACG,YAAX,GAA0B,SAASA,YAAT,GAAwB;AAChD,WAAOJ,UAAU,CAACE,GAAX,CAAe,QAAf,EAAyBG,SAAzB,IAAsCJ,UAAU,CAACC,GAAX,EAA7C;AACD,GAFD;;AASAD,EAAAA,UAAU,CAACK,yBAAX,GAAuC,SAASA,yBAAT,CAAmCC,UAAnC,EAA+C;AACpF,WAAOC,IAAI,CAACC,KAAL,CAAWF,UAAU,GAAGN,UAAU,CAACC,GAAX,EAAxB,CAAP;AACD,GAFD;;AAWAD,EAAAA,UAAU,CAACS,mBAAX,GAAiC,SAASA,mBAAT,CAA6BH,UAA7B,EAAyC;AACxE,QAAII,KAAK,GAAGV,UAAU,CAACC,GAAX,EAAZ;AACA,WAAOM,IAAI,CAACC,KAAL,CAAWF,UAAU,GAAGI,KAAxB,IAAiCA,KAAxC;AACD,GAHD;;AAKA,SAAOV,UAAP;AACD,CAxC6B,EAA9B;;AA0CA,SAASA,UAAU,IAAIW,OAAvB","sourcesContent":["/**\n * Copyright (c) Nicolas Gallagher.\n * Copyright (c) Facebook, Inc. and its 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 */\nimport Dimensions from '../Dimensions';\n/**\n * PixelRatio gives access to the device pixel density.\n */\n\nvar PixelRatio = /*#__PURE__*/function () {\n  function PixelRatio() {}\n\n  /**\n   * Returns the device pixel density.\n   */\n  PixelRatio.get = function get() {\n    return Dimensions.get('window').scale;\n  }\n  /**\n   * No equivalent for Web\n   */\n  ;\n\n  PixelRatio.getFontScale = function getFontScale() {\n    return Dimensions.get('window').fontScale || PixelRatio.get();\n  }\n  /**\n   * Converts a layout size (dp) to pixel size (px).\n   * Guaranteed to return an integer number.\n   */\n  ;\n\n  PixelRatio.getPixelSizeForLayoutSize = function getPixelSizeForLayoutSize(layoutSize) {\n    return Math.round(layoutSize * PixelRatio.get());\n  }\n  /**\n   * Rounds a layout size (dp) to the nearest layout size that corresponds to\n   * an integer number of pixels. For example, on a device with a PixelRatio\n   * of 3, `PixelRatio.roundToNearestPixel(8.4) = 8.33`, which corresponds to\n   * exactly (8.33 * 3) = 25 pixels.\n   */\n  ;\n\n  PixelRatio.roundToNearestPixel = function roundToNearestPixel(layoutSize) {\n    var ratio = PixelRatio.get();\n    return Math.round(layoutSize * ratio) / ratio;\n  };\n\n  return PixelRatio;\n}();\n\nexport { PixelRatio as default };"]},"metadata":{},"sourceType":"module"}