mermaid-js / mermaid

Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
https://mermaid.js.org
MIT License
70.93k stars 6.38k forks source link

Mermaid diagrams on GitHub should be zoomable and scrollable. #4022

Closed polina-c closed 1 year ago

polina-c commented 1 year ago

Description

This is example of diagram that would be much easier to read, if it was zoomable and scrollable: https://github.com/polina-c/flutter/blob/diagrams/packages/flutter/lib/src/foundation/DEPENDENCIES.md

Steps to reproduce

Screenshot 2023-01-21 at 6 59 07 PM

Screenshots

No response

Code Sample

No response

Setup

No response

Additional Context

No response

ghost commented 1 year ago

Hi polina-c.

This is example of diagram that would be much easier to read, it it was zoomable and scrollable: https://github.com/polina-c/flutter/blob/diagrams/packages/flutter/lib/src/foundation/DEPENDENCIES.md

great idea. So I will try to help this issue with a prototype. So before... please see this andersdjohnson/magnificent.js/examples/demo or this cotton123236/zoomist/index

concept image

question/feedback

polina-c commented 1 year ago

I like it! Thank you.

ghost commented 1 year ago

Hi polina-c.

I like it! Thank you.

thank you for feedback here.

polina-c commented 1 year ago

I do not see scroll bars on the image. Will they show up if diagram stops fitting the screen?

ghost commented 1 year ago

Hi polina-c.

I do not see scroll bars on the image. Will they show up if diagram stops fitting the screen?

yes.

jgreywolf commented 1 year ago

This is not something that is currently able to be done via mermaid, and would need to be done outside of the library, such as how the live editor is working now

https://mermaid.live/