@mocanvas/editor · function
declare function getDroppedShapesToNewParents(editor: Editor, shapes: readonly UnknownShape[], point: VecLike): Map<ShapeId, ParentId>The new parent for each shape after a drag, keyed by shape id.
Only shapes whose parent actually changes appear in the result, so a caller can treat an empty map as "nothing to do". Descendants of a dragged shape are never reparented — they travel with their ancestor, and moving them separately would flatten the hierarchy the person dragged.
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.