Blazor-Diagrams / Blazor.Diagrams

A fully customizable and extensible all-purpose diagrams library for Blazor
https://blazor-diagrams.zhaytam.com
MIT License
919 stars 176 forks source link

Diagram.RegisterComponent no longer exists in 3.0. What is the replacement? #330

Closed LuckyScamper closed 1 year ago

LuckyScamper commented 1 year ago

To register a view with a component, say a group or node, one could perform diagram.RegisterComponent<Foo, FooView>. However, in the beta this method has been removed, and I can't see its replacement (or new way of implementation, say a factory) nor in the examples since those examples haven't been in updated yet.

zHaytam commented 1 year ago

Hello,

Since the new version, Diagram (available in the Core package) doesn't reference Blazor, so those methods have moved to the new implementation of diagram, BlazorDiagram.

See https://github.com/Blazor-Diagrams/Blazor.Diagrams/blob/develop/src/Blazor.Diagrams/BlazorDiagram.cs#L30

LuckyScamper commented 1 year ago

Thanks, issue fixed