@mocanvas/editor · function

getBaseZoomForCameraOptions

declare function getBaseZoomForCameraOptions(options: TLCameraOptions, viewport: {
    w: number;
    h: number;
}): number

The zoom level that counts as 1 for these constraints in a viewport of this size. Without constraints — the ordinary infinite canvas — that is simply 1.

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.