Blazor-Diagrams / Blazor.Diagrams

A fully customizable and extensible all-purpose diagrams library for Blazor
https://blazor-diagrams.zhaytam.com
MIT License
919 stars 176 forks source link

[Question] Screenshots #358

Open tthiery opened 8 months ago

tthiery commented 8 months ago

Hi @zHaytam

thanks for this library!! I am right now playing with the idea of using it but have some questions on it

Thanks a lot!!!

zHaytam commented 8 months ago

Hello !

  1. It's a bit tricky to do, but I know some people that managed to do it with html2canvas
  2. I believe so. As far as I know, everything is supported when using the SVG equivalents
  3. Not really, as the styling is handled by the browser (SVG / CSS), the library doesn't know how to render stuff

This library is more meant to be used interactively, using it in a non-ui way would be a bit overkill to be honest.

tthiery commented 8 months ago

Thanks for the response. I can follow the thought of being focussed on interactivity. I can see use cases for rendering diagrams read-only or use server side rendering (the new blazor mode) to just display them. And this SSR mode would also enable to render html for emails and so on. Valuable I think.

zHaytam commented 8 months ago

I would love to support more read-only scenarios, to be honest, a.k.a remove interactivity events, etc so that it's very fast.
But for no-ui at all, that's a bit hard.

What is this new SSR mode? I thought Blazor already had SSR

tthiery commented 8 months ago

It is true server side rendering (as in razor pages, PHP, asp). The blazor style components can now be serialized to Html file/stream to my limited understanding. Asp.net core razor pages and razor views have never unified their component model, so I think they shoot to end that

zHaytam commented 8 months ago

I'll have to look more into that. I never really tried this library with SSR, I'll research more and see what needs to be done!