2026-09-02 09:53:35 +00:00
|
|
|
// Module ID: 9102
|
|
|
|
|
// Function ID: 9103
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: map
|
2026-09-02 09:53:35 +00:00
|
|
|
// Dependencies: [9103, 4474, 4935, 2]
|
2026-07-29 08:29:29 +00:00
|
|
|
// Exports: scaleLineHeight, scaleTextLineHeight, useScaledTextLineHeight
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-02 09:53:35 +00:00
|
|
|
// Module 9102 (map)
|
2026-08-24 06:08:38 +00:00
|
|
|
import set from "set" /* 2 */;
|
2026-09-01 10:26:29 +00:00
|
|
|
import Text from "Text" /* 4474 */;
|
|
|
|
|
import getFontScale from "getFontScale" /* 4935 */;
|
2026-09-02 09:53:35 +00:00
|
|
|
import enforcingDefault from "enforcing" /* 9103 */;
|
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-09-02 09:53:35 +00:00
|
|
|
export const useScaledTextLineHeight = function useScaledTextLineHeight(anchor) {
|
2026-08-24 06:08:38 +00:00
|
|
|
const fontScale = getFontScale.useFontScale();
|
2026-09-02 09:53:35 +00:00
|
|
|
const lineHeight = Text.TextStyleSheet[anchor].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;
|
|
|
|
|
};
|