dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.35k stars 9.99k forks source link

[Blazor] WASM Extension for 2D Vector drawing #16612

Closed GeorgeS2019 closed 4 years ago

GeorgeS2019 commented 4 years ago

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Currently there are two ways to create Web 2D Vector graphics using C#

The feature request would be to combine the above two possibilities in ONE Single Blazor Extension using Skia CanvasKit (WebGL). I would like community to evaluate the need for native WASM skiaSharp as a Blazor Extension that by pass the need for JSInterop.

Describe the solution you'd like

A clear and concise description of what you want to happen. Include any alternative solutions you've considered.

Native WASM skiaSharp as a Blazor Extension that by pass the need for JSInterop.

Propose a new label "Area-Blazor-Canvas" to focus users on the need to make 2D vector graphics drawing through Blazor good performance.

Additional context

Add any other context or screenshots about the feature request here.

The seem promising way to by pass JSInterop is to have native SkiaSharp WASM

Currently it is possible using Javascript to use Skia Canvaskit Webgl

GeorgeS2019 commented 4 years ago

I believe for many developers, the availability of a WASM native 2D vector graphics through SkiaSharp (WASM) in UNO makes UNO for Web an attractive option instead of Blazor for c# developer

Write once for XAML UWP and run the same code in Web, Android and iOS.

javiercn commented 4 years ago

This sounds like a great feature, but unfortunately this is not something that we would include in the core framework.