@mocanvas/editor · function
declare function isShapeInPage(editor: Editor, shape: ShapeRef | undefined, pageId?: PageId): booleanWhether shape lives on pageId (the current page by default).
Walks to the shape's page rather than reading parentId, so a shape nested
inside a frame on the page answers true.
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.