@mocanvas/editor · function
declare function isAncestorSelected(editor: Editor, shape: ShapeRef | undefined): booleanWhether any ancestor of shape is selected.
A shape inside a selected group must not draw its own indicator or take its own drag — the group is the thing being manipulated — and this is the test for that.
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.