decord/source/__polyfill/14xxx/module_14531.js
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

37 lines
1.2 KiB
JavaScript

// Module ID: 14531
// Function ID: 14532
// Dependencies: []
// Exports: getReactNativeDimensionsWithDimensions
// Module 14531
export const getReactNativeDimensionsWithDimensions = function getReactNativeDimensionsWithDimensions(width, value) {
try {
let obj = {};
let obj2 = {};
if (width) {
const obj5 = { screenWidth: null, screenHeight: null, screenScale: null, screenFontScale: null };
const _Math = Math;
obj5.screenWidth = Math.ceil(width.width);
const _Math2 = Math;
obj5.screenHeight = Math.ceil(width.height);
({ scale: obj3.screenScale, fontScale: obj3.screenFontScale } = width);
obj = obj5;
}
if (value) {
const obj9 = { windowWidth: null, windowHeight: null, windowScale: null, windowFontScale: null };
const _Math3 = Math;
obj9.windowWidth = Math.ceil(value.width);
const _Math4 = Math;
obj9.windowHeight = Math.ceil(value.height);
({ scale: obj4.windowScale, fontScale: obj4.windowFontScale } = value);
obj2 = obj9;
}
const obj10 = {};
const merged = Object.assign(obj);
const merged1 = Object.assign(obj2);
return obj10;
} catch (err) {
return null;
}
};