@mocanvas/editor · function

getCulledShapes

declare function getCulledShapes(editor: Editor): Set<ShapeId>

The shapes the renderer is allowed to skip this frame: off screen *and* willing to be skipped.

A util opts out with canCull() — the escape hatch for a shape whose existence off screen still matters (a playing video, an embedded document that would reload). A shape being edited is never culled either: losing the editor's DOM mid-keystroke is not recoverable.

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.