Canvas
Canvas copied to clipboard
HTML5 Canvas API implementation for Microsoft Blazor
从 .NET 调用 JavaScript 本部分仅适用于 Blazor WebAssembly应用。 默认情况下,JS 互操作调用是异步的,无论调用的代码是同步还是异步。 默认情况下,调用是异步的,以确保组件在 Blazor 托管模型 Blazor Server 和 Blazor WebAssembly 之间兼容。 在 Blazor Server 上,所有 JS 互操作调用必须是异步的,因为它们是通过网络连接发送的。 如果你确定你的应用只在 Blazor WebAssembly 上运行,则可以选择执行同步 JS 互操作调用。...
How to reset the Sketchpad
Do you have any examples of this being implemented? I'm not having any luck trying to port my java version to use your blazor extensions to create a drafting hatch....
The complex drawing method works fine in a Blazor Server app and a Blazor static WebAssembly app. But, if the ASP.NET Core hosted box is checked for a WebAssembly app,...
We've got a project that was heavily using this component, but is .net 6 and needed more features that we discovered others had done in forks themselves. Ultimately we ended...
I am looking for an example that places an image into the canvas. Something like the following where the the contents from the img tag is draw into the canvas....
As described in issue #83
I am looking for a way to draw images on Canvas without having to do JS Interop, but I don't see any way currently. Can this be done more elegantly...
I think this library doesn't include drawing ellipse(CanvasRenderingContext2D.ellipse()). Would you please add ellipse function?
**IN BECanvasComponent** Remove: ``` [Parameter] public long Height { get; set; } [Parameter] public long Width { get; set; } ``` Add: ``` [Parameter(CaptureUnmatchedValues = true)] public Dictionary InputAttributes {...