@mocanvas/mocanvas · function
declare function downsizeDimensions(size: ImageDimensions, max?: number): ImageDimensionsScale size down — never up — so neither side exceeds max, keeping the
aspect ratio.
Never scaling up is the whole point: a 32×32 icon dropped on the canvas should arrive as a 32×32 shape, not blown up to the maximum.
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.