Skip to content

Commit

Permalink
add max edge and max TextSize:
Browse files Browse the repository at this point in the history
  • Loading branch information
ad1992 committed Jul 10, 2024
1 parent c28a563 commit f2c4908
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 2 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

0 comments on commit f2c4908

Please sign in to comment.