From 6159ad30c820a54f2a8e80e29a3a516e094f71aa Mon Sep 17 00:00:00 2001 From: Ahmadali Shafiee Date: Wed, 21 Feb 2024 17:25:35 +0100 Subject: [PATCH] Increase maxEdges to fix `Error: Too many edges` rendering error --- src/config/diagramDefaults.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config/diagramDefaults.ts b/src/config/diagramDefaults.ts index d3b4e17..1b0ae0a 100644 --- a/src/config/diagramDefaults.ts +++ b/src/config/diagramDefaults.ts @@ -16,6 +16,7 @@ export const defaultMermaidOptions: MermaidConfig = { startOnLoad: false, // - This options controls whether or mermaid starts when the page loads arrowMarkerAbsolute: true, // - This options controls whether or arrow markers in html code will be absolute paths or an anchor, #. This matters if you are using base tag settings. flowchart: defaultFlowChartConfig, + maxEdges: 5000, sequence: { diagramMarginX: 50, // - margin to the right and left of the sequence diagram diagramMarginY: 10, // - margin to the over and under the sequence diagram