Hacker News new | ask | show | jobs
by joshmarinacci 828 days ago
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.
2 comments

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.
Doesn't Google docs use canvas these days? I think the performance is just a lot better.
Canvas does have excellent performance, but I thought Google docs is built using some WASM stack
Google Docs uses Canvas + WASM, I believe.
This is not mutually exclusive, is it?