mermaid
Version:
Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.
27 lines (26 loc) • 1.16 kB
TypeScript
/**
* Generates SVG path data with rounded corners from an array of points.
* @param {Array} points - Array of points in the format [{x: Number, y: Number}, ...]
* @param {Number} radius - The radius of the rounded corners
* @returns {String} - SVG path data string
*/
export function generateRoundedPath(points: any[], radius: number): string;
export function applyMarkerOffsetsToPoints(points: any, edge: any): any;
export function resolveEdgeCurveType(edgeCurve: any): string | undefined;
export const edgeLabels: Map<any, any>;
export const terminalLabels: Map<any, any>;
export function clear(): void;
export function getLabelStyles(styleArray: any): any;
export function insertEdgeLabel(elem: any, edge: any): Promise<SVGGElement>;
export function positionEdgeLabel(edge: any, paths: any): void;
export function intersection(node: any, outsidePoint: any, insidePoint: any): {
x: any;
y: number;
} | {
x: number;
y: any;
};
export function insertEdge(elem: any, edge: any, clusterDb: any, diagramType: any, startNode: any, endNode: any, diagramId: any, skipIntersect?: boolean): {
updatedPath: any;
originalPath: any;
};