UNPKG

better-mermaid

Version:

Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.

25 lines (24 loc) 868 B
/** * Create a standard string for the dom ID of an item. * If a type is given, insert that before the counter, preceded by the type spacer * * @param itemId * @param counter * @param {string | null} type * @param typeSpacer * @returns {string} */ export function stateDomId(itemId?: string, counter?: number, type?: string | null, typeSpacer?: string): string; export function setConf(cnf: any): void; export function getClasses(text: string, diagramObj: any): Map<string, import('../../diagram-api/types.js').DiagramStyleClassDef>; export function draw(text: any, id: any, _version: any, diag: any): Promise<{ graph: graphlib.Graph; diagramType: string; }>; declare namespace _default { export { setConf }; export { getClasses }; export { draw }; } export default _default; import * as graphlib from 'dagre-d3-es/src/graphlib/index.js';