/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ /** A caption's knockout: the paper either side of its text (px) — the links' look's (`look.ts`). */ export declare const RIBBON_CAPTION_PAD = 4; /** The widest a caption's letter draws — mono 10px, its advance 0.6em and a * margin over it (px): what keeps a caption inside the bounds before its text * is measured. */ export declare const RIBBON_CAPTION_CHAR = 6.5; /** The heaviest a link draws (px): ruled 17 Nov 2026 (#1680's review), down from 8, so two links out of one 20px bar's end each keep a line of their own. */ export declare const RIBBON_WEIGHT_MAX = 6; /** * A link's weight — its stroke's width (`Plan links.html` §15): its * quantity's third of the family's largest — above two thirds 6 * ({@link RIBBON_WEIGHT_MAX}), above one third 4, else 2 — and 1.5 for a link * with no quantity. * * @param quantity - The link's quantity's size, or `undefined` when it has none * @param largest - The largest quantity among the family's links * @returns The weight, in px */ export declare function ribbonWeight(quantity: number | undefined, largest: number): number; /** A routed link's caption: its text, and where the route centred it. */ export interface RibbonCaption { /** Its text; `undefined` for a link with no caption, which takes no line. */ label: string | undefined; /** Where its text is centred across. */ lx: number; /** Where its text's baseline sits. */ ly: number; } /** * Places each caption, in place: one the route centred near an edge moves in, * by its text's width at the widest a mono label's letter draws, so the * renderer, which fits the knockout to the text, finds it inside already; then * a caption within 60 × 12 of an earlier one steps down 12 until clear — links * sharing a source edge can land their captions on one another. * * @param ribbons - The routed links, in drawing order * @param left - The left edge nothing of a link crosses * @param right - The right edge */ export declare function placeCaptions(ribbons: readonly RibbonCaption[], left: number, right: number): void; //# sourceMappingURL=captions.d.ts.map