@thi.ng/pixel-analysis 2.0.9 → 2.0.14

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 +116 -116
  2. package/CHANGELOG.md +0 -108
package/package.json CHANGED
@@ -1,117 +1,117 @@
1
1
  {
2
- "name": "@thi.ng/pixel-analysis",
3
- "version": "2.0.9",
4
- "description": "Image color & feature analysis utilities",
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-analysis",
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.2",
43
- "@thi.ng/arrays": "^2.13.11",
44
- "@thi.ng/color": "^5.7.62",
45
- "@thi.ng/compare": "^2.4.28",
46
- "@thi.ng/math": "^5.12.0",
47
- "@thi.ng/metrics": "^0.2.5",
48
- "@thi.ng/pixel": "^7.5.10",
49
- "@thi.ng/pixel-convolve": "^1.1.10",
50
- "@thi.ng/pixel-dominant-colors": "^2.0.14",
51
- "@thi.ng/transducers": "^9.6.10",
52
- "@thi.ng/vectors": "^8.6.6"
53
- },
54
- "devDependencies": {
55
- "esbuild": "^0.25.9",
56
- "typedoc": "^0.28.12",
57
- "typescript": "^5.9.2"
58
- },
59
- "keywords": [
60
- "analysis",
61
- "area",
62
- "color",
63
- "contrast",
64
- "dominant",
65
- "edge",
66
- "gradient",
67
- "grayscale",
68
- "hsv",
69
- "hue",
70
- "luminance",
71
- "mean",
72
- "oklch",
73
- "rgb",
74
- "saturation",
75
- "standard-deviation",
76
- "statistics",
77
- "temperature",
78
- "typescript"
79
- ],
80
- "publishConfig": {
81
- "access": "public"
82
- },
83
- "browser": {
84
- "process": false,
85
- "setTimeout": false
86
- },
87
- "engines": {
88
- "node": ">=18"
89
- },
90
- "files": [
91
- "./*.js",
92
- "./*.d.ts"
93
- ],
94
- "exports": {
95
- ".": {
96
- "default": "./index.js"
97
- },
98
- "./analyze-colors": {
99
- "default": "./analyze-colors.js"
100
- },
101
- "./analyze-features": {
102
- "default": "./analyze-features.js"
103
- },
104
- "./api": {
105
- "default": "./api.js"
106
- },
107
- "./hues": {
108
- "default": "./hues.js"
109
- }
110
- },
111
- "thi.ng": {
112
- "parent": "@thi.ng/pixel",
113
- "status": "beta",
114
- "year": 2024
115
- },
116
- "gitHead": "fbf4b46ba8a5ecff8c5423f4c2d158d208d20fc8\n"
117
- }
2
+ "name": "@thi.ng/pixel-analysis",
3
+ "version": "2.0.14",
4
+ "description": "Image color & feature analysis utilities",
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-analysis",
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.7",
43
+ "@thi.ng/arrays": "^2.13.16",
44
+ "@thi.ng/color": "^5.8.0",
45
+ "@thi.ng/compare": "^2.4.33",
46
+ "@thi.ng/math": "^5.13.4",
47
+ "@thi.ng/metrics": "^0.2.10",
48
+ "@thi.ng/pixel": "^7.5.15",
49
+ "@thi.ng/pixel-convolve": "^1.1.15",
50
+ "@thi.ng/pixel-dominant-colors": "^2.0.19",
51
+ "@thi.ng/transducers": "^9.6.15",
52
+ "@thi.ng/vectors": "^8.6.11"
53
+ },
54
+ "devDependencies": {
55
+ "esbuild": "^0.25.11",
56
+ "typedoc": "^0.28.14",
57
+ "typescript": "^5.9.3"
58
+ },
59
+ "keywords": [
60
+ "analysis",
61
+ "area",
62
+ "color",
63
+ "contrast",
64
+ "dominant",
65
+ "edge",
66
+ "gradient",
67
+ "grayscale",
68
+ "hsv",
69
+ "hue",
70
+ "luminance",
71
+ "mean",
72
+ "oklch",
73
+ "rgb",
74
+ "saturation",
75
+ "standard-deviation",
76
+ "statistics",
77
+ "temperature",
78
+ "typescript"
79
+ ],
80
+ "publishConfig": {
81
+ "access": "public"
82
+ },
83
+ "browser": {
84
+ "process": false,
85
+ "setTimeout": false
86
+ },
87
+ "engines": {
88
+ "node": ">=18"
89
+ },
90
+ "files": [
91
+ "./*.js",
92
+ "./*.d.ts"
93
+ ],
94
+ "exports": {
95
+ ".": {
96
+ "default": "./index.js"
97
+ },
98
+ "./analyze-colors": {
99
+ "default": "./analyze-colors.js"
100
+ },
101
+ "./analyze-features": {
102
+ "default": "./analyze-features.js"
103
+ },
104
+ "./api": {
105
+ "default": "./api.js"
106
+ },
107
+ "./hues": {
108
+ "default": "./hues.js"
109
+ }
110
+ },
111
+ "thi.ng": {
112
+ "parent": "@thi.ng/pixel",
113
+ "status": "beta",
114
+ "year": 2024
115
+ },
116
+ "gitHead": "d977f819bcafdcb2b24c45f8d01a167fe29fc85a\n"
117
+ }
package/CHANGELOG.md DELETED
@@ -1,108 +0,0 @@
1
- # Change Log
2
-
3
- - **Last updated**: 2025-09-01T16:38:35Z
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.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/pixel-analysis@2.0.0) (2025-07-30)
15
-
16
- #### 🛑 Breaking changes
17
-
18
- - update color analysis result types, add aggregation ([8c70504](https://github.com/thi-ng/umbrella/commit/8c70504))
19
- - BREAKING CHANGE: update color analysis result types, add aggregation
20
- - add `BaseColorAnalysisResult`, `AggregatedColorAnalysisResult`
21
- - update `ColorAnalysisResult`, use `Metrics`
22
- - add `aggregateColorResults()`
23
- - update `analyzeColors()`, `deriveColorResults()`
24
- - rename `computeHueRange()` => `hueRange()`
25
- - update deps
26
-
27
- ### [1.1.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/pixel-analysis@1.1.1) (2025-07-27)
28
-
29
- #### 🩹 Bug fixes
30
-
31
- - update/fix weightedLuma result ([19d818c](https://github.com/thi-ng/umbrella/commit/19d818c))
32
-
33
- ## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/pixel-analysis@1.1.0) (2025-07-27)
34
-
35
- #### 🚀 Features
36
-
37
- - make temperature()/hueTemperature() parametric ([f61955e](https://github.com/thi-ng/umbrella/commit/f61955e))
38
- - add coefficients as optional arg
39
- - add `DEFAULT_TEMPERATURE_COEFFS`
40
- - update analyzeColors() & ColorAnalysisResult ([595064d](https://github.com/thi-ng/umbrella/commit/595064d))
41
- - update/rename `AnalysisOpts` => `ColorAnalysisOpts`
42
- - add `ColorAnalysisOpts.tempCoeffs`
43
- - rename `AnalyzedImage` => `ColorAnalysisResult`
44
- - update `ColorAnalysisResult` internal structure
45
- - add `computeHueRange()`
46
- - update `analyzeFeatures()`, add `FeatureAnalysisResult` ([e276eb8](https://github.com/thi-ng/umbrella/commit/e276eb8))
47
-
48
- ### [1.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/pixel-analysis@1.0.1) (2025-07-24)
49
-
50
- #### 🩹 Bug fixes
51
-
52
- - bail out if insufficient samples ([41ba4c3](https://github.com/thi-ng/umbrella/commit/41ba4c3))
53
- - update `temperature()` to return empty result if insufficient color samples
54
- - update hue standard deviation ([9b0ea02](https://github.com/thi-ng/umbrella/commit/9b0ea02))
55
- - return normalized hue SD (not in radians)
56
-
57
- # [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/pixel-analysis@1.0.0) (2025-07-24)
58
-
59
- #### 🛑 Breaking changes
60
-
61
- - major update/rewrite hue range analysis fns ([5730fea](https://github.com/thi-ng/umbrella/commit/5730fea))
62
- - BREAKING CHANGE: replace/update hue range analysis fns
63
- - major update/rewrite hue range analysis fns ([9b12898](https://github.com/thi-ng/umbrella/commit/9b12898))
64
- - BREAKING CHANGE: update AnalyzedImage result, update color analysis fns
65
- - update structure & details of `AnalyzedImage` result type
66
- - update `derivedColorsResults()`
67
- - update/split `analyzeColors()`
68
- - replace temperature calculation ([2a23cfa](https://github.com/thi-ng/umbrella/commit/2a23cfa))
69
- - BREAKING CHANGE: replace temperature calculation with whole new approach
70
- - replace existing `temperature()` with new method/approach
71
- - add `TemperatureResult`
72
- - update `analyzeColors()`, `derivedColorsResult()`
73
-
74
- ### [0.4.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/pixel-analysis@0.4.1) (2025-07-15)
75
-
76
- #### ♻️ Refactoring
77
-
78
- - extract `derivedColorsResults()` ([c8fb4ed](https://github.com/thi-ng/umbrella/commit/c8fb4ed))
79
-
80
- ## [0.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/pixel-analysis@0.4.0) (2025-07-14)
81
-
82
- #### 🚀 Features
83
-
84
- - add color channel precision ([beb2c21](https://github.com/thi-ng/umbrella/commit/beb2c21))
85
- - add `AnalysisOpts.prec`
86
- - update `analyzeColors()`
87
-
88
- ## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/pixel-analysis@0.3.0) (2025-06-24)
89
-
90
- #### 🚀 Features
91
-
92
- - update dominant color extraction ([58c7ea5](https://github.com/thi-ng/umbrella/commit/58c7ea5))
93
- - add `AnalysisOpts.dominantFn`
94
-
95
- ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/pixel-analysis@0.2.0) (2025-06-02)
96
-
97
- #### 🚀 Features
98
-
99
- - update hue range fns ([27d43aa](https://github.com/thi-ng/umbrella/commit/27d43aa))
100
- - simplify/optimize warmIntensityHsv()
101
- - update args to accept int buffers
102
- - add tests
103
-
104
- ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/pixel-analysis@0.1.0) (2025-05-28)
105
-
106
- #### 🚀 Features
107
-
108
- - import as new pkg ([587b4da](https://github.com/thi-ng/umbrella/commit/587b4da))