/** * Centralized layout/typography constants. * * Each visual element used to inline its own `Math.max(cellSize * X, Y) * scale` * formula. The factors were close but not identical, and a tweak in one * place silently shifted relative balance vs. the others. Routing every * font-size and inset through this module keeps the relationships explicit. */ import type { GridLayout } from './grid.js'; /** Highlight color for layout errors (label collision, failed routing). */ export declare const ERROR_COLOR = "#e02020"; /** * Per-element font-size factors. The `min` value is the absolute pixel * floor used at very small canvas sizes. */ export declare const FONT: { readonly node: { readonly factor: 0.065; readonly min: 12; }; readonly connector: { readonly factor: 0.058; readonly min: 10; }; readonly region: { readonly factor: 0.06; readonly min: 11; }; readonly note: { readonly factor: 0.055; readonly min: 10; }; }; export type FontKind = keyof typeof FONT; /** Resolve a font size for an element, applying its `labelScale` override. */ export declare function fontSize(layout: GridLayout, kind: FontKind, scale?: number): number; /** Visible gap between adjacent regions, scaled to cell size. */ export declare function regionInset(layout: GridLayout): number; /** Default region corner radius when not overridden by `RegionDef.borderRadius`. */ export declare function regionDefaultRadius(layout: GridLayout): number; //# sourceMappingURL=metrics.d.ts.map