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

44 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-08-07 06:50:47 +00:00
// Module ID: 9387
// Function ID: 9388
2026-07-29 08:29:29 +00:00
// Name: map
2026-08-07 06:50:47 +00:00
// Dependencies: [9388, 4298, 4718, 2]
2026-07-29 08:29:29 +00:00
// Exports: scaleLineHeight, scaleTextLineHeight, useScaledTextLineHeight
2026-07-20 16:05:17 +00:00
2026-08-07 06:50:47 +00:00
// Module 9387 (map)
2026-07-29 08:29:29 +00:00
const map = new Map();
let result = require("getFontScale").fileFinishedImporting("modules/screen/native/useScaledTextLineHeight.android.tsx");
export const scaleLineHeight = function scaleLineHeight(arg0, arg1) {
let value = map.get(arg0);
if (null == value) {
2026-08-07 06:50:47 +00:00
const scaledHeightForText = importDefault(9388).getScaledHeightForText(arg0);
2026-07-29 08:29:29 +00:00
const result = map.set(arg0, scaledHeightForText);
value = scaledHeightForText;
2026-08-07 06:50:47 +00:00
const obj2 = importDefault(9388);
2026-07-29 08:29:29 +00:00
}
return value;
};
export const scaleTextLineHeight = function scaleTextLineHeight(c7, fontScale) {
2026-08-07 06:50:47 +00:00
const lineHeight = require(4298) /* Text */.TextStyleSheet[c7].lineHeight;
2026-07-20 16:05:17 +00:00
let value = map.get(lineHeight);
if (null == value) {
2026-08-07 06:50:47 +00:00
const scaledHeightForText = importDefault(9388).getScaledHeightForText(lineHeight);
2026-07-20 16:05:17 +00:00
const result = map.set(lineHeight, scaledHeightForText);
value = scaledHeightForText;
2026-08-07 06:50:47 +00:00
const obj2 = importDefault(9388);
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-07 06:50:47 +00:00
const fontScale = require(4718) /* getFontScale */.useFontScale();
const lineHeight = require(4298) /* Text */.TextStyleSheet[c3].lineHeight;
2026-07-29 08:29:29 +00:00
let value = map.get(lineHeight);
if (null == value) {
2026-08-07 06:50:47 +00:00
const scaledHeightForText = importDefault(9388).getScaledHeightForText(lineHeight);
2026-07-29 08:29:29 +00:00
const result = map.set(lineHeight, scaledHeightForText);
value = scaledHeightForText;
2026-08-07 06:50:47 +00:00
const obj3 = importDefault(9388);
2026-07-20 16:05:17 +00:00
}
return value;
};