@mocanvas/editor · function

getRenderingShapes

declare function getRenderingShapes(editor: Editor): TLRenderingShape[]

Every shape on the current page in paint order, with its render metadata.

This is the renderer's input list. It includes shapes that are off-screen — flagged isCulled rather than dropped — because a component that unmounts an off-screen shape loses its DOM state, and the caller is better placed than this function to decide between skipping the paint and unmounting.

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.