Files
discord-decomp/modules/collectibles/profile_effects/native/getAssetWHRatio.tsx
T
2026-11-01 12:12:55 +02:00

14 lines
343 B
TypeScript

// Metro module 8063 (f8064).
export const DEFAULT_PROFILE_EFFECT_WH_RATIO = 0.5113636363636364;
export function getAssetWHRatio(a0) {
let width = a0.width;
if (!(width != null && !(width <= 0))) {
width = 450;
}
let height = a0.height;
if (!(height != null && !(height <= 0))) {
height = 880;
}
return width / height;
}