@mocanvas/mocanvas · function
declare function removeFrame(editor: Editor, ids: readonly ShapeId[]): voidRemove the frames among ids, keeping what was inside them.
The children are reparented to the frame's own parent first and then the frame is deleted, so "remove frame" un-groups rather than destroys — which is the only reading that makes it safe to reach for. Ids that are not frames are ignored, so passing the whole selection is fine.
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.