36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
// Metro module 9911 (f9912).
|
|
import Module9912 from "../../../_bundle/Module9912";
|
|
import { TextStyleSheet } from "../../../design/components/Text/native/Text";
|
|
import { useFontScale } from "./useFontScale";
|
|
let c6580_3 = new Map();
|
|
export function scaleLineHeight(a0) {
|
|
let r6 = c6580_3.get(a0);
|
|
if (r6 == null) {
|
|
const scaledHeightForText = Module9912.getScaledHeightForText(a0);
|
|
c6580_3.set(a0, scaledHeightForText);
|
|
r6 = scaledHeightForText;
|
|
}
|
|
return r6;
|
|
}
|
|
export function scaleTextLineHeight(a0, a1) {
|
|
const lineHeight = TextStyleSheet[a0].lineHeight;
|
|
let r13 = c6580_3.get(lineHeight);
|
|
if (r13 == null) {
|
|
const scaledHeightForText = Module9912.getScaledHeightForText(lineHeight);
|
|
c6580_3.set(lineHeight, scaledHeightForText);
|
|
r13 = scaledHeightForText;
|
|
}
|
|
return r13;
|
|
}
|
|
export function useScaledTextLineHeight(a0) {
|
|
useFontScale();
|
|
const lineHeight = TextStyleSheet[a0].lineHeight;
|
|
let r17 = c6580_3.get(lineHeight);
|
|
if (r17 == null) {
|
|
const scaledHeightForText = Module9912.getScaledHeightForText(lineHeight);
|
|
c6580_3.set(lineHeight, scaledHeightForText);
|
|
r17 = scaledHeightForText;
|
|
}
|
|
return r17;
|
|
}
|