@mocanvas/editor · function
declare function getUncroppedSize(size: {
w: number;
h: number;
}, crop: TLShapeCrop | null | undefined): {
w: number;
h: number;
}The size the content would occupy uncropped, given the shape's current box.
A shape cropped to a third of its width is drawn at a third of the content's width, so the content itself is three times the box — that ratio is what every crop-aware renderer needs and what this returns.
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.