36 lines
910 B
TypeScript
36 lines
910 B
TypeScript
export interface MermaidConfig {
|
|
/**
|
|
* Whether to start the diagram automatically when the page loads.
|
|
* @default false
|
|
*/
|
|
startOnLoad?: boolean;
|
|
/**
|
|
* The flowchart curve style.
|
|
* @default "linear"
|
|
*/
|
|
flowchart?: {
|
|
curve?: "linear" | "basis";
|
|
};
|
|
/**
|
|
* Theme variables
|
|
* @default { fontSize: "25px" }
|
|
*/
|
|
themeVariables?: {
|
|
fontSize?: string;
|
|
};
|
|
/**
|
|
* Maximum number of edges to be rendered.
|
|
* @default 1000
|
|
*/
|
|
maxEdges?: number;
|
|
/**
|
|
* Maximum number of characters to be rendered.
|
|
* @default 1000
|
|
*/
|
|
maxTextSize?: number;
|
|
}
|
|
export interface ExcalidrawConfig {
|
|
fontSize?: number;
|
|
}
|
|
declare const parseMermaidToExcalidraw: (definition: string, config?: MermaidConfig) => Promise<import("./interfaces.js").MermaidToExcalidrawResult>;
|
|
export { parseMermaidToExcalidraw };
|