Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/36/46d170281af0ab469041dd93a38f745779f61123fd4bc33ca0d398cde0574832b41e28
T
2025-10-24 02:40:54 +00:00

1 line
4.6 KiB
Plaintext

{"dependencies":[{"name":"@babel/runtime/helpers/interopRequireDefault","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"kslwqCIsh6ew+I1KeA1rlVRjsAk=","exportNames":["*"]}},{"name":"../Dimensions","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":11,"column":0,"index":235},"end":{"line":11,"column":39,"index":274}}],"key":"EbYpQpVroIaqKOn2gPUtrpyDwfw=","exportNames":["*"]}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n var _interopRequireDefault = require(_dependencyMap[0], \"@babel/runtime/helpers/interopRequireDefault\");\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.default = void 0;\n var _Dimensions = _interopRequireDefault(require(_dependencyMap[1], \"../Dimensions\"));\n /**\n * Copyright (c) Nicolas Gallagher.\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 */\n\n /**\n * PixelRatio gives access to the device pixel density.\n */\n class PixelRatio {\n /**\n * Returns the device pixel density.\n */\n static get() {\n return _Dimensions.default.get('window').scale;\n }\n\n /**\n * No equivalent for Web\n */\n static getFontScale() {\n return _Dimensions.default.get('window').fontScale || PixelRatio.get();\n }\n\n /**\n * Converts a layout size (dp) to pixel size (px).\n * Guaranteed to return an integer number.\n */\n static getPixelSizeForLayoutSize(layoutSize) {\n return Math.round(layoutSize * PixelRatio.get());\n }\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 static roundToNearestPixel(layoutSize) {\n var ratio = PixelRatio.get();\n return Math.round(layoutSize * ratio) / ratio;\n }\n }\n exports.default = PixelRatio;\n});","lineCount":56,"map":[[7,2,11,0],[7,6,11,0,"_Dimensions"],[7,17,11,0],[7,20,11,0,"_interopRequireDefault"],[7,42,11,0],[7,43,11,0,"require"],[7,50,11,0],[7,51,11,0,"_dependencyMap"],[7,65,11,0],[8,2,1,0],[9,0,2,0],[10,0,3,0],[11,0,4,0],[12,0,5,0],[13,0,6,0],[14,0,7,0],[15,0,8,0],[16,0,9,0],[18,2,13,0],[19,0,14,0],[20,0,15,0],[21,2,16,15],[21,8,16,21,"PixelRatio"],[21,18,16,31],[21,19,16,32],[22,4,17,2],[23,0,18,0],[24,0,19,0],[25,4,20,2],[25,11,20,9,"get"],[25,14,20,12,"get"],[25,15,20,12],[25,17,20,15],[26,6,21,4],[26,13,21,11,"Dimensions"],[26,32,21,21],[26,33,21,22,"get"],[26,36,21,25],[26,37,21,26],[26,45,21,34],[26,46,21,35],[26,47,21,36,"scale"],[26,52,21,41],[27,4,22,2],[29,4,24,2],[30,0,25,0],[31,0,26,0],[32,4,27,2],[32,11,27,9,"getFontScale"],[32,23,27,21,"getFontScale"],[32,24,27,21],[32,26,27,24],[33,6,28,4],[33,13,28,11,"Dimensions"],[33,32,28,21],[33,33,28,22,"get"],[33,36,28,25],[33,37,28,26],[33,45,28,34],[33,46,28,35],[33,47,28,36,"fontScale"],[33,56,28,45],[33,60,28,49,"PixelRatio"],[33,70,28,59],[33,71,28,60,"get"],[33,74,28,63],[33,75,28,64],[33,76,28,65],[34,4,29,2],[36,4,31,2],[37,0,32,0],[38,0,33,0],[39,0,34,0],[40,4,35,2],[40,11,35,9,"getPixelSizeForLayoutSize"],[40,36,35,34,"getPixelSizeForLayoutSize"],[40,37,35,35,"layoutSize"],[40,47,35,45],[40,49,35,47],[41,6,36,4],[41,13,36,11,"Math"],[41,17,36,15],[41,18,36,16,"round"],[41,23,36,21],[41,24,36,22,"layoutSize"],[41,34,36,32],[41,37,36,35,"PixelRatio"],[41,47,36,45],[41,48,36,46,"get"],[41,51,36,49],[41,52,36,50],[41,53,36,51],[41,54,36,52],[42,4,37,2],[44,4,39,2],[45,0,40,0],[46,0,41,0],[47,0,42,0],[48,0,43,0],[49,0,44,0],[50,4,45,2],[50,11,45,9,"roundToNearestPixel"],[50,30,45,28,"roundToNearestPixel"],[50,31,45,29,"layoutSize"],[50,41,45,39],[50,43,45,41],[51,6,46,4],[51,10,46,8,"ratio"],[51,15,46,13],[51,18,46,16,"PixelRatio"],[51,28,46,26],[51,29,46,27,"get"],[51,32,46,30],[51,33,46,31],[51,34,46,32],[52,6,47,4],[52,13,47,11,"Math"],[52,17,47,15],[52,18,47,16,"round"],[52,23,47,21],[52,24,47,22,"layoutSize"],[52,34,47,32],[52,37,47,35,"ratio"],[52,42,47,40],[52,43,47,41],[52,46,47,44,"ratio"],[52,51,47,49],[53,4,48,2],[54,2,49,0],[55,2,49,1,"exports"],[55,9,49,1],[55,10,49,1,"default"],[55,17,49,1],[55,20,49,1,"PixelRatio"],[55,30,49,1],[56,0,49,1],[56,3]],"functionMap":{"names":["<global>","PixelRatio","PixelRatio.get","PixelRatio.getFontScale","PixelRatio.getPixelSizeForLayoutSize","PixelRatio.roundToNearestPixel"],"mappings":"AAA;eCe;ECI;GDE;EEK;GFE;EGM;GHE;EIQ;GJG"}},"type":"js/module"}]}