@mocanvas/editor · interface

TLDragShapesInfo

interface TLDragShapesInfo

The facts every drag callback receives.


Properties · 3

initialDraggingOverShapeId: ShapeId | null

The shape under the pointer when the drag began, if any.

initialIndices: ReadonlyMap<ShapeId, IndexKey>

Each dragged shape's z-index when the drag began.

initialParentIds: ReadonlyMap<ShapeId, ParentId>

Each dragged shape's parent when the drag began.

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.