@mocanvas/mocanvas · function
declare function containBoxSize(box: BoxWidthHeight, container: BoxWidthHeight): BoxWidthHeightFit box inside container without changing its aspect ratio.
The rule every image import needs: a 4000px photo dropped on the canvas must arrive at a workable size, and must not arrive squashed.
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.