@thi.ng/k-means 2.0.34 → 2.0.36

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.
Files changed (2) hide show
  1. package/README.md +17 -16
  2. package/package.json +8 -8
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <!-- This file is generated - DO NOT EDIT! -->
2
- <!-- Please see: https://github.com/thi-ng/umbrella/blob/develop/CONTRIBUTING.md#changes-to-readme-files -->
3
- # ![@thi.ng/k-means](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/banners/thing-k-means.svg?d8d57f39)
2
+ <!-- Please see: https://codeberg.org/thi.ng/umbrella/src/branch/develop/CONTRIBUTING.md#changes-to-readme-files -->
3
+ # ![@thi.ng/k-means](https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/banners/thing-k-means.svg?d8d57f39)
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@thi.ng/k-means.svg)](https://www.npmjs.com/package/@thi.ng/k-means)
6
6
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/k-means.svg)
@@ -8,11 +8,12 @@
8
8
 
9
9
  > [!NOTE]
10
10
  > This is one of 214 standalone projects, maintained as part
11
- > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
11
+ > of the [@thi.ng/umbrella](https://codeberg.org/thi.ng/umbrella/) ecosystem
12
12
  > and anti-framework.
13
13
  >
14
- > 🚀 Please help me to work full-time on these projects by [sponsoring me on
15
- > GitHub](https://github.com/sponsors/postspectacular). Thank you! ❤️
14
+ > 🚀 Please help me to work full-time on these projects by [sponsoring
15
+ > me](https://codeberg.org/thi.ng/umbrella/src/branch/develop/CONTRIBUTING.md#donations).
16
+ > Thank you! ❤️
16
17
 
17
18
  - [About](#about)
18
19
  - [Status](#status)
@@ -40,7 +41,7 @@ provided (can also be used in isolation to extract cluster centroids):
40
41
 
41
42
  **BETA** - possibly breaking changes forthcoming
42
43
 
43
- [Search or submit any issues for this package](https://github.com/thi-ng/umbrella/issues?q=%5Bk-means%5D+in%3Atitle)
44
+ [Search or submit any issues for this package](https://codeberg.org/thi.ng/umbrella/issues?q=%5Bk-means%5D)
44
45
 
45
46
  ## Installation
46
47
 
@@ -72,24 +73,24 @@ Package sizes (brotli'd, pre-treeshake): ESM: 1.10 KB
72
73
 
73
74
  ## Dependencies
74
75
 
75
- - [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/develop/packages/api)
76
- - [@thi.ng/distance](https://github.com/thi-ng/umbrella/tree/develop/packages/distance)
77
- - [@thi.ng/errors](https://github.com/thi-ng/umbrella/tree/develop/packages/errors)
78
- - [@thi.ng/random](https://github.com/thi-ng/umbrella/tree/develop/packages/random)
79
- - [@thi.ng/vectors](https://github.com/thi-ng/umbrella/tree/develop/packages/vectors)
76
+ - [@thi.ng/api](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/api)
77
+ - [@thi.ng/distance](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/distance)
78
+ - [@thi.ng/errors](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/errors)
79
+ - [@thi.ng/random](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/random)
80
+ - [@thi.ng/vectors](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/vectors)
80
81
 
81
82
  Note: @thi.ng/api is in _most_ cases a type-only import (not used at runtime)
82
83
 
83
84
  ## Usage examples
84
85
 
85
86
  Two projects in this repo's
86
- [/examples](https://github.com/thi-ng/umbrella/tree/develop/examples)
87
+ [/examples](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples)
87
88
  directory are using this package:
88
89
 
89
- | Screenshot | Description | Live demo | Source |
90
- |:-----------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------|:------------------------------------------------------|:-----------------------------------------------------------------------------------|
91
- | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/dominant-colors.png" width="240"/> | Color palette generation via dominant color extraction from uploaded images | [Demo](https://demo.thi.ng/umbrella/dominant-colors/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/dominant-colors) |
92
- | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/kmeans-viz.jpg" width="240"/> | k-means clustering visualization | [Demo](https://demo.thi.ng/umbrella/kmeans-viz/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/kmeans-viz) |
90
+ | Screenshot | Description | Live demo | Source |
91
+ |:-----------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------|:------------------------------------------------------|:-------------------------------------------------------------------------------------------|
92
+ | <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/dominant-colors.png" width="240"/> | Color palette generation via dominant color extraction from uploaded images | [Demo](https://demo.thi.ng/umbrella/dominant-colors/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/dominant-colors) |
93
+ | <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/kmeans-viz.jpg" width="240"/> | k-means clustering visualization | [Demo](https://demo.thi.ng/umbrella/kmeans-viz/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/kmeans-viz) |
93
94
 
94
95
  ## API
95
96
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/k-means",
3
- "version": "2.0.34",
3
+ "version": "2.0.36",
4
4
  "description": "k-means & k-medians with customizable distance functions and centroid initializations for n-D vectors",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -8,7 +8,7 @@
8
8
  "sideEffects": false,
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "git+https://github.com/thi-ng/umbrella.git",
11
+ "url": "git+https://codeberg.org/thi.ng/umbrella.git",
12
12
  "directory": "packages/k-means"
13
13
  },
14
14
  "homepage": "https://thi.ng/k-means",
@@ -40,11 +40,11 @@
40
40
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@thi.ng/api": "^8.12.17",
44
- "@thi.ng/distance": "^3.0.36",
45
- "@thi.ng/errors": "^2.6.6",
46
- "@thi.ng/random": "^4.1.42",
47
- "@thi.ng/vectors": "^8.6.24"
43
+ "@thi.ng/api": "^8.12.18",
44
+ "@thi.ng/distance": "^3.0.38",
45
+ "@thi.ng/errors": "^2.6.7",
46
+ "@thi.ng/random": "^4.1.43",
47
+ "@thi.ng/vectors": "^8.6.26"
48
48
  },
49
49
  "devDependencies": {
50
50
  "esbuild": "^0.27.2",
@@ -97,5 +97,5 @@
97
97
  "year": 2021,
98
98
  "screenshot": "examples/kmeans-viz.jpg"
99
99
  },
100
- "gitHead": "1107498d31504dc63d1a457b5def387d7a134f69\n"
100
+ "gitHead": "8ddf86ea0a1e658ddbf19cc645b29d0c176e29c4\n"
101
101
  }