Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maximum text size in diagram exceeded #215

Open
angela-yian opened this issue Aug 24, 2021 · 1 comment
Open

Maximum text size in diagram exceeded #215

angela-yian opened this issue Aug 24, 2021 · 1 comment

Comments

@angela-yian
Copy link

How to change text size
I add maxTextSize in src/config/diagramDefaults.ts, it seems not working.

Like this
export const defaultMermaidOptions: mermaidAPI.Config = {
securityLevel: 'loose',
maxTextSize: 5000000,
logLevel: 3, //1:debug, 2:info, 3:warn, 4:error, 5:fatal
//cloneCssStyles: true, // - This options controls whether or not the css rules should be copied into the generated svg
startOnLoad: false, // - This options controls whether or mermaid starts when the page loads

@nahyeon-an
Copy link

I'm not sure this issue has already solved or closed, I'm sharing my solution.

First, the maxTextSize should be large enough

Second, I added the same option in DiagramController.tsx, initializeMermaid() function.
const options = merge({}, defaultMermaidOptions, {theme: 'base', maxTextSize: 9999999999})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants