react-canvaskit
react-canvaskit copied to clipboard
How to draw svg and images using react-canvaskit
I want to draw svg and images on canvas, it seems react-canvaskit does not provide these functions, is there any way?
It's certianly possible but it seems react-canvaskit doesn't to have that api mapped from canvaskit. I'll see if I can update the canvaskit dependency and add image support.
work is being done in https://github.com/udevbe/react-canvaskit/tree/canvaskit-wasm-update All but offscreen rendering is working, once that is done, I'll add image support.
OK, thank you. Looking forward to your updates.
work is being done in https://github.com/udevbe/react-canvaskit/tree/canvaskit-wasm-update All but offscreen rendering is working, once that is done, I'll add image support.
I've just discovered this excellent repo, is there any example for current svg support ?
Unfortunately most of my time is currently spend developing greenfield.
I'll see if I can continue and fix up the upgrade branch and add basic image support in the next few days.
I've added encoded image support (tested with png). SVG images don't seem to be supported by canvaskit, only individual SVG paths.