-
Notifications
You must be signed in to change notification settings - Fork 266
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
Width argument not taken into account #73
Comments
Could be related to #55. |
@Kochise : the issue has been fixed. Please, reopen if you disagree. |
It certainly seems to be ignored for me. Here's my reproducible example, just using the example diagram from the mermaid website:
|
having a similar issue as first post,
always generates a |
@tildejustin I'm observing the same issue any news on that. Did you find a workaround/fix? |
I don't think I did unfortunately, probably just upscaled the output somehow. |
Upscaling the output is not possible in some scenarios. The quality of the end result may suffer. What I did in the end is to export to SVG and use another tool to convert from SVG to the rasterized format I want. Before coming with this idea, I stared debugging Mermaid CLI (by tweaking my Brew-installed Mermaid CLI on Line 325 in 46f9581
The Puppeteer configuration (especially the viewport) is correctly populated, but the |
As mentioned here : mermaid-js/mermaid#341
npx mmdc --theme "neutral" -w "1000" -i state.mmd -o state.png
npx mmdc --theme "neutral" -w 2048 -i state.mmd -o state.png
npx mmdc --theme "forest" --width "2048" -i state.mmd -o state.png
npx mmdc --theme "neutral" -w "800" -i state.mmd -o state.png
npx mmdc --theme "neutral" -H "2048" -i state.mmd -o state.png
...
None of them change a thing, I'm still getting the same 202x346 pixels picture.
See attached picture below.
I need a better resolution to import into a LaTeX documentation.
The text was updated successfully, but these errors were encountered: