Blazor.Diagrams
Blazor.Diagrams copied to clipboard
NavigatorWidget not work with empty Diagram
with example's razor file contains NavigatorWidget:
and *Component.cs file OnInitialized() does not Add Nodes or Links to diagram,
then, I got "Unhandled exception rendering component: Object reference not set to an instance of an object."
Hello, I will try to fix this in the upcoming version. Thanks for letting me know!
I found a few other bugs in the Navigator, and I think the whole component needs to be re-done.
The issue is that https://github.com/Blazor-Diagrams/Blazor.Diagrams/blob/9fa396040755ef97874ac3f16ceedddcdc94dbd3/src/Blazor.Diagrams/Components/NavigatorWidget.razor.cs#L19 is not initialised. You could just append = Point.Zero and it will work.