@thi.ng/pixel-dither 1.1.107 → 1.1.109
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 +7 -1
- package/README.md +1 -1
- package/dither.js +2 -6
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2024-02-
|
|
3
|
+
- **Last updated**: 2024-02-22T23:15:26Z
|
|
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.
|
|
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
### [1.1.109](https://github.com/thi-ng/umbrella/tree/@thi.ng/pixel-dither@1.1.109) (2024-02-22)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- update object destructuring in all pkgs & examples ([f36aeb0](https://github.com/thi-ng/umbrella/commit/f36aeb0))
|
|
17
|
+
|
|
12
18
|
### [1.1.84](https://github.com/thi-ng/umbrella/tree/@thi.ng/pixel-dither@1.1.84) (2023-11-09)
|
|
13
19
|
|
|
14
20
|
#### ♻️ Refactoring
|
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
[](https://mastodon.thi.ng/@toxi)
|
|
19
19
|
|
|
20
20
|
> [!NOTE]
|
|
21
|
-
> This is one of
|
|
21
|
+
> This is one of 190 standalone projects, maintained as part
|
|
22
22
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
23
23
|
> and anti-framework.
|
|
24
24
|
>
|
package/dither.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { range } from "@thi.ng/pixel/range";
|
|
2
|
-
const ditherWith = (kernel, img, opts) => {
|
|
3
|
-
const {
|
|
4
|
-
bleed: 1,
|
|
5
|
-
threshold: 0.5,
|
|
6
|
-
...opts
|
|
7
|
-
};
|
|
2
|
+
const ditherWith = (kernel, img, opts = {}) => {
|
|
3
|
+
const { bleed = 1, threshold = 0.5, channels } = opts;
|
|
8
4
|
const { format, width, height } = img;
|
|
9
5
|
const { ox, oy, weights, shift } = kernel;
|
|
10
6
|
let p, err;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/pixel-dither",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.109",
|
|
4
4
|
"description": "Extensible image dithering w/ various algorithm presets",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"test": "bun test"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@thi.ng/checks": "^3.
|
|
39
|
-
"@thi.ng/math": "^5.10.
|
|
40
|
-
"@thi.ng/pixel": "^6.1.
|
|
38
|
+
"@thi.ng/checks": "^3.5.0",
|
|
39
|
+
"@thi.ng/math": "^5.10.2",
|
|
40
|
+
"@thi.ng/pixel": "^6.1.11"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@microsoft/api-extractor": "^7.40.1",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"parent": "@thi.ng/pixel",
|
|
106
106
|
"year": 2021
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "16f2b92b5410bd35dcde6c2971c8e62783ebc472\n"
|
|
109
109
|
}
|