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

zoom / pan for mermaid diagrams #5208

Closed
4 tasks done
haneul opened this issue Mar 16, 2023 · 6 comments
Closed
4 tasks done

zoom / pan for mermaid diagrams #5208

haneul opened this issue Mar 16, 2023 · 6 comments
Labels
change request Issue requests a new feature or improvement upstream Issue must be taken upstream

Comments

@haneul
Copy link

haneul commented Mar 16, 2023

Context

No response

Description

Now github provides a control for zooming / panning diagrams from mermaidjs.
That's quite helpful for showing a large diagrams. Can we have something similar with mkdocs material?
See example from https://github.com/squidfunk/mkdocs-material/blob/master/docs/reference/diagrams.md#using-flowcharts

Related links

Use Cases

Many users use mkdocs for showing diagrams, so it would be helpful.

Visuals

No response

Before submitting

@squidfunk
Copy link
Owner

Thanks for suggesting. The mkdocs-glightbox plugin already supports zooming and panning of images, and since the underlying glightbox library supports arbitrary inline content, it should be extendable to Mermaid.js diagrams without problems. Thus, this change request is better implemented in mkdocs-glightbox. Closing as out-of-scope.

@squidfunk squidfunk closed this as not planned Won't fix, can't repro, duplicate, stale Mar 17, 2023
@squidfunk squidfunk added change request Issue requests a new feature or improvement upstream Issue must be taken upstream labels Mar 17, 2023
@alexeych0
Copy link

Seems unfair. glitchbox operates with images, not diagrams.
It looks like it should be the standalone plugin like it's done for docsify: https://github.com/corentinleberre/docsify-mermaid-zoom

@squidfunk
Copy link
Owner

You are invited to write a third-party plugin or JavaScript extension. Feel free to share it here, it you do! ☺️

@datnguye
Copy link

datnguye commented Mar 3, 2024

Hey folks, is there any updates on the official supported zoom & pan here, or any recommended plugin for it?

Thanks a lot!

@55Cancri
Copy link

I need zoom and pan for a large mermaid diagram embedded in notion

@PLAYG0N
Copy link

PLAYG0N commented Aug 29, 2024

Hi all

This bothered me for too long so I made my own plugin. You can check it out here. Let me know if anything doesn't work.

Note: This plugin is still in beta!

Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change request Issue requests a new feature or improvement upstream Issue must be taken upstream
Projects
None yet
Development

No branches or pull requests

6 participants