48 lines
1.7 KiB
TypeScript
48 lines
1.7 KiB
TypeScript
// Module ID: 9027
|
|
// Function ID: 9028
|
|
// Name: map
|
|
// Dependencies: [9028, 4442, 4900, 2]
|
|
// Exports: scaleLineHeight, scaleTextLineHeight, useScaledTextLineHeight
|
|
|
|
// Module 9027 (map)
|
|
import set from "set" /* 2 */;
|
|
import Text from "Text" /* 4442 */;
|
|
import getFontScale from "getFontScale" /* 4900 */;
|
|
import enforcingDefault from "enforcing" /* 9028 */;
|
|
|
|
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(c3) {
|
|
const fontScale = getFontScale.useFontScale();
|
|
const lineHeight = Text.TextStyleSheet[c3].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;
|
|
};
|