@thi.ng/pixel-convolve 1.1.18 → 1.1.19
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/README.md +1 -1
- package/convolve.js +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 211 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
package/convolve.js
CHANGED
|
@@ -11,7 +11,7 @@ const convolveChannel = (src, opts) => __convolve(__initConvolve(src, opts));
|
|
|
11
11
|
const convolveImage = (src, opts) => {
|
|
12
12
|
const state = __initConvolve(src, opts);
|
|
13
13
|
const dest = new FloatBuffer(state.dwidth, state.dheight, src.format);
|
|
14
|
-
for (
|
|
14
|
+
for (const channel of opts.channels || __range(src.format.channels.length)) {
|
|
15
15
|
dest.setChannel(channel, __convolve({ ...state, channel }));
|
|
16
16
|
}
|
|
17
17
|
return dest;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/pixel-convolve",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.19",
|
|
4
4
|
"description": "Extensible bitmap image convolution, kernel presets, normal map & image pyramid generation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@thi.ng/api": "^8.12.
|
|
43
|
-
"@thi.ng/checks": "^3.
|
|
44
|
-
"@thi.ng/errors": "^2.5.
|
|
45
|
-
"@thi.ng/math": "^5.
|
|
46
|
-
"@thi.ng/pixel": "^7.5.
|
|
42
|
+
"@thi.ng/api": "^8.12.10",
|
|
43
|
+
"@thi.ng/checks": "^3.8.0",
|
|
44
|
+
"@thi.ng/errors": "^2.5.50",
|
|
45
|
+
"@thi.ng/math": "^5.14.0",
|
|
46
|
+
"@thi.ng/pixel": "^7.5.19"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"esbuild": "^0.27.0",
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
"parent": "@thi.ng/pixel",
|
|
104
104
|
"year": 2021
|
|
105
105
|
},
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "824bf9047b5a10f777c5c5b4aeecf0c750a22c75\n"
|
|
107
107
|
}
|