@thi.ng/distance 2.2.0 → 2.2.2
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/CHANGELOG.md +1 -1
- package/README.md +14 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -19,6 +19,7 @@ This project is part of the
|
|
|
19
19
|
- [Related packages](#related-packages)
|
|
20
20
|
- [Installation](#installation)
|
|
21
21
|
- [Dependencies](#dependencies)
|
|
22
|
+
- [Usage examples](#usage-examples)
|
|
22
23
|
- [API](#api)
|
|
23
24
|
- [Authors](#authors)
|
|
24
25
|
- [License](#license)
|
|
@@ -121,7 +122,7 @@ For Node.js REPL:
|
|
|
121
122
|
const distance = await import("@thi.ng/distance");
|
|
122
123
|
```
|
|
123
124
|
|
|
124
|
-
Package sizes (brotli'd, pre-treeshake): ESM: 1.
|
|
125
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 1.15 KB
|
|
125
126
|
|
|
126
127
|
## Dependencies
|
|
127
128
|
|
|
@@ -132,6 +133,18 @@ Package sizes (brotli'd, pre-treeshake): ESM: 1.11 KB
|
|
|
132
133
|
- [@thi.ng/math](https://github.com/thi-ng/umbrella/tree/develop/packages/math)
|
|
133
134
|
- [@thi.ng/vectors](https://github.com/thi-ng/umbrella/tree/develop/packages/vectors)
|
|
134
135
|
|
|
136
|
+
## Usage examples
|
|
137
|
+
|
|
138
|
+
Several demos in this repo's
|
|
139
|
+
[/examples](https://github.com/thi-ng/umbrella/tree/develop/examples)
|
|
140
|
+
directory are using this package.
|
|
141
|
+
|
|
142
|
+
A selection:
|
|
143
|
+
|
|
144
|
+
| Screenshot | Description | Live demo | Source |
|
|
145
|
+
|:---------------------------------------------------------------------------------------------------------------------|:------------------------------------------|:----------------------------------------------------|:---------------------------------------------------------------------------------|
|
|
146
|
+
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/geom-knn-hash.jpg" width="240"/> | K-nearest neighbor search in an hash grid | [Demo](https://demo.thi.ng/umbrella/geom-knn-hash/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/geom-knn-hash) |
|
|
147
|
+
|
|
135
148
|
## API
|
|
136
149
|
|
|
137
150
|
[Generated API docs](https://docs.thi.ng/umbrella/distance/)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/distance",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"description": "N-dimensional distance metrics & K-nearest neighborhoods for point queries",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.7.
|
|
38
|
-
"@thi.ng/checks": "^3.3.
|
|
39
|
-
"@thi.ng/errors": "^2.2.
|
|
40
|
-
"@thi.ng/heaps": "^2.1.
|
|
41
|
-
"@thi.ng/math": "^5.4.
|
|
42
|
-
"@thi.ng/vectors": "^7.6.
|
|
37
|
+
"@thi.ng/api": "^8.7.2",
|
|
38
|
+
"@thi.ng/checks": "^3.3.9",
|
|
39
|
+
"@thi.ng/errors": "^2.2.11",
|
|
40
|
+
"@thi.ng/heaps": "^2.1.25",
|
|
41
|
+
"@thi.ng/math": "^5.4.3",
|
|
42
|
+
"@thi.ng/vectors": "^7.6.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@microsoft/api-extractor": "^7.34.2",
|
|
46
|
-
"@thi.ng/testament": "^0.3.
|
|
46
|
+
"@thi.ng/testament": "^0.3.11",
|
|
47
47
|
"rimraf": "^4.1.2",
|
|
48
48
|
"tools": "^0.0.1",
|
|
49
49
|
"typedoc": "^0.23.24",
|
|
@@ -109,5 +109,5 @@
|
|
|
109
109
|
],
|
|
110
110
|
"year": 2021
|
|
111
111
|
},
|
|
112
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "cafa4ecea90fb681949dc3885a5bd6ddefa38b51\n"
|
|
113
113
|
}
|