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

Add Zoom and Pan to Diagrams? (ER Diagram very tiny) #103

Open
plbremer opened this issue Apr 23, 2024 · 5 comments
Open

Add Zoom and Pan to Diagrams? (ER Diagram very tiny) #103

plbremer opened this issue Apr 23, 2024 · 5 comments
Labels
keep in mind Keep that issue in mind, coul be useful later. mermaid-js This isssue relates to the mermaid javascript library mkdocs-material This issue is connected with the mkdocs-material API

Comments

@plbremer
Copy link

I am not sure if I should be asking this on the mkdocs main repo or here.

The font size of my rendered ER Diagram is so small that it is unusable.

What is the recommended way to make this rendered diagram usable? I looked around and could not find any sort of config to add a zoom/scroll wheel. I am not sure where to start in terms of generating an image from a given markdown. Any advice would be appreciated!

image
Copy link

Thank you for your contribution! This is very appreciated.

@fralau
Copy link
Owner

fralau commented Apr 27, 2024

Beautiful diagram!

It is an issue on which I have had my attention on for some time. In principle, the Mermaid2 plugin doesn't do any theming or css. It is using the standard Mermaid standard javascript library, in the context of your MkDocs theme.

So, the starting point would be: which MkDocs theme are you using?

Is it Material, you might be in a better position. It doesn't mean that the theme's author (@squidfunk) would be able to fix this issue for you. But he might have some idea on where to look for a solution?

@fralau fralau added info needed Further information is requested mermaid-js This isssue relates to the mermaid javascript library labels Apr 27, 2024
@squidfunk
Copy link

Thanks for tagging! Related issue: squidfunk/mkdocs-material#5208

@fralau fralau added the mkdocs-material This issue is connected with the mkdocs-material API label Apr 27, 2024
@plbremer
Copy link
Author

Hi
Thanks for the response.
I made my own topic here: squidfunk/mkdocs-material#7095

TLDR - I have about 0 hope of making a custom plugin in an amount of time that works. I was going to basically involve the mermaid javascript cli directly as a workaround. I ended up going with a different diagram entirely, rendering this moot.

@fralau
Copy link
Owner

fralau commented Jun 3, 2024

I note @squidfunk suggestion to use mkdocs-glitchbox.

For squidfunk/mkdocs-material#7095, I already thought of pre-producing images, but so far I have decided against it. The main advantage of the javascript library being that it is interactive (hyperlink are available).

@fralau fralau changed the title Rendered ER Diagram Very Tiny Add Zoom and Pan to Diagrams? (ER Diagram very tiny) Jun 3, 2024
@fralau fralau added keep in mind Keep that issue in mind, coul be useful later. and removed info needed Further information is requested labels Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
keep in mind Keep that issue in mind, coul be useful later. mermaid-js This isssue relates to the mermaid javascript library mkdocs-material This issue is connected with the mkdocs-material API
Projects
None yet
Development

No branches or pull requests

3 participants