News for hackers. Stuff that matters.
Re:Show HN: Repaint – a WebGL based website builder by jitl on Tuesday September 03, 2024 @08:29PM (#41440659)
Skia is available for JS/WASM called “CanvasKit”, see https://skia.org/docs/user/modules/canvaskit/

It has text shaping & editing (might have helped OP) and can play back Lottie animations

It is developed by Google in part for Flutter, which uses CanvasKit by default when you compile Flutter apps for web.

https://docs.flutter.dev/platform-integration/web/renderers

Re:Show HN: Repaint – a WebGL based website builder by nikkwong on Tuesday September 03, 2024 @11:48PM (#41441720)
This is cool, but still looks painfully low level. A library one level above this would be the sweet spot that would allow people to build killer stuff on top of. (Sort of like what OPs are doing)
Re:Show HN: Repaint – a WebGL based website builder by jitl on Wednesday September 04, 2024 @12:33AM (#41441919)
Oh I agree. I guess I was just trying to say someone already put in the leg work and supports Skia for WASM, that’s all. I guess my dream pathway would be to combine Tldraw’s high level canvas editor API with Skia/WebGL backend; their current backend uses canvas a bit but is mostly SVG and HTML.
Re:Show HN: Repaint – a WebGL based website builder by izakfr on Wednesday September 04, 2024 @10:13AM (#41446084)
We actually looked into Tldraw. I read a lot of the source code and their editor is impressive. We ran into performance problems at around 1000 nodes when panning and zooming. After seeing that, we decided to make the jump to WebGL.