MikhailKravets / mkdocs_puml

Inline PlantUML diagrams in your MkDocs documentation
MIT License
26 stars 5 forks source link

Display images in bigger screen or provide zoomable option #30

Open ravikumar2026 opened 1 year ago

ravikumar2026 commented 1 year ago

Is your feature request related to a problem? Please describe. Looking for configuration to provide width and height for the generated images.

Describe the solution you'd like along with uml, provide option to width and height

Describe alternatives you've considered Similar one is here https://github.com/mikitex70/plantuml-markdown#introduction

Additional context we do have large sequence diagrams which cant be renedered in mkdocs with existing size. if you can provide size and height, it would be great help.

tried https://github.com/blueswen/mkdocs-glightbox#usage. it works for existing images, but not for generated images

MikhailKravets commented 1 year ago

Hi @ravikumar2026, thanks for this suggestion. Currently diagrams are stored as simple <svg> tags in html page. Interesting if it's possible to keep them in an interractive block (similar to what GitHub does with Mermaid diagrams) 🤔 . As a workaraund you could zoom a whole page

ravikumar2026 commented 1 year ago

thank @MikhailKravets for the replay.

so, if it svg in a html page, do we you why glightbox doesn't work ? because, there are some existing images working with this extention.

second question, can i mention something like this

<p>
        <img width = {700px} />
       ```plantuml
</a>

MikhailKravets commented 1 year ago

Something like this would be nice SVG pan & zoom

ravikumar2026 commented 12 months ago

let me try with this