# @dnd-kit/geometry

> [![Stable release](https://img.shields.io/npm/v/@dnd-kit/geometry.svg)](https://npm.im/@dnd-kit/geometry)

Latest version **0.5.1** (published 2026-10-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dnd-kit/geometry
pnpm add @dnd-kit/geometry
yarn add @dnd-kit/geometry
bun add @dnd-kit/geometry
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; popular repo.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.5.1 |
| Published | 2026-10-15 |
| First published | 2024-06-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 36.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 17741 |
| Maintainers | clauderic |

## Links

- npm: https://www.npmjs.com/package/@dnd-kit/geometry
- Repository: https://github.com/clauderic/dnd-kit
- Homepage: https://github.com/clauderic/dnd-kit#readme
- Issues: https://github.com/clauderic/dnd-kit/issues
- npm.io page: https://npm.io/package/@dnd-kit/geometry

## Dependencies (2)

- [tslib](https://npm.io/package/tslib.md) ^2.6.2
- [@dnd-kit/state](https://npm.io/package/@dnd-kit/state.md) ^0.5.1

## Recent versions

- 0.5.1 (latest) — 2026-10-15
- 0.5.1-beta-20261015120327 (beta) — 2026-10-15
- 0.5.1-beta-20261015120225 — 2026-10-15
- 0.5.1-beta-20261015120054 — 2026-10-15
- 0.5.1-beta-20261015120014 — 2026-10-15
- 0.5.1-beta-20261015115837 — 2026-10-15
- 0.5.1-beta-20261015115554 — 2026-10-15
- 0.5.1-beta-20261015115628 — 2026-10-15
- 0.5.1-beta-20261015115205 — 2026-10-15
- 0.5.1-beta-20260912195958 — 2026-09-12
- 0.5.1-beta-20260905201412 — 2026-09-05
- 0.5.1-beta-20260905153955 — 2026-09-05
- 0.5.1-beta-20260713030121 — 2026-07-13
- 0.5.1-beta-20260706002929 — 2026-07-06
- 0.5.1-beta-20260627143054 — 2026-06-27
- … 408 more at https://npm.io/package/@dnd-kit/geometry/versions

## README

# @dnd-kit/geometry

[![Stable release](https://img.shields.io/npm/v/@dnd-kit/geometry.svg)](https://npm.im/@dnd-kit/geometry)

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

---
_Source: https://npm.io/package/@dnd-kit/geometry · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
