mermaid
Version:
Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.
12 lines (11 loc) • 544 B
TypeScript
import type { Point } from '../../types.js';
/**
* A point on an edge route. `axis` says how the route runs into the point: `'v'` vertically,
* `'h'` horizontally. Renderers use it to leave and reach nodes square to their sides.
*/
export interface RoutePoint extends Point {
axis: 'v' | 'h';
}
/** True when every point of a route carries an axis tag, so `routePath` can draw it. */
export declare function isAxisTaggedRoute(points: unknown): points is RoutePoint[];
export declare function ease(across: number, along: number): number;