repowiseblazor-diagrams/blazor.diagrams

Architecture of blazor-diagrams/blazor.diagrams

blazor-diagrams/blazor.diagrams is 295 source files holding 1,957 symbols across 5 modules, written mainly in C#, JavaScript, TypeScript. The largest module is src, with 113 files, and 34 files are entry points into the dependency graph.

How blazor.diagrams fits together

The library code lives in the src directory, and src/Blazor.Diagrams.Core/Blazor.Diagrams.Core.csproj is the core project. The data layer of models is kept separate from the UI layer of widgets, which lets the same diagram model be rendered in different places. Nodes and links are drawn in an SVG layer, and nodes can also use an HTML layer. Most of the code is C#, and JavaScript is used only where needed, such as for bounds and observers. The samples directory contains sample projects, such as samples/Wasm/Wasm.csproj, and docs/Diagram-Demo/Program.cs is one of the demo entry points. The tests directory holds the test suite, and .github/workflows/main.yml defines the repository's workflow.

Largest modules

  • src: 113 files and 5,023 lines of code
  • samples: 91 files and 49,468 lines of code
  • site: 34 files and 2,531 lines of code
  • docs: 27 files and 713 lines of code
  • tests: 25 files and 2,153 lines of code
  • .github: 3 files and 108 lines of code
  • root: 2 files and 523 lines of code

Languages

By file count: C# 213 files, JavaScript 23 files, TypeScript 1 file.

Documentation

Repowise documents blazor.diagrams in 331 pages generated from the source.

More on blazor.diagrams: summary and FAQ, codebase overview, code health.

Related guide: Best dependency graph tools for monorepos