decord/source/modules/screen/native/useScaledTextLineHeight.android.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

48 lines
1.7 KiB
TypeScript

// Module ID: 10124
// Function ID: 10125
// Name: map
// Dependencies: [10125, 4556, 4982, 2]
// Exports: scaleLineHeight, scaleTextLineHeight, useScaledTextLineHeight
// Module 10124 (map)
import set from "set" /* 2 */;
import Text from "Text" /* 4556 */;
import getFontScale from "getFontScale" /* 4982 */;
import enforcingDefault from "enforcing" /* 10125 */;
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;
};