@mocanvas/editor · function

canCreateShapes

declare function canCreateShapes(editor: Editor, partials: readonly ShapeCreate<UnknownShape>[]): boolean

Whether a whole batch can be added. Checked as a batch because the page limit is about the total: adding 400 shapes to a page with room for 10 must fail as one decision, not 390 times.

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.