UNPKG

mermaid

Version:

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

10 lines (9 loc) • 679 B
import type { Node } from '../../types.js'; import { type GridLayoutConfigNormalized, type GridResolvedPlacement, type GridLayoutData, type GridCellStack } from './types.js'; export declare function buildGridSourceOrder(nodes: Node[]): Map<string, number>; export declare function readGridConfig(data: GridLayoutData): GridLayoutConfigNormalized; export declare function validateGridPlacementMap(items: Iterable<Node>, config: GridLayoutConfigNormalized): void; export declare function resolveGridPlacements(items: Node[], sourceOrder: Map<string, number>, config: GridLayoutConfigNormalized): { placements: GridResolvedPlacement[]; cells: Map<string, GridCellStack>; };