Closed pcarret closed 2 years ago
I think the solution to this problem is to make Elements
private and add accessors that ensure ElementsAsHtml
is updated accordingly when Elements is changed.
I will look into this.
I have separated the responsibility of the generated Html to each ISVGElement
so that SVG doesn't have to handle that. So some nice Separation of Concerns.
When removing elements and adding new one then removing, it can crash
in SVG.razor.cs
Don't you think
Elements.IndexOf(element)
value should be checked to secure the code and avoid crashes ?