62 lines
3.1 KiB
JavaScript
62 lines
3.1 KiB
JavaScript
/* Metro module 6405; source: unknown; dependencies: [27] */
|
|
import * as ReactNativeModule from './module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
|
|
function _fun50200(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#50200, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6583:6, offset: 0x01213bb9, size: 164 bytes, params: 8, frame: 18
|
|
const measureLayout_50201 = function(a0, a1) {
|
|
return measureLayoutRelative(a0, a0, a1);
|
|
};
|
|
const areDimensionsEqual2 = areDimensionsEqual;
|
|
const closure2 = function(a0) {
|
|
return PixelRatio.roundToNearestPixel(a0);
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.areDimensionsNotEqual = function(a0, a1) {
|
|
return !areDimensionsEqual(a0, a1);
|
|
};
|
|
exports.areDimensionsEqual = areDimensionsEqual2;
|
|
exports.roundOffPixel = closure2;
|
|
exports.measureParentSize = function(a0) {
|
|
return measureLayout_50201(a0, undefined);
|
|
};
|
|
exports.measureFirstChildLayout = function(a0, a1) {
|
|
return measureLayoutRelative(a0, a1, undefined);
|
|
};
|
|
exports.measureItemLayout = function(a0, a1) {
|
|
return measureLayout_50201(a0, a1);
|
|
};
|
|
function measureLayoutRelative(a0, a1, a2) { // fn#50202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6583:181, offset: 0x01213c75, size: 120 bytes, params: 4, frame: 16
|
|
const object = {'x': 0, 'y': 0, 'width': 0, 'height': 0};
|
|
a0.measureLayout(a1, _fun50203);
|
|
if (a2) {
|
|
if (areDimensionsEqual(object.width, a2.width)) {
|
|
object.width = a2.width;
|
|
}
|
|
if (areDimensionsEqual(object.height, a2.height)) {
|
|
object.height = a2.height;
|
|
}
|
|
}
|
|
return object;
|
|
function _fun50203(a0, a1, a2, a3) { // fn#50203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6583:278, offset: 0x01213ced, size: 64 bytes, params: 5, frame: 12
|
|
ReactNativeModule.PixelRatio.x = a0;
|
|
ReactNativeModule.PixelRatio.y = a1;
|
|
const roundOffPixelBinding = roundOffPixel;
|
|
ReactNativeModule.PixelRatio.width = roundOffPixelBinding(a2);
|
|
ReactNativeModule.PixelRatio.height = roundOffPixelBinding(a3);
|
|
}
|
|
|
|
}
|
|
|
|
function areDimensionsEqual(a0, a1) { // fn#50204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6583:483, offset: 0x01213d2d, size: 71 bytes, params: 3, frame: 14
|
|
const Math = global.Math;
|
|
const abs = Math.abs;
|
|
let getPixelSizeForLayoutSize = PixelRatio.getPixelSizeForLayoutSize;
|
|
const value2 = Reflect.apply(getPixelSizeForLayoutSize, PixelRatio, [a0]);
|
|
getPixelSizeForLayoutSize = PixelRatio.getPixelSizeForLayoutSize;
|
|
return Reflect.apply(abs, Math, [value2 - Reflect.apply(getPixelSizeForLayoutSize, PixelRatio, [a1])]) <= 1;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun50200, 6405, [27]) /* metro module 6405, dependencies: [27] */;
|