I need to change the color/radius for already drawn lines on the fly. For now, the getSaveData/loadSavedData functionality extremely slow. Mostly because it requires to draw each line on the tmp ctx and copy it to the drawing ctx. If you have 10+ lines (even with 3 points only) it will have a noticeable lag.
I've added a new method to redraw all lines with different colors/radius. So if you someone interested I'll be glad to open a PR.
I need to change the color/radius for already drawn lines on the fly. For now, the
getSaveData/loadSavedData
functionality extremely slow. Mostly because it requires to draw each line on the tmp ctx and copy it to the drawing ctx. If you have 10+ lines (even with 3 points only) it will have a noticeable lag.I've added a new method to redraw all lines with different colors/radius. So if you someone interested I'll be glad to open a PR.