Files
infocom-systems-design/node_modules/mermaid/dist/rendering-util/layout-algorithms/cose-bilkent/layout.d.ts
2025-10-03 22:27:28 +03:00

21 lines
910 B
TypeScript

import type { MermaidConfig } from '../../../config.type.js';
import type { LayoutData } from '../../types.js';
import type { LayoutResult } from './types.js';
/**
* Execute the cose-bilkent layout algorithm on generic layout data
*
* This function takes layout data and uses Cytoscape with the cose-bilkent
* algorithm to calculate optimal node positions and edge paths.
*
* @param data - The layout data containing nodes, edges, and configuration
* @param config - Mermaid configuration object
* @returns Promise resolving to layout result with positioned nodes and edges
*/
export declare function executeCoseBilkentLayout(data: LayoutData, _config: MermaidConfig): Promise<LayoutResult>;
/**
* Validate layout data structure
* @param data - The data to validate
* @returns True if data is valid, throws error otherwise
*/
export declare function validateLayoutData(data: LayoutData): boolean;