@dnd-kit/geometry 0.3.0-beta-20260214232144 → 0.3.0-beta-20260214235656
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,14 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://npm.im/@dnd-kit/geometry)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Geometry types and utilities for **@dnd-kit**. Provides the spatial primitives used by collision detection, shape tracking, and coordinate calculations.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
> **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.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
npm install @dnd-kit/geometry
|
|
11
|
-
```
|
|
9
|
+
## Overview
|
|
12
10
|
|
|
13
|
-
|
|
11
|
+
### Types
|
|
14
12
|
|
|
15
|
-
|
|
13
|
+
- `Shape`, `Rectangle`, `BoundingRectangle` — Geometric shapes
|
|
14
|
+
- `Point`, `Position`, `Coordinates` — Spatial positioning
|
|
15
|
+
- `Distance`, `Axis`, `Axes`, `Alignment` — Measurement and layout
|
|
16
|
+
|
|
17
|
+
### Utilities
|
|
18
|
+
|
|
19
|
+
- `exceedsDistance(delta, distance)` — Check if a movement vector exceeds a threshold distance
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dnd-kit/geometry",
|
|
3
|
-
"version": "0.3.0-beta-
|
|
3
|
+
"version": "0.3.0-beta-20260214235656",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@dnd-kit/state": "0.3.0-beta-
|
|
19
|
+
"@dnd-kit/state": "0.3.0-beta-20260214235656",
|
|
20
20
|
"tslib": "^2.6.2"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|