@mocanvas/editor · type
type TLGetShapeVisibility = (shape: UnknownShape, editor: Editor) => TLShapeVisibility | null | undefinedThe host's hook for hiding shapes without deleting them — layers, filters, a review mode that shows only one author's work.
It is consulted per shape and must be cheap and pure: it runs inside the render path, and a version that reads mutable state outside the store will not re-run when that state changes.
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.