Comments (2)
@pointbre thank you for analysis in your update. Can you test mmdc
cli directly with width both on as an argument and in a config json? Looking at mmdcs' source code here
https://github.com/mermaidjs/mermaid.cli/blob/master/index.js#L85
They seem to be setting viewport width and height only from CLI argument (or default) but not picking it up from the config json at all.
It does make sense to use the same defaults as mmdc though (width 800, height 600)
from mermaid-filter.
@raghur You're absolutely right.
- Only with configuration json file which has
"width": 2000
: width --> 784 px - Only with command line argument
-w 1000
: width --> 984 px - With configuration json file which has
"width": 2000
and command line argument-w 1000
: width --> 984 px
In short, mermaid-cli doesn't take width from configuration json file.
from mermaid-filter.
Related Issues (20)
- can we place nodes relative to each other? HOT 1
- Publishing a new NPM release HOT 1
- Please upgrade to mermaid-cli v9 HOT 4
- Allow embedding `svg` directly into the HTML document HOT 1
- DeprecationWarning: Buffer() is deprecated
- Google slides fail to show mermaid images embeded on pptx using mermaid-filter HOT 1
- Need to install librsvg on Mac to use SVG format HOT 1
- fantastic news, sequenceDiagram working with Chinese characters too.
- Mermaid Ink Save Path Option
- I am having trouble getting the filter to work HOT 1
- [Feature request/minor bug] Allow mermaid-filter to work with Bun? HOT 1
- internal syntax error HOT 1
- Hidden graph nodes
- After fresh install, it does not work HOT 3
- pandoc-crossref cannot recognize fig id of mermaid HOT 1
- npm WARN deprecated [email protected]: < 21.5.0 is no longer supported HOT 1
- Set meta-data from command-line? HOT 1
- PNG width not working
- fontawesome not working in SVG
- Need some help with this please HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mermaid-filter.