News for hackers. Stuff that matters.
Re:Building a dynamic Canvas rendering engine using JSX by joshmarinacci on Friday March 15, 2024 @07:17PM (#39721686)
I don’t understand the point of this. I love canvas, but if your goal is to render buttons and other UI components then why not use the DOM? That’s what it’s there for.
Re:Building a dynamic Canvas rendering engine using JSX by percyhanna on Saturday March 16, 2024 @12:24AM (#39723372)
Perhaps I could have shared more details on this. We did explore regular DOM/HTML for some of the functionality, but we needed to build it into our existing Whiteboards stack which uses Canvas. Rendering as HTML would not have worked for use case.
Re:Building a dynamic Canvas rendering engine using JSX by bobbylarrybobby on Saturday March 16, 2024 @12:55AM (#39723494)
Doesn't Google docs use canvas these days? I think the performance is just a lot better.
Re:Building a dynamic Canvas rendering engine using JSX by FigurativeVoid on Saturday March 16, 2024 @09:03AM (#39725527)
Canvas does have excellent performance, but I thought Google docs is built using some WASM stack
Re:Building a dynamic Canvas rendering engine using JSX by moritzwarhier on Saturday March 16, 2024 @08:12PM (#39730633)
This is not mutually exclusive, is it?
Re:Building a dynamic Canvas rendering engine using JSX by percyhanna on Monday March 18, 2024 @10:44AM (#39745252)
Google Docs uses Canvas + WASM, I believe.