mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 08:51:01 +00:00
1 line
5.0 KiB
Plaintext
1 line
5.0 KiB
Plaintext
{"dependencies":[{"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":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n function _interopDefault(e) {\n return e && e.__esModule ? e : {\n default: e\n };\n }\n Object.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function () {\n return PixelRatio;\n }\n });\n var _Dimensions = require(_dependencyMap[0], \"../Dimensions\");\n var Dimensions = _interopDefault(_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});","lineCount":67,"map":[[12,2,16,15,"Object"],[12,8,16,15],[12,9,16,15,"defineProperty"],[12,23,16,15],[12,24,16,15,"exports"],[12,31,16,15],[13,4,16,15,"enumerable"],[13,14,16,15],[14,4,16,15,"get"],[14,7,16,15],[14,18,16,15,"get"],[14,19,16,15],[15,6,16,15],[15,13,16,15,"PixelRatio"],[15,23,16,15],[16,4,16,15],[17,2,16,15],[18,2,11,0],[18,6,11,0,"_Dimensions"],[18,17,11,0],[18,20,11,0,"require"],[18,27,11,0],[18,28,11,0,"_dependencyMap"],[18,42,11,0],[19,2,11,0],[19,6,11,0,"Dimensions"],[19,16,11,0],[19,19,11,0,"_interopDefault"],[19,34,11,0],[19,35,11,0,"_Dimensions"],[19,46,11,0],[20,2,1,0],[21,0,2,0],[22,0,3,0],[23,0,4,0],[24,0,5,0],[25,0,6,0],[26,0,7,0],[27,0,8,0],[28,0,9,0],[30,2,13,0],[31,0,14,0],[32,0,15,0],[33,2,16,15],[33,8,16,21,"PixelRatio"],[33,18,16,31],[33,19,16,32],[34,4,17,2],[35,0,18,0],[36,0,19,0],[37,4,20,2],[37,11,20,9,"get"],[37,14,20,12,"get"],[37,15,20,12],[37,17,20,15],[38,6,21,4],[38,13,21,11,"Dimensions"],[38,23,21,21],[38,24,21,21,"default"],[38,31,21,21],[38,32,21,22,"get"],[38,35,21,25],[38,36,21,26],[38,44,21,34],[38,45,21,35],[38,46,21,36,"scale"],[38,51,21,41],[39,4,22,2],[41,4,24,2],[42,0,25,0],[43,0,26,0],[44,4,27,2],[44,11,27,9,"getFontScale"],[44,23,27,21,"getFontScale"],[44,24,27,21],[44,26,27,24],[45,6,28,4],[45,13,28,11,"Dimensions"],[45,23,28,21],[45,24,28,21,"default"],[45,31,28,21],[45,32,28,22,"get"],[45,35,28,25],[45,36,28,26],[45,44,28,34],[45,45,28,35],[45,46,28,36,"fontScale"],[45,55,28,45],[45,59,28,49,"PixelRatio"],[45,69,28,59],[45,70,28,60,"get"],[45,73,28,63],[45,74,28,64],[45,75,28,65],[46,4,29,2],[48,4,31,2],[49,0,32,0],[50,0,33,0],[51,0,34,0],[52,4,35,2],[52,11,35,9,"getPixelSizeForLayoutSize"],[52,36,35,34,"getPixelSizeForLayoutSize"],[52,37,35,35,"layoutSize"],[52,47,35,45],[52,49,35,47],[53,6,36,4],[53,13,36,11,"Math"],[53,17,36,15],[53,18,36,16,"round"],[53,23,36,21],[53,24,36,22,"layoutSize"],[53,34,36,32],[53,37,36,35,"PixelRatio"],[53,47,36,45],[53,48,36,46,"get"],[53,51,36,49],[53,52,36,50],[53,53,36,51],[53,54,36,52],[54,4,37,2],[56,4,39,2],[57,0,40,0],[58,0,41,0],[59,0,42,0],[60,0,43,0],[61,0,44,0],[62,4,45,2],[62,11,45,9,"roundToNearestPixel"],[62,30,45,28,"roundToNearestPixel"],[62,31,45,29,"layoutSize"],[62,41,45,39],[62,43,45,41],[63,6,46,4],[63,10,46,8,"ratio"],[63,15,46,13],[63,18,46,16,"PixelRatio"],[63,28,46,26],[63,29,46,27,"get"],[63,32,46,30],[63,33,46,31],[63,34,46,32],[64,6,47,4],[64,13,47,11,"Math"],[64,17,47,15],[64,18,47,16,"round"],[64,23,47,21],[64,24,47,22,"layoutSize"],[64,34,47,32],[64,37,47,35,"ratio"],[64,42,47,40],[64,43,47,41],[64,46,47,44,"ratio"],[64,51,47,49],[65,4,48,2],[66,2,49,0],[67,0,49,1],[67,3]],"functionMap":{"names":["<global>","PixelRatio","PixelRatio.get","PixelRatio.getFontScale","PixelRatio.getPixelSizeForLayoutSize","PixelRatio.roundToNearestPixel"],"mappings":"AAA;eCe;ECI;GDE;EEK;GFE;EGM;GHE;EIQ;GJG"},"hasCjsExports":false},"type":"js/module"}]} |