News for hackers. Stuff that matters.
Re:React Spreadsheet 2 – Your Own Google Sheets by htk on Saturday November 25, 2023 @12:09PM (#38414762)
Great work! What about rendering it to SVG instead of canvas, with a buffer area around and let the scroll take care of itself?
Re:React Spreadsheet 2 – Your Own Google Sheets by rowsncolumns on Saturday November 25, 2023 @02:20PM (#38415818)
SVG or HTML adds a lot of DOM nodes when you are displaying lot of textual content.

Personally I found canvas easier to work with, scroll performance was better, less browser bugs, drawing was cheaper and scales for large content (using virtualisation or multiple canvas layers)