@mocanvas/editor · function

isShapeHidden

declare function isShapeHidden(editor: Editor, shape: ShapeRef | undefined): boolean

Whether the host has hidden this shape.

Resolves "inherit" up the parent chain, so the question is answered for the shape *in its context* rather than in isolation. With no getShapeVisibility configured nothing is ever hidden and this is a cheap false.

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.