WTG.Z.Blazor.Diagrams
4.0.21-pre.a7ee90a
Prefix Reserved
See the version list below for details.
dotnet add package WTG.Z.Blazor.Diagrams --version 4.0.21-pre.a7ee90a
NuGet\Install-Package WTG.Z.Blazor.Diagrams -Version 4.0.21-pre.a7ee90a
<PackageReference Include="WTG.Z.Blazor.Diagrams" Version="4.0.21-pre.a7ee90a" />
paket add WTG.Z.Blazor.Diagrams --version 4.0.21-pre.a7ee90a
#r "nuget: WTG.Z.Blazor.Diagrams, 4.0.21-pre.a7ee90a"
// Install WTG.Z.Blazor.Diagrams as a Cake Addin #addin nuget:?package=WTG.Z.Blazor.Diagrams&version=4.0.21-pre.a7ee90a&prerelease // Install WTG.Z.Blazor.Diagrams as a Cake Tool #tool nuget:?package=WTG.Z.Blazor.Diagrams&version=4.0.21-pre.a7ee90a&prerelease
Blazor.Diagrams
Z.Blazor.Diagrams is a fully customizable and extensible all-purpose diagrams library for Blazor (both Server Side and WASM). It was first inspired by the popular React library react-diagrams, but then evolved into something much bigger. ZBD can be used to make advanced diagrams with a custom design. Even the behavior of the library is "hackable" and can be changed to suit your needs.
WTG.Z.Blazor.Diagarms is a fork of Z.Blazor.Diagrams with new features and bug fixes first targeting WiseTech Global products.
NuGet Package | Version | Download |
---|---|---|
WTG.Z.Blazor.Diagrams |
Badges | |
---|---|
JavaScript | |
CSS | |
Activity | |
License |
Mindset/Goals
- Be multi purpose and useful for most diagramming use cases. ZBD started as a diagramming library for specific use cases, but it is now expanding to be more generic and more useful.
- Performance is very important, especially in WebAssembly.
- Separate the data layer (models) and the UI layer (widgets). Representing diagrams as a model has a lot of benefits, and the separation makes things easier, such as saving snapshots or mutating models, regardless of how/where it's gonna be rendered.
- Be fully customizable, either in how things look or how things behave. All of the UI can be customized by either providing Blazor components or using CSS. All of the default behaviors are customizable by replacing them with your own custom behaviors.
- Avoid JavaScript. 95% of ZBD is made using C#/Blazor, JS is only used when absolutely necessary (e.g. bounds and observers). JS interop calls are costly, in the future, we strive to have most of them batched and/or replaced.
Features
- Multi purpose
- Touch support
- SVG layer for links/nodes and HTML layer for nodes for maximum customizability
- Links between nodes, ports and even other links
- Link routers, path generators, markers and labels
- Panning, Zooming and Zooming to fit a set of nodes
- Multi selection, deletion and region selection
- Groups as first class citizen, with all the features of nodes
- Custom nodes, links and groups
- Replaceable ("Hackable") behaviors (e.g. link dragging, model deletion, etc..)
- Customizable Diagram overview/navigator for large diagrams
- Snap to Grid
- Virtualization, only draw nodes that are visible to the users
- Locking mechanism (read-only)
- Algorithms
Getting Started
You can get started very easily & quickly using:
Sample project
Repository: https://github.com/Blazor-Diagrams/Blazor.DatabaseDesigner
Contributing
All kinds of contributions are welcome! If you're interested in helping, please create an issue or comment on an existing one to explain what you will be doing. This is because multiple people can be working on the same problem.
Feedback
If you find a bug or you want to see a functionality in this library, feel free to open an issue.
Deployment
This project is hosted on NuGet. Merges to master will trigger a release action that will
- Build WTG.Z.Blazor.Diagrams
- Host the package on Github as a release
- Push it to the WTG.Z.Blazor.Diagrams NuGet Gallery
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Microsoft.AspNetCore.Components (>= 6.0.25)
- Microsoft.AspNetCore.Components.Web (>= 6.0.25)
-
net7.0
- Microsoft.AspNetCore.Components (>= 7.0.14)
- Microsoft.AspNetCore.Components.Web (>= 7.0.14)
-
net8.0
- Microsoft.AspNetCore.Components (>= 8.0.0 && < 9.0.0)
- Microsoft.AspNetCore.Components.Web (>= 8.0.0 && < 9.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
4.0.21 | 623 | 8/23/2024 |
4.0.21-pre.f8c24c1 | 77 | 8/19/2024 |
4.0.21-pre.a7ee90a | 54 | 7/15/2024 |
4.0.21-pre.5ac3162 | 75 | 8/16/2024 |
4.0.21-pre.1829a3f | 52 | 7/15/2024 |
4.0.20 | 201 | 7/15/2024 |
4.0.19 | 93 | 7/11/2024 |
4.0.18 | 100 | 7/8/2024 |
0.0.1 | 95 | 7/4/2024 |