43 lines
1.6 KiB
TypeScript
43 lines
1.6 KiB
TypeScript
// Module ID: 9288
|
|
// Function ID: 9289
|
|
// Name: map
|
|
// Dependencies: [9289, 4734, 4751, 2]
|
|
// Exports: scaleLineHeight, scaleTextLineHeight, useScaledTextLineHeight
|
|
|
|
// Module 9288 (map)
|
|
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) {
|
|
const scaledHeightForText = importDefault(9289).getScaledHeightForText(arg0);
|
|
const result = map.set(arg0, scaledHeightForText);
|
|
value = scaledHeightForText;
|
|
const obj2 = importDefault(9289);
|
|
}
|
|
return value;
|
|
};
|
|
export const scaleTextLineHeight = function scaleTextLineHeight(c10, fontScale) {
|
|
const lineHeight = require(4734) /* Text */.TextStyleSheet[c10].lineHeight;
|
|
let value = map.get(lineHeight);
|
|
if (null == value) {
|
|
const scaledHeightForText = importDefault(9289).getScaledHeightForText(lineHeight);
|
|
const result = map.set(lineHeight, scaledHeightForText);
|
|
value = scaledHeightForText;
|
|
const obj2 = importDefault(9289);
|
|
}
|
|
return value;
|
|
};
|
|
export const useScaledTextLineHeight = function useScaledTextLineHeight(c3) {
|
|
const fontScale = require(4751) /* getFontScale */.useFontScale();
|
|
const lineHeight = require(4734) /* Text */.TextStyleSheet[c3].lineHeight;
|
|
let value = map.get(lineHeight);
|
|
if (null == value) {
|
|
const scaledHeightForText = importDefault(9289).getScaledHeightForText(lineHeight);
|
|
const result = map.set(lineHeight, scaledHeightForText);
|
|
value = scaledHeightForText;
|
|
const obj3 = importDefault(9289);
|
|
}
|
|
return value;
|
|
};
|