From f2c4908acd1a4837e71169fd9b339a7eee1c63bc Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Wed, 10 Jul 2024 17:20:01 +0530 Subject: [PATCH] add max edge and max TextSize: --- README.md | 4 ++-- src/constants.ts | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4a9da9b2..d698346f 100644 --- a/README.md +++ b/README.md @@ -56,12 +56,12 @@ Currently `mermaid-to-excalidraw` only supports the :point_down: config params }; /** * Maximum number of edges to be rendered. - * @default 1000 + * @default 500 */ maxEdges?: number; /** * Maximum number of characters to be rendered. - * @default 1000 + * @default 50000 */ maxTextSize?: number; } diff --git a/src/constants.ts b/src/constants.ts index 1ed7196a..28d868f2 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -13,4 +13,6 @@ export const MERMAID_CONFIG = { // Multiplying by 1.25 to increase the font size by 25% and render correctly in Excalidraw fontSize: `${DEFAULT_FONT_SIZE * 1.25}px`, }, + maxEdges: 500, + maxTextSize: 50000, };