@mocanvas/editor · function

getFrameLikeDropTarget

declare function getFrameLikeDropTarget(editor: Editor, point: VecLike, dragging: readonly UnknownShape[]): UnknownShape | undefined

The frame-like shape a drag would drop into, or undefined for the page.

The **topmost** container under the point wins, so a section nested in a frame takes the drop rather than the frame behind it. A container being dragged (or living under something being dragged) is never its own target.

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.