@mocanvas/editor · function

bucketTextureResolution

declare function bucketTextureResolution(zoom: number, dpr?: number): number

dpr × min(MAX_TEXTURE_ZOOM, zoom) snapped up to a power of two, so panning and zooming only re-rasterize a texture when it crosses a bucket boundary.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.