@thi.ng/pixel-dominant-colors 2.0.13 → 2.0.18

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/package.json +101 -101
  2. package/CHANGELOG.md +0 -46
package/package.json CHANGED
@@ -1,102 +1,102 @@
1
1
  {
2
- "name": "@thi.ng/pixel-dominant-colors",
3
- "version": "2.0.13",
4
- "description": "k-means based dominant color extraction from images/pixel buffers",
5
- "type": "module",
6
- "module": "./index.js",
7
- "typings": "./index.d.ts",
8
- "sideEffects": false,
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/thi-ng/umbrella.git"
12
- },
13
- "homepage": "https://thi.ng/pixel-dominant-colors",
14
- "funding": [
15
- {
16
- "type": "github",
17
- "url": "https://github.com/sponsors/postspectacular"
18
- },
19
- {
20
- "type": "patreon",
21
- "url": "https://patreon.com/thing_umbrella"
22
- },
23
- {
24
- "type": "liberapay",
25
- "url": "https://liberapay.com/thi.ng"
26
- }
27
- ],
28
- "author": "Karsten Schmidt (https://thi.ng)",
29
- "license": "Apache-2.0",
30
- "scripts": {
31
- "build": "yarn build:esbuild && yarn build:decl",
32
- "build:decl": "tsc --declaration --emitDeclarationOnly",
33
- "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
- "clean": "bun ../../tools/src/clean-package.ts",
35
- "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
- "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
- "pub": "yarn npm publish --access public",
38
- "test": "bun test",
39
- "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
- },
41
- "dependencies": {
42
- "@thi.ng/api": "^8.12.1",
43
- "@thi.ng/k-means": "^2.0.13",
44
- "@thi.ng/pixel": "^7.5.9",
45
- "@thi.ng/vectors": "^8.6.5"
46
- },
47
- "devDependencies": {
48
- "esbuild": "^0.25.8",
49
- "typedoc": "^0.28.9",
50
- "typescript": "^5.9.2"
51
- },
52
- "keywords": [
53
- "analysis",
54
- "cluster",
55
- "color",
56
- "dominant",
57
- "image",
58
- "k-means",
59
- "mean",
60
- "median",
61
- "palette",
62
- "quantize",
63
- "typescript"
64
- ],
65
- "publishConfig": {
66
- "access": "public"
67
- },
68
- "browser": {
69
- "process": false,
70
- "setTimeout": false
71
- },
72
- "engines": {
73
- "node": ">=18"
74
- },
75
- "files": [
76
- "./*.js",
77
- "./*.d.ts"
78
- ],
79
- "exports": {
80
- ".": {
81
- "default": "./index.js"
82
- },
83
- "./api": {
84
- "default": "./api.js"
85
- },
86
- "./kmeans": {
87
- "default": "./kmeans.js"
88
- },
89
- "./mean-cut": {
90
- "default": "./mean-cut.js"
91
- },
92
- "./utils": {
93
- "default": "./utils.js"
94
- }
95
- },
96
- "thi.ng": {
97
- "parent": "@thi.ng/pixel",
98
- "year": 2021,
99
- "screenshot": "pixel/dominant-colors-01.jpg"
100
- },
101
- "gitHead": "f6ebc1302dc9211d588293aa0897173c6e54f4e5\n"
102
- }
2
+ "name": "@thi.ng/pixel-dominant-colors",
3
+ "version": "2.0.18",
4
+ "description": "k-means based dominant color extraction from images/pixel buffers",
5
+ "type": "module",
6
+ "module": "./index.js",
7
+ "typings": "./index.d.ts",
8
+ "sideEffects": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/thi-ng/umbrella.git"
12
+ },
13
+ "homepage": "https://thi.ng/pixel-dominant-colors",
14
+ "funding": [
15
+ {
16
+ "type": "github",
17
+ "url": "https://github.com/sponsors/postspectacular"
18
+ },
19
+ {
20
+ "type": "patreon",
21
+ "url": "https://patreon.com/thing_umbrella"
22
+ },
23
+ {
24
+ "type": "liberapay",
25
+ "url": "https://liberapay.com/thi.ng"
26
+ }
27
+ ],
28
+ "author": "Karsten Schmidt (https://thi.ng)",
29
+ "license": "Apache-2.0",
30
+ "scripts": {
31
+ "build": "yarn build:esbuild && yarn build:decl",
32
+ "build:decl": "tsc --declaration --emitDeclarationOnly",
33
+ "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
+ "clean": "bun ../../tools/src/clean-package.ts",
35
+ "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
+ "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
+ "pub": "npm publish --access public",
38
+ "test": "bun test",
39
+ "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
+ },
41
+ "dependencies": {
42
+ "@thi.ng/api": "^8.12.6",
43
+ "@thi.ng/k-means": "^2.0.18",
44
+ "@thi.ng/pixel": "^7.5.14",
45
+ "@thi.ng/vectors": "^8.6.10"
46
+ },
47
+ "devDependencies": {
48
+ "esbuild": "^0.25.11",
49
+ "typedoc": "^0.28.14",
50
+ "typescript": "^5.9.3"
51
+ },
52
+ "keywords": [
53
+ "analysis",
54
+ "cluster",
55
+ "color",
56
+ "dominant",
57
+ "image",
58
+ "k-means",
59
+ "mean",
60
+ "median",
61
+ "palette",
62
+ "quantize",
63
+ "typescript"
64
+ ],
65
+ "publishConfig": {
66
+ "access": "public"
67
+ },
68
+ "browser": {
69
+ "process": false,
70
+ "setTimeout": false
71
+ },
72
+ "engines": {
73
+ "node": ">=18"
74
+ },
75
+ "files": [
76
+ "./*.js",
77
+ "./*.d.ts"
78
+ ],
79
+ "exports": {
80
+ ".": {
81
+ "default": "./index.js"
82
+ },
83
+ "./api": {
84
+ "default": "./api.js"
85
+ },
86
+ "./kmeans": {
87
+ "default": "./kmeans.js"
88
+ },
89
+ "./mean-cut": {
90
+ "default": "./mean-cut.js"
91
+ },
92
+ "./utils": {
93
+ "default": "./utils.js"
94
+ }
95
+ },
96
+ "thi.ng": {
97
+ "parent": "@thi.ng/pixel",
98
+ "year": 2021,
99
+ "screenshot": "pixel/dominant-colors-01.jpg"
100
+ },
101
+ "gitHead": "136a5e5ef0b69e82329db00d806c3c4e8f1aa063\n"
102
+ }
package/CHANGELOG.md DELETED
@@ -1,46 +0,0 @@
1
- # Change Log
2
-
3
- - **Last updated**: 2025-08-04T09:13:01Z
4
- - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
-
6
- All notable changes to this project will be documented in this file.
7
- Only versions published since **2022-01-01** are listed here.
8
- Please consult the Git history for older version information.
9
- See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
10
-
11
- **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
12
- and/or version bumps of transitive dependencies.
13
-
14
- ### [2.0.8](https://github.com/thi-ng/umbrella/tree/@thi.ng/pixel-dominant-colors@2.0.8) (2025-07-30)
15
-
16
- #### ♻️ Refactoring
17
-
18
- - update arg types ([80826ff](https://github.com/thi-ng/umbrella/commit/80826ff))
19
- - use `NumericArray` => `ReadonlyVec`
20
-
21
- # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/pixel-dominant-colors@2.0.0) (2025-06-24)
22
-
23
- #### 🛑 Breaking changes
24
-
25
- - update dominantColors() ([9cf7a48](https://github.com/thi-ng/umbrella/commit/9cf7a48))
26
- - BREAKING CHANGE: rename `dominantColors()` => `dominantColorsKmeans()`, remove `dominantColorsArray()`
27
- - merge `dominantColors()` & `dominantColorsArray()` => `dominantColorsKmeans()`
28
- - add `DominantColor` result type
29
- - add filterSamples helper
30
-
31
- #### 🚀 Features
32
-
33
- - add dominantColorsMeanCut()/dominantColorsMedianCut() ([2ab48c7](https://github.com/thi-ng/umbrella/commit/2ab48c7))
34
-
35
- ### [1.1.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/pixel-dominant-colors@1.1.2) (2024-07-25)
36
-
37
- #### ♻️ Refactoring
38
-
39
- - add/extract `dominantColorsArray()` ([4aea78e](https://github.com/thi-ng/umbrella/commit/4aea78e))
40
-
41
- ## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/pixel-dominant-colors@1.1.0) (2024-07-22)
42
-
43
- #### 🚀 Features
44
-
45
- - import as new pkg ([#486](https://github.com/thi-ng/umbrella/issues/486)) ([a4174f5](https://github.com/thi-ng/umbrella/commit/a4174f5))
46
- - migrate `dominantColors()` from [@thi.ng/pixel](https://github.com/thi-ng/umbrella/tree/main/packages/pixel) pkg