mermaid
Version:
Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.
15 lines (14 loc) • 651 B
TypeScript
import type { Node } from '../../types.js';
import type { GridOrientation } from './types.js';
export declare const GRID_LABEL_CLEARANCE = 6;
export declare const GRID_EDGE_END_MARKER_CLEARANCE = 12;
export declare const GRID_LABEL_SPAN_MARGIN = 2;
export interface GridLabelSpanRequirement {
along: number;
cross: number;
startInset: number;
endInset: number;
requiredAlongSpan: number;
}
export declare function gridLabelSpanRequirement(labelNode: Node, orientation: GridOrientation): GridLabelSpanRequirement | null;
export declare function gridLabelRequiredSegmentLength(labelNode: Node, orientation: GridOrientation): number;