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

18 lines
512 B
TypeScript

// Metro module 8062 (f8063).
import { getAssetWHRatio } from "./getAssetWHRatio";
export function shouldAnimate(a0, a1) {
if (a1 >= a0.start) {
if (!a0.loop && a1 > a0.duration + a0.start) {
return false;
}
if (a0.loop && a0.loopDelay !== void 0 && a0.loopDelay > 0 && (a1 - a0.start) % (a0.duration + a0?.loopDelay) > a0.duration) {
return false;
}
return true;
}
return false;
}
export function calculateProfileEffectHeight(a0, a1) {
return a1 / getAssetWHRatio(a0);
}