Skip to content
This repository has been archived by the owner on Jul 22, 2023. It is now read-only.

Scaling <svg> root to fit browser window - fix #3 #4

Closed
wants to merge 1 commit into from
Closed

Scaling <svg> root to fit browser window - fix #3 #4

wants to merge 1 commit into from

Conversation

Lucas-C
Copy link

@Lucas-C Lucas-C commented Sep 19, 2017

I did not a commander flag because I think it is always preferable to have a transparent background
What do you think ?

@tylerlong
Copy link
Contributor

Sorry for the delay. But I need to do some manual test before I can merge it.

@Lucas-C
Copy link
Author

Lucas-C commented Sep 25, 2017

No problem :)

@tylerlong
Copy link
Contributor

Finally I have some time to test it.

It works for PNG files.

But it has no effect for svg (I know svg is scalable but it's ideal to change the default size.)

It behaves strangely for pdf files.

Another concern is by default mermaid will choose a "proper" size if the page is too wide. This PR will break it, so user has to specify a proper width manually every time.

@tylerlong
Copy link
Contributor

Overall this should be a mermaid issue. Mermaid doesn't allow user to manually set a width for the charts. It figures out the width according to page width and it also doesn't always take 100% of the page width.

Feel free to create an issue for the mermaid project. I will close this PR now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants