@thi.ng/pixel-dither 1.1.7 → 1.1.10
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 +1 -1
- package/README.md +1 -1
- package/dither.d.ts +3 -3
- package/dither.js +3 -3
- package/ordered.d.ts +1 -1
- package/ordered.js +1 -1
- package/package.json +21 -21
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
package/dither.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ import type { DitherKernel, DitherOpts } from "./api.js";
|
|
|
6
6
|
* (or configured) channels using provided options. Returns modified pixel
|
|
7
7
|
* buffer.
|
|
8
8
|
*
|
|
9
|
-
* @param kernel
|
|
10
|
-
* @param img
|
|
11
|
-
* @param opts
|
|
9
|
+
* @param kernel -
|
|
10
|
+
* @param img -
|
|
11
|
+
* @param opts -
|
|
12
12
|
*/
|
|
13
13
|
export declare const ditherWith: (kernel: DitherKernel, img: IntBuffer, opts?: Partial<DitherOpts> | undefined) => IntBuffer;
|
|
14
14
|
//# sourceMappingURL=dither.d.ts.map
|
package/dither.js
CHANGED
|
@@ -5,9 +5,9 @@ import { range } from "@thi.ng/pixel/range";
|
|
|
5
5
|
* (or configured) channels using provided options. Returns modified pixel
|
|
6
6
|
* buffer.
|
|
7
7
|
*
|
|
8
|
-
* @param kernel
|
|
9
|
-
* @param img
|
|
10
|
-
* @param opts
|
|
8
|
+
* @param kernel -
|
|
9
|
+
* @param img -
|
|
10
|
+
* @param opts -
|
|
11
11
|
*/
|
|
12
12
|
export const ditherWith = (kernel, img, opts) => {
|
|
13
13
|
const { channels, bleed, threshold } = {
|
package/ordered.d.ts
CHANGED
package/ordered.js
CHANGED
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.10",
|
|
4
4
|
"description": "Extensible image dithering w/ various algorithm presets",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/checks": "^3.1.
|
|
38
|
-
"@thi.ng/math": "^5.
|
|
39
|
-
"@thi.ng/pixel": "^3.
|
|
37
|
+
"@thi.ng/checks": "^3.1.5",
|
|
38
|
+
"@thi.ng/math": "^5.3.1",
|
|
39
|
+
"@thi.ng/pixel": "^3.4.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@microsoft/api-extractor": "^7.19.
|
|
43
|
-
"@thi.ng/testament": "^0.2.
|
|
42
|
+
"@microsoft/api-extractor": "^7.19.4",
|
|
43
|
+
"@thi.ng/testament": "^0.2.5",
|
|
44
44
|
"rimraf": "^3.0.2",
|
|
45
45
|
"tools": "^0.0.1",
|
|
46
|
-
"typedoc": "^0.22.
|
|
47
|
-
"typescript": "^4.
|
|
46
|
+
"typedoc": "^0.22.13",
|
|
47
|
+
"typescript": "^4.6.2"
|
|
48
48
|
},
|
|
49
49
|
"keywords": [
|
|
50
50
|
"typescript"
|
|
@@ -65,45 +65,45 @@
|
|
|
65
65
|
],
|
|
66
66
|
"exports": {
|
|
67
67
|
".": {
|
|
68
|
-
"
|
|
68
|
+
"default": "./index.js"
|
|
69
69
|
},
|
|
70
70
|
"./api": {
|
|
71
|
-
"
|
|
71
|
+
"default": "./api.js"
|
|
72
72
|
},
|
|
73
73
|
"./atkinson": {
|
|
74
|
-
"
|
|
74
|
+
"default": "./atkinson.js"
|
|
75
75
|
},
|
|
76
76
|
"./burkes": {
|
|
77
|
-
"
|
|
77
|
+
"default": "./burkes.js"
|
|
78
78
|
},
|
|
79
79
|
"./diffusion": {
|
|
80
|
-
"
|
|
80
|
+
"default": "./diffusion.js"
|
|
81
81
|
},
|
|
82
82
|
"./dither": {
|
|
83
|
-
"
|
|
83
|
+
"default": "./dither.js"
|
|
84
84
|
},
|
|
85
85
|
"./floyd-steinberg": {
|
|
86
|
-
"
|
|
86
|
+
"default": "./floyd-steinberg.js"
|
|
87
87
|
},
|
|
88
88
|
"./jarvis": {
|
|
89
|
-
"
|
|
89
|
+
"default": "./jarvis.js"
|
|
90
90
|
},
|
|
91
91
|
"./ordered": {
|
|
92
|
-
"
|
|
92
|
+
"default": "./ordered.js"
|
|
93
93
|
},
|
|
94
94
|
"./sierra2": {
|
|
95
|
-
"
|
|
95
|
+
"default": "./sierra2.js"
|
|
96
96
|
},
|
|
97
97
|
"./stucki": {
|
|
98
|
-
"
|
|
98
|
+
"default": "./stucki.js"
|
|
99
99
|
},
|
|
100
100
|
"./threshold": {
|
|
101
|
-
"
|
|
101
|
+
"default": "./threshold.js"
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
104
|
"thi.ng": {
|
|
105
105
|
"parent": "@thi.ng/pixel",
|
|
106
106
|
"year": 2021
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "542bf14bd0c7a56b4e6297718189eea772a824b7\n"
|
|
109
109
|
}
|