Blazorade.Mermaid
2.0.2
dotnet add package Blazorade.Mermaid --version 2.0.2
NuGet\Install-Package Blazorade.Mermaid -Version 2.0.2
<PackageReference Include="Blazorade.Mermaid" Version="2.0.2" />
<PackageVersion Include="Blazorade.Mermaid" Version="2.0.2" />
<PackageReference Include="Blazorade.Mermaid" />
paket add Blazorade.Mermaid --version 2.0.2
#r "nuget: Blazorade.Mermaid, 2.0.2"
#:package Blazorade.Mermaid@2.0.2
#addin nuget:?package=Blazorade.Mermaid&version=2.0.2
#tool nuget:?package=Blazorade.Mermaid&version=2.0.2
Blazorade Mermaid
Blazorade Mermaid is a library that allows you to easily add Mermaid diagrams to your Blazor application. You don't have to bother with importing the JavaScript library, or calling the right JavaScript functions in the Mermaid library at the right time.
You just add the MermaidDiagram component to your application, set its Code parameter to the Mermaid code you want to render as a diagram, the Blazorade Mermaid takes care of the rest.
Getting Started
Please refer to the Blazorade Mermaid wiki for information on how to get started with the library.
Please note that this library is still in beta phase, and the wiki is still heavily under construction. However, using Blazorade is pretty simple.
- Add a reference to
Blazorade.Mermaid - Add a
usingstatement to the following namespace:Blazorade.Mermaid.Components - Add the
<MermaidDiagram />to the page or component where you want to display a diagram. - Set the
Definitionproperty of theMermaidDiagramcomponent to the Mermaid Code you want to render as a diagram.
Blazorade Mermaid will take care of the rest for you.
Version Highlights
v2.0.2
- Fixed the JavaScript module to use async/await on all functions defined in the module to fix a promise error.
v2.0.1
- Updated reference to v11 of the Mermaid JavaScript library, using https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs
v2.0.0
- Updated reference to
Blazorade.Coreto version 4.0.0, which targets .NET 8. The previous version ofBlazorade.Coretargeted .NET 6.
v1.3.0
- Added new
HtmlRendercomponent for use with dynamically generated and changing HTML content that potentially contains Mermaid diagram definitions.
v1.2.0
- Async fix to
blazoradeMermaid.js - Added configuration option for defining the
securityLevelfor the rendered Mermaid diagrams.
v1.1.1
- Fixed a bug that caused diagrams with inline themese not to render when the diagram with inline theme was the first diagram to render after the page load. PR #7
v1.1.0
- Added the
MermaidRendercomponent which can be added on a page to render Mermaid definitions published mixed with other HTML content. Read more about how to use this component on the wiki.
v1.0.1
- Changed package icon.
- Added XML documentation file to the package to enable inline documentation with intellisense.
v1.0.0
The first stable version of Blazorade Mermaid.
- Changed the
Codeparameter on theMermaidDiagramcomponent toDefinitionto better match the terminology on the Mermaid website.
v1.0.0-beta.3
- Prefixed the generated ID for the
MermaidDiagramcomponent with the charactermto ensure that it never starts with a digit.idattributes for HTML elements MUST start with a letter, not a digit.
v1.0.0-beta.2
- Added support for updating the diagram after it has been rendered the first time.
v1.0.0-beta.1
The first published prerelease of the library.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Blazorade.Core (>= 4.0.0)
- Microsoft.AspNetCore.Components.Web (>= 8.0.17)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Blazorade.Mermaid:
| Package | Downloads |
|---|---|
|
MudraX.XAF.Editors.Blazor
Editor.Blazor module for Devexpress XAF |
|
|
Frank.Blazor.Mermaid
Wrapper for Blazorade Mermaid |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Blazorade.Mermaid:
| Repository | Stars |
|---|---|
|
weibaohui/blazork8s
manage k8s using c# blazor enhance by chatgpt ,try something new !使用blazor技术开发的内置OpenAI GPT的k8s 管理界面
|
For details about this release, check out the release notes on Nuget at Blazorade.Mermaid.