You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I apologize if this is an ignorant or well-answered question, but I haven't been able to find quite the same variant of it that I'll be asking here.
I currently use Mermaid in a way that I'm a few layers of indirection away from being able to control its behavior via command-line or even JavaScript. Basically all I can do is generate a .mermaid file and hand it off to the rendering environment.
If you're truly curious, I've effectively added Mermaid sequence diagram generation to a JetBrains IDE plugin, and the resulting .mermaid file is rendered by the JetBrains Mermaid plugin via a JCEF-embedded browser. Like I said...several layers of indirection.
I've generated some diagrams complex enough that they result in Maximum text size in diagram exceeded. I've tried to add maxTextSize: <higherValue> to the init directive, but that doesn't seem to do anything, e.g.:
Should what I'm doing above work, at least assuming that nothing else is already explicitly setting its own value for maxTextSize? I add that qualification because I'm wondering if perhaps the Mermaid plugin is adding something like the following in the hosting content:
mermaid.initialize({maxTextSize: 150000});
and that's overriding the value I'm trying to set in the directive.
Any insights that anyone might have to share are greatly appreciated!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I apologize if this is an ignorant or well-answered question, but I haven't been able to find quite the same variant of it that I'll be asking here.
I currently use Mermaid in a way that I'm a few layers of indirection away from being able to control its behavior via command-line or even JavaScript. Basically all I can do is generate a
.mermaid
file and hand it off to the rendering environment.If you're truly curious, I've effectively added Mermaid sequence diagram generation to a JetBrains IDE plugin, and the resulting
.mermaid
file is rendered by the JetBrains Mermaid plugin via a JCEF-embedded browser. Like I said...several layers of indirection.I've generated some diagrams complex enough that they result in
Maximum text size in diagram exceeded
. I've tried to addmaxTextSize: <higherValue>
to theinit
directive, but that doesn't seem to do anything, e.g.:Should what I'm doing above work, at least assuming that nothing else is already explicitly setting its own value for
maxTextSize
? I add that qualification because I'm wondering if perhaps the Mermaid plugin is adding something like the following in the hosting content:and that's overriding the value I'm trying to set in the directive.
Any insights that anyone might have to share are greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions