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

feat: mermaid zoom & pan #247

Closed
wants to merge 1 commit into from
Closed

Conversation

typesafeui
Copy link

This PR adds support for panning and zooming in the mermaid MD preview window

Closes #125

@dsfrederic
Copy link

Please get this merged! Important feature for big diagrams

@jersuNF
Copy link

jersuNF commented Apr 12, 2024

Can we get this pulled in?

@henrymgarrett
Copy link

We are waiting for this as well, can't read any of our diagrams anymore!

Copy link
Owner

@mjbvz mjbvz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking a look but this needs more thought and testing

Some initial things noticed from a quick test:

  • The diagram now occupies more space. This is annoying for correctly sized diagrams

  • You can end up zooming the diagram instead of scrolling. Maybe there should be an explicit button to start panning / zoom?

  • Zoom/pan gets reset everytime the markdown is updated

  • After zooming/panning you can end up with the diagram being cropped in weird ways

Screenshot 2024-04-30 at 3 08 30 PM

@mjbvz
Copy link
Owner

mjbvz commented Jun 18, 2024

Closing because this hasn't seen recent activity and can't be merged in its current state

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

Successfully merging this pull request may close these issues.

zoom support
5 participants