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

Autoscaling for all diagram types #175

Closed
knsv opened this issue Jun 16, 2015 · 3 comments
Closed

Autoscaling for all diagram types #175

knsv opened this issue Jun 16, 2015 · 3 comments

Comments

@knsv
Copy link
Collaborator

knsv commented Jun 16, 2015

It is not uncommon when integrating mermaid on a documentation site that some of the diagrams in the generated documentation is wider then the allocated width for the content.

As the diagrams are svgs they could scale instead of flowing over.

However it would be undesirable to have a the diagram grow in width. Imaging a single box in a flowchart diagram autoscaling to 1200px. So the diagrams should only scale to zoom out.

knsv added a commit that referenced this issue Jun 16, 2015
@knsv
Copy link
Collaborator Author

knsv commented Jun 16, 2015

As this could potentially make svgs less functional outside the browser the new functionality can be turned off with new configuration parameters:

flowchart.useMaxWidth: [true|false]
sequenceDiagram.useMaxWidth:[true|false]

@knsv
Copy link
Collaborator Author

knsv commented Jun 16, 2015

Fixed and pushed into master. Will be included in 0.5.1

@knsv
Copy link
Collaborator Author

knsv commented Jun 21, 2015

Fixed with release 0.5.1

@knsv knsv closed this as completed Jun 21, 2015
mgenereu pushed a commit to mgenereu/mermaid that referenced this issue Jun 25, 2022
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

1 participant