37 lines
2.2 KiB
React
37 lines
2.2 KiB
React
/* Metro module 96; source: unknown; dependencies: [6, 7, 97] */
|
|
function _fun1547(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#1547, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:121:6, offset: 0x00c617a4, size: 104 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
|
exports.default = _fun1548();
|
|
}
|
|
|
|
function _fun1548() { // fn#1548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:121:118, offset: 0x00c6180c, size: 152 bytes, params: 1, frame: 16
|
|
return env0_3(PixelRatio, null, [{key: 'get', value: function() {
|
|
return require(dependencyMap[2]).default.get('window').scale;
|
|
}}, {key: 'getFontScale', value: value_1551}, {key: 'getPixelSizeForLayoutSize', value: value_1552},
|
|
{key: 'roundToNearestPixel', value: value_1553}, {key: 'startDetecting', value: function() {
|
|
}}]);
|
|
}
|
|
|
|
function value_1551() { // fn#1551, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:121:299, offset: 0x00c618f3, size: 71 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__;
|
|
const property = (require(97) /* metro dependency 97 */).default;
|
|
const get = property.get;
|
|
return Reflect.apply(get, property, ['window']).fontScale || PixelRatio.get();
|
|
}
|
|
|
|
function value_1552(a0) { // fn#1552, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:121:429, offset: 0x00c6193a, size: 43 bytes, params: 2, frame: 12
|
|
const Math = global.Math;
|
|
return Math.round(a0 * PixelRatio.get());
|
|
}
|
|
|
|
function value_1553(a0) { // fn#1553, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:121:540, offset: 0x00c61965, size: 47 bytes, params: 2, frame: 12
|
|
const value = PixelRatio.get();
|
|
const Math = global.Math;
|
|
return Math.round(a0 * value) / value;
|
|
}
|
|
|