Module

React.DndKit.Collision

Package
purescript-react-dnd-kit
Repository
i-am-the-slime/purescript-react-dnd-kit

#defaultCollisionDetection Source

defaultCollisionDetection :: CollisionDetector

Tries pointerIntersection, falls back to shapeIntersection

#closestCenter Source

closestCenter :: CollisionDetector

Distance from droppable center to drag shape center

#closestCorners Source

closestCorners :: CollisionDetector

Sum of distances between corners

#pointerIntersection Source

pointerIntersection :: CollisionDetector

Checks if pointer is inside droppable shape

#shapeIntersection Source

shapeIntersection :: CollisionDetector

Intersection area between drag shape and droppable shape

#directionBiased Source

directionBiased :: CollisionDetector

Filters by drag direction, then uses closest

#pointerDistance Source

pointerDistance :: CollisionDetector

Distance from pointer to droppable center