@mocanvas/editor · function
declare function getShapeMaskedPageBounds(editor: Editor, shape: ShapeRef): Box | undefinedThe part of a shape's page bounds that its clipping ancestors leave visible.
undefined when the shape does not exist **or** when it is clipped away
entirely — both mean "nothing to draw here", which is what every caller of
this does with the answer. An unclipped shape gets its ordinary page bounds
back, so this is the safe default for culling, framing and export.
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.