WTG.Z.Blazor.Diagrams 4.0.21-pre.f8c24c1

Prefix Reserved
This is a prerelease version of WTG.Z.Blazor.Diagrams.
There is a newer version of this package available.
See the version list below for details.
dotnet add package WTG.Z.Blazor.Diagrams --version 4.0.21-pre.f8c24c1                
NuGet\Install-Package WTG.Z.Blazor.Diagrams -Version 4.0.21-pre.f8c24c1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WTG.Z.Blazor.Diagrams" Version="4.0.21-pre.f8c24c1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WTG.Z.Blazor.Diagrams --version 4.0.21-pre.f8c24c1                
#r "nuget: WTG.Z.Blazor.Diagrams, 4.0.21-pre.f8c24c1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install WTG.Z.Blazor.Diagrams as a Cake Addin
#addin nuget:?package=WTG.Z.Blazor.Diagrams&version=4.0.21-pre.f8c24c1&prerelease

// Install WTG.Z.Blazor.Diagrams as a Cake Tool
#tool nuget:?package=WTG.Z.Blazor.Diagrams&version=4.0.21-pre.f8c24c1&prerelease                

Blazor.Diagrams

alternate text is missing from this package README image

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 NuGet Nuget
Badges
JavaScript GitHub file size in bytes
CSS GitHub file size in bytes
Activity GitHub
License GitHub

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

alternate text is missing from this package README image

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 405 8/23/2024
4.0.21-pre.f8c24c1 73 8/19/2024
4.0.21-pre.a7ee90a 50 7/15/2024
4.0.21-pre.5ac3162 70 8/16/2024
4.0.21-pre.1829a3f 48 7/15/2024
4.0.20 195 7/15/2024
4.0.19 87 7/11/2024
4.0.18 94 7/8/2024
0.0.1 89 7/4/2024