A quick start Angular project that shows how to save and export an Angular Diagram component. This project includes a code snippet to save and load the Diagram as a JSON string and file stream. It also includes a code snippet to export the Diagram in PNG format.
The serialization documentation for the Syncfusion® Angular Diagram component: https://ej2.syncfusion.com/angular/documentation/diagram/serialization
The print and export documentation for the Syncfusion® Angular Diagram component: https://ej2.syncfusion.com/angular/documentation/diagram/export
Check out the online serialization example for the Angular Diagram component: https://ej2.syncfusion.com/angular/demos/#/material3/diagram/serialization
Check out the online export and print example for the Angular Diagram component: https://ej2.syncfusion.com/angular/demos/#/material3/diagram/print-export
Refer to this video for getting started with the Angular Diagram component: https://www.youtube.com/watch?v=TObiS2Lj87U
Refer to this video for creating and customizing nodes in the Angular Diagram component: https://www.youtube.com/watch?v=OnI_SMaYLOk
Refer to this video for adding and customizing connectors in the Angular Diagram component: https://www.youtube.com/watch?v=fwK8CWWBwZ4
Make sure that you have the latest versions of NodeJS and Visual Studio Code in your machine before starting to work on this project.
To run this application, you need to clone the how-to-save-and-export-an-Angular-diagram
repository and then open it in Visual Studio Code. Now, simply install all the necessary react packages into your current project using the npm install
command and run your project using the ng serve
command.