@thi.ng/distance 2.2.0 → 2.2.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2023-02-05T14:42:21Z
3
+ - **Last updated**: 2023-02-10T13:55:29Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
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.11 KB
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.0",
3
+ "version": "2.2.1",
4
4
  "description": "N-dimensional distance metrics & K-nearest neighborhoods for point queries",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,12 +34,12 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.7.0",
37
+ "@thi.ng/api": "^8.7.1",
38
38
  "@thi.ng/checks": "^3.3.8",
39
- "@thi.ng/errors": "^2.2.9",
40
- "@thi.ng/heaps": "^2.1.23",
41
- "@thi.ng/math": "^5.4.1",
42
- "@thi.ng/vectors": "^7.6.0"
39
+ "@thi.ng/errors": "^2.2.10",
40
+ "@thi.ng/heaps": "^2.1.24",
41
+ "@thi.ng/math": "^5.4.2",
42
+ "@thi.ng/vectors": "^7.6.1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@microsoft/api-extractor": "^7.34.2",
@@ -109,5 +109,5 @@
109
109
  ],
110
110
  "year": 2021
111
111
  },
112
- "gitHead": "50ba9c87676fac60c46d2bc0e4d2c7711a374a68\n"
112
+ "gitHead": "2b5a99a8af71670780875637299be9118b01084d\n"
113
113
  }