fika-editor 3.0.35 → 3.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -129,6 +129,13 @@ export declare function contentBoxOfHost(host: HTMLElement | null | undefined):
|
|
|
129
129
|
export declare function measureUnzoomedScrollHeight(host: HTMLElement, innerWidth: number): number;
|
|
130
130
|
/** Line-box size for a run: math chips use the typeset height, not the font. */
|
|
131
131
|
export declare const runVisualSize: (run: TextFitRun) => number;
|
|
132
|
+
/**
|
|
133
|
+
* Line box for the runs sharing one line. Text costs `size × lineHeight`; a
|
|
134
|
+
* math chip is taller than its font but gets the *same* leading as the words
|
|
135
|
+
* beside it — never leading scaled by its own height — so a fraction widens
|
|
136
|
+
* the line by its excess height only, not by a 3 em gap.
|
|
137
|
+
*/
|
|
138
|
+
export declare const lineBoxHeight: (runs: TextFitRun[], sizeScale: number, lineHeight: number) => number;
|
|
132
139
|
/**
|
|
133
140
|
* Stand-in grapheme for a math chip. pretext drops items whose text is empty
|
|
134
141
|
* or whitespace-only, so a chip must carry one real `text`-kind grapheme to
|