decord/source/modules/screen/native/useScaledTextLineHeight.android.tsx

49 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 9598
// Function ID: 9599
2026-07-29 08:29:29 +00:00
// Name: map
2026-08-25 06:04:03 +00:00
// Dependencies: [9599, 4376, 4821, 2]
2026-07-29 08:29:29 +00:00
// Exports: scaleLineHeight, scaleTextLineHeight, useScaledTextLineHeight
2026-07-20 16:05:17 +00:00
2026-08-25 06:04:03 +00:00
// Module 9598 (map)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
2026-08-25 06:04:03 +00:00
import Text from "Text" /* 4376 */;
import getFontScale from "getFontScale" /* 4821 */;
import enforcingDefault from "enforcing" /* 9599 */;
2026-08-24 06:08:38 +00:00
2026-07-29 08:29:29 +00:00
const map = new Map();
2026-08-24 06:08:38 +00:00
let result = set.fileFinishedImporting("modules/screen/native/useScaledTextLineHeight.android.tsx");
2026-07-29 08:29:29 +00:00
export const scaleLineHeight = function scaleLineHeight(arg0, arg1) {
let value = map.get(arg0);
if (null == value) {
2026-08-24 06:08:38 +00:00
const scaledHeightForText = enforcingDefault.getScaledHeightForText(arg0);
2026-07-29 08:29:29 +00:00
const result = map.set(arg0, scaledHeightForText);
value = scaledHeightForText;
2026-08-24 06:08:38 +00:00
const obj2 = enforcingDefault;
2026-07-29 08:29:29 +00:00
}
return value;
};
2026-08-08 06:10:11 +00:00
export const scaleTextLineHeight = function scaleTextLineHeight(c10, fontScale) {
2026-08-24 06:08:38 +00:00
const lineHeight = Text.TextStyleSheet[c10].lineHeight;
2026-07-20 16:05:17 +00:00
let value = map.get(lineHeight);
if (null == value) {
2026-08-24 06:08:38 +00:00
const scaledHeightForText = enforcingDefault.getScaledHeightForText(lineHeight);
2026-07-20 16:05:17 +00:00
const result = map.set(lineHeight, scaledHeightForText);
value = scaledHeightForText;
2026-08-24 06:08:38 +00:00
const obj2 = enforcingDefault;
2026-07-29 08:29:29 +00:00
}
return value;
};
2026-07-30 10:14:41 +00:00
export const useScaledTextLineHeight = function useScaledTextLineHeight(c3) {
2026-08-24 06:08:38 +00:00
const fontScale = getFontScale.useFontScale();
const lineHeight = Text.TextStyleSheet[c3].lineHeight;
2026-07-29 08:29:29 +00:00
let value = map.get(lineHeight);
if (null == value) {
2026-08-24 06:08:38 +00:00
const scaledHeightForText = enforcingDefault.getScaledHeightForText(lineHeight);
2026-07-29 08:29:29 +00:00
const result = map.set(lineHeight, scaledHeightForText);
value = scaledHeightForText;
2026-08-24 06:08:38 +00:00
const obj3 = enforcingDefault;
2026-07-20 16:05:17 +00:00
}
return value;
};