decord/source/modules/screen/native/useScaledTextLineHeight.android.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

48 lines
1.7 KiB
TypeScript

// Module ID: 10119
// Function ID: 10120
// Name: map
// Dependencies: [10120, 4556, 4982, 2]
// Exports: scaleLineHeight, scaleTextLineHeight, useScaledTextLineHeight
// Module 10119 (map)
import set from "set" /* 2 */;
import Text from "Text" /* 4556 */;
import getFontScale from "getFontScale" /* 4982 */;
import enforcingDefault from "enforcing" /* 10120 */;
const map = new Map();
let result = set.fileFinishedImporting("modules/screen/native/useScaledTextLineHeight.android.tsx");
export const scaleLineHeight = function scaleLineHeight(arg0, arg1) {
let value = map.get(arg0);
if (null == value) {
const scaledHeightForText = enforcingDefault.getScaledHeightForText(arg0);
const result = map.set(arg0, scaledHeightForText);
value = scaledHeightForText;
const obj2 = enforcingDefault;
}
return value;
};
export const scaleTextLineHeight = function scaleTextLineHeight(c10, fontScale) {
const lineHeight = Text.TextStyleSheet[c10].lineHeight;
let value = map.get(lineHeight);
if (null == value) {
const scaledHeightForText = enforcingDefault.getScaledHeightForText(lineHeight);
const result = map.set(lineHeight, scaledHeightForText);
value = scaledHeightForText;
const obj2 = enforcingDefault;
}
return value;
};
export const useScaledTextLineHeight = function useScaledTextLineHeight(beginSearch) {
const fontScale = getFontScale.useFontScale();
const lineHeight = Text.TextStyleSheet[beginSearch].lineHeight;
let value = map.get(lineHeight);
if (null == value) {
const scaledHeightForText = enforcingDefault.getScaledHeightForText(lineHeight);
const result = map.set(lineHeight, scaledHeightForText);
value = scaledHeightForText;
const obj3 = enforcingDefault;
}
return value;
};