feat: add Mermaid conversion types to types.ts

This commit is contained in:
francisco
2025-11-01 13:58:22 -03:00
parent f8c0c85491
commit daa4431098
+24
View File
@@ -208,6 +208,30 @@ export interface SyncStatusMessage extends WebSocketMessage {
timestamp: string;
}
// Mermaid conversion types
export interface MermaidConfig {
startOnLoad?: boolean;
flowchart?: {
curve?: 'linear' | 'basis';
};
themeVariables?: {
fontSize?: string;
};
maxEdges?: number;
maxTextSize?: number;
}
export interface MermaidConversionRequest {
mermaidDiagram: string;
config?: MermaidConfig;
}
export interface MermaidConversionResponse extends ApiResponse {
elements: ServerElement[];
files?: any;
count: number;
}
// In-memory storage for Excalidraw elements
export const elements = new Map<string, ServerElement>();