@mocanvas/editor · function

selectFirstChildShape

declare function selectFirstChildShape(editor: Editor): void

Select the first child of the only selected shape — the inverse of selectParentShape, and what "enter" does on a selected group.

A no-op unless exactly one shape is selected and it has children: with several selected there is no single "the" child to descend to.

Mentioned here

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.