@mocanvas/editor · function
declare function canCreateShape(editor: Editor, partial: ShapeCreate<UnknownShape>): booleanWhether one more shape can be added to the current page.
false for an unregistered type — a shape whose util is missing cannot be
measured, drawn or migrated, so creating it would only fail later and less
clearly — and false once the page is at maxShapesPerPage.
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.