Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

@dnd-kit/geometry

Stable release

Geometry types and utilities for @dnd-kit. Provides the spatial primitives used by collision detection, shape tracking, and coordinate calculations.

Note: This is an internal package used by @dnd-kit/abstract and @dnd-kit/dom. You generally don't need to install or use it directly.

Overview

Types

  • Shape, Rectangle, BoundingRectangle — Geometric shapes
  • Point, Position, Coordinates — Spatial positioning
  • Distance, Axis, Axes, Alignment — Measurement and layout

Utilities

  • exceedsDistance(delta, distance) — Check if a movement vector exceeds a threshold distance