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

Is it possible to export and load again diagrams? #368

Closed petarvu closed 8 months ago

petarvu commented 8 months ago

Hi

We are playing with Blazor.Diagrams and are wondering about export and load functionality. Is it possible to export/load JSON diagrams?

zHaytam commented 8 months ago

Hello,

There is no out-of-the-box solution for export/import because the library is designed to be extensible and customizable.

However, since everything is object-oriented, you can export whatever information you want using System.Text.Json and import it how you want. For example, you create DTO classes, convert the diagram objects to those types, then simply serialize those.