UNPKG

mermaid

Version:

Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.

20 lines (19 loc) • 1.2 kB
import type { Edge, LayoutData, Node } from '../../types.js'; import { type GridLabelSpanRequirement } from './labelGeometry.js'; import type { GridRoutingInstrumentation } from './routerInstrumentation.js'; import type { GridCellStack, GridContainerId, GridForest } from './types.js'; interface GridLabelledEdge { edge: Edge; labelNode: Node; } export interface GridLabelRequirements { byContainer: Map<GridContainerId, GridLabelledEdge[]>; selfLoops: Map<string, GridLabelSpanRequirement>; } export interface GridContainerLabelGaps { rowGapAfter: Map<number, number>; columnGapAfter: Map<number, number>; } export declare function buildGridLabelRequirements(data: LayoutData, forest: GridForest, metrics?: GridRoutingInstrumentation): GridLabelRequirements; export declare function deriveGridContainerLabelGaps(entries: readonly GridLabelledEdge[], cells: ReadonlyMap<string, GridCellStack>, rowHeights: ReadonlyMap<number, number>, columnWidths: ReadonlyMap<number, number>, sortedRows: readonly number[], sortedColumns: readonly number[], configuredRowGap: number, configuredColumnGap: number, metrics?: GridRoutingInstrumentation): GridContainerLabelGaps; export {};