@mocanvas/editor · function

canCropShape

declare function canCropShape(editor: Editor, shape: ShapeRef): boolean

Whether a shape can enter cropping.

Cropping always writes to the document, so unlike editing it has no readonly or locked exemption — a util cannot opt back in.

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.