mermaid
Version:
Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.
15 lines (14 loc) • 734 B
TypeScript
import type { LayoutData } from '../../../types.js';
type LayoutNode = NonNullable<LayoutData['nodes']>[number] & {
swimlaneContentTop?: number;
};
type Direction = 'LR' | 'RL';
export declare function applyBtDirectionTransform(layout: LayoutData): boolean;
/**
* How far the LR/RL transform stretches the flow axis: the diagram's own nodes' average
* width over their average height, never below 1. Edge labels and groups do not count, so a
* label cannot stretch the flow axis. Anchored nodes ride on their host and do not count either.
*/
export declare function flowAxisStretch(nodes: LayoutNode[]): number;
export declare function applyLrDirectionTransform(layout: LayoutData, direction?: Direction): boolean;
export {};