Comments (4)
Hello @sparkie108
That happens because server-side Blazor requires that all JS interop being async.
The current Canvas implementation isn't async so it will not work. It was meant to be used on the client-side Blazor.
We can make that work but before that, there is a work on batch rendering that must be done so the performance isn't affected.
I've opened #13 to get track of it and for now, there is nothing we can do to allow server-side rendering to work.
Please follow up on that issue as I'm closing this for now.
Thanks!
from canvas.
I miss a little 'warning' on read.me page informing tabout his limitation.
from canvas.
Any progress on this issue? I really would like to use the Canvas, but I am bound to server-side Blazor...
from canvas.
Not yet.
I'll probably wait for #20 to get in. It is adding WebGL to the table and (if required) will change the API surface a bit.
Once it is done, I'll then move forward with #13 which will add async methods and as a side-effect enable server-side mode.
Use of Canvas remotely with server-side where you don't have batch rendering will probably give a very poor performance.
from canvas.
Related Issues (20)
- Blazor-server canvas flickering HOT 2
- Could not find 'BlazorExtensions.Canvas2d.add' ('BlazorExtensions' was undefined) HOT 4
- Support for Blazor Canvas Extension in .NET MAUI? HOT 6
- Scaling error. Reset scale?
- WebGL: INVALID_OPERATION: drawArrays: no valid shader program in use
- Resizing the Canvas to fit Container HOT 4
- Can we have the published release with the globalCompositeOperation support
- How to place and Image inside of the Canvas HOT 1
- Just FYI - we have a "mega-fork" of this project with quite a different goal but updated to .net6 and newer ts/webpack
- Colors are misapplied in Blazor WebAssembly ASP.NET Core hosted app when there are multiple asysnc drawings.
- CreatePatternAsync HOT 1
- How to reset the Sketchpad
- Blazor WebAssembly in process runtime
- Unable to change the stroke color per rect.
- Future plans? HOT 2
- MeasureText have only width informations HOT 4
- UniformAsync
- CreateCanvas2D (non async) isn't working
- Mouse Events to NuGet
- BECanvasComponent could not be found HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from canvas.