News for hackers. Stuff that matters.
Re:Show HN: X-spreadsheet – A JavaScript canvas spreadsheet ... by myliang on Monday January 28, 2019 @10:04AM (#19017918)
1 canvas performance is higher than dom rendering

2 easy to write code

github.com/xspreadsheet used table

Re:Show HN: X-spreadsheet – A JavaScript canvas spreadsheet ... by nojvek on Monday January 28, 2019 @11:14AM (#19018592)
Dom gives you a lot more though. Hit testing and events, css text alignment and wrapping.

In general, unless you are doing something very simple, replicating the dom and css engine with canvas is an uphill battle.

That being said, I love that the xterm terminal uses a canvas renderer and now going to move to a webgl renderer. Terminal like UI with monospaced fonts are an excellent candidate for low level rendering.

Re:Show HN: X-spreadsheet – A JavaScript canvas spreadsheet ... by tobyhinloopen on Monday January 28, 2019 @12:58PM (#19019500)
How is canvas rendering performance higher than dom rendering when you’re rendering boxes and text...