Closed louisstow closed 12 years ago
When zooming, draw the entire board on an offscreen canvas at a zoom level. When scrolling, draw the offscreen canvas at the zoomPos with the board width and height.
Set the buffer width equal to zoomLevel * width
same with height
Didn't work with canvas over 8k so do a different render at high zooms.
Use an offscreen buffer to cache the entire board at a certain zoom. When scrolling draw the canvas.