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
Is your feature request related to a problem? Please describe.
There is no way to specify the size and position (page alignment: left, centered) of a produced diagram within the diagram description/code itself.
The diagram size can either be absolute (in px), or relative to the page width(in %), or unbounded.
Describe the solution you'd like
align left
size 800px 600px
or
align center
size 80%
Additional context
Right now, only some graph types support some limited configuration regarding their size via directives, some others use json/cli, and some others are sizable only via obscure CSS.
Mermaid cannot be embedded in other tools to create user-definable graphs without this. The users end up having a graph that is too big, too small, not aligned as they would like to be etc.
The text was updated successfully, but these errors were encountered:
whitenoisedev
changed the title
Let the user decide the size of the produced diagram in the code (no css/json)
Let the user decide the size and alignment of the produced diagram in the code (no css/json)
Nov 15, 2022
I would expect this issue to have garnered more attention by now. My use case is comparing two graphs. I am trying to show where a longer graph diverges from a shorter graph by (left) aligning their starting nodes. Both graphs being centered by default within the markdown causes the similarities/differences to be lost visually.
Is your feature request related to a problem? Please describe.
There is no way to specify the size and position (page alignment: left, centered) of a produced diagram within the diagram description/code itself.
The diagram size can either be absolute (in px), or relative to the page width(in %), or unbounded.
Describe the solution you'd like
or
Additional context
Right now, only some graph types support some limited configuration regarding their size via directives, some others use json/cli, and some others are sizable only via obscure CSS.
Mermaid cannot be embedded in other tools to create user-definable graphs without this. The users end up having a graph that is too big, too small, not aligned as they would like to be etc.
The text was updated successfully, but these errors were encountered: