@mocanvas/mocanvas · function

computeGrowY

declare function computeGrowY(labelHeight: number, boxHeight: number): number

Extra height a box needs so its label fits: labelHeight - boxHeight, never negative. growY is stored on the shape and added to h.

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.