Module
React.DndKit.Collision
- Package
- purescript-react-dnd-kit
- Repository
- i-am-the-slime/purescript-react-dnd-kit
#defaultCollisionDetection Source
defaultCollisionDetection :: CollisionDetectorTries pointerIntersection, falls back to shapeIntersection
#closestCenter Source
closestCenter :: CollisionDetectorDistance from droppable center to drag shape center
#closestCorners Source
closestCorners :: CollisionDetectorSum of distances between corners
#pointerIntersection Source
pointerIntersection :: CollisionDetectorChecks if pointer is inside droppable shape
#shapeIntersection Source
shapeIntersection :: CollisionDetectorIntersection area between drag shape and droppable shape
#directionBiased Source
directionBiased :: CollisionDetectorFilters by drag direction, then uses closest
#pointerDistance Source
pointerDistance :: CollisionDetectorDistance from pointer to droppable center