4 ms·
Couldn't you overlay html elements on top of the canvas elements? You don't necessarily have to use canvas text. Each canvas element can tell you the size of e
by catchmeifyoucan 6y ago
Couldn't you overlay html elements on top of the canvas elements? You don't necessarily have to use canvas text.
Each canvas element can tell you the size of each rect, so for each of the 50k log lines, you'd have an element in the canvas. When scrolling, the html elements can fade. As the rect scrolls into view, it draws the html div over itself, since each rect is uniquely associated with a line of text.
It was a thought with some of the previous work I had done with canvas.