When following along going through the readme, at first I couldn't get the code to compile. Going through the source code, I found out that I also needed the following using entries in _Imports.razor for it to compile:
@using Blazor.Extensions for the BECanvasComponent and
@using Blazor.Extensions.Canvas.Canvas2D for the Canvas2DContext.
This mismatch between the code and the readme.md file could be fixed in two ways, or a combination, depending on what fits better:
Align the namespaces to all be Blazor.Extension.Canvas
Update the readme.md file to say that the above-mentioned namespaces are also necessary
When following along going through the readme, at first I couldn't get the code to compile. Going through the source code, I found out that I also needed the following
using
entries in_Imports.razor
for it to compile:@using Blazor.Extensions
for theBECanvasComponent
and@using Blazor.Extensions.Canvas.Canvas2D
for theCanvas2DContext
.This mismatch between the code and the readme.md file could be fixed in two ways, or a combination, depending on what fits better: