UNPKG

mermaid

Version:

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

9 lines (8 loc) • 502 B
import type { LayoutGraph, LayoutModel } from './types.js'; /** Returns one message per problem; an empty list means the model is valid for the graph. */ export declare function validateLayout(graph: LayoutGraph, model: LayoutModel): string[]; /** * Counts pairs of edges whose routes, taken as polylines, properly cross. Edges that share an * end point are not compared, since they fan out of one place. Each pair counts once. */ export declare function countCrossings(model: LayoutModel): number;