3 ms·
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 th
by joshmarinacci 3y 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.
- percyhanna 3y agoPerhaps 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.
- bobbylarrybobby 3y agoDoesn't Google docs use canvas these days? I think the performance is just a lot better.
- FigurativeVoid 3y agoCanvas does have excellent performance, but I thought Google docs is built using some WASM stack
- percyhanna 3y agoGoogle Docs uses Canvas + WASM, I believe.
- moritzwarhier 3y agoThis is not mutually exclusive, is it?