/** * The runs of a vertical line's upright box in the HTML, with the line * height the browser uses for each: declarations of one `style` apply in * order, and a `font` shorthand resets `line-height` to `normal` unless it * carries one (`16px/2 Serif`). A run's em boxes are centred across the * column at `right + lineHeight / 2` from the box's flow top, so a run whose * line height is `normal` has no axis (NaN). */ export interface VerticalSpan { /** Along the line, px. */ top: number; /** The run's axis from the box's flow top (the physical right edge), px. */ axis: number; /** The line height in effect, px (NaN when `normal`). */ lineHeight: number; /** The font size its own `font` sets, px (undefined: inherited). */ size?: number; /** Its text, tags stripped. */ text: string; } /** The line height a `style` attribute leaves in effect. */ export declare function effectiveLineHeight(style: string): string | undefined; /** Every absolutely placed run (`top` + `right`) of `html` (a ruby base * and its reading's runs too, inside their `` and ``). */ export declare function verticalSpans(html: string): VerticalSpan[]; //# sourceMappingURL=verticalSpans.d.ts.map