@thi.ng/pixel-dither 1.1.33 → 1.1.35

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2022-11-23T22:46:54Z
3
+ - **Last updated**: 2022-12-16T12:52:25Z
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.
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  <!-- This file is generated - DO NOT EDIT! -->
2
2
 
3
- # ![pixel-dither](https://media.thi.ng/umbrella/banners-20220914/thing-pixel-dither.svg?2cbd8ab2)
3
+ # ![@thi.ng/pixel-dither](https://media.thi.ng/umbrella/banners-20220914/thing-pixel-dither.svg?2cbd8ab2)
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@thi.ng/pixel-dither.svg)](https://www.npmjs.com/package/@thi.ng/pixel-dither)
6
6
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/pixel-dither.svg)
7
- [![Twitter Follow](https://img.shields.io/twitter/follow/thing_umbrella.svg?style=flat-square&label=twitter)](https://twitter.com/thing_umbrella)
7
+ [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  This project is part of the
10
10
  [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
@@ -23,7 +23,7 @@ This project is part of the
23
23
 
24
24
  ![screenshot](https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/pixel-dither.jpg)
25
25
 
26
- Extensible image dithering w/ various algorithm presets. This is a support package for [@thi.ng/pixel](https://github.com/thi-ng/umbrella/tree/develop/packages/pixel).
26
+ Extensible image dithering w/ various algorithm presets
27
27
 
28
28
  The package provides the following dithering algorithm presets (can also be
29
29
  very easily extended via definition of custom kernels):
@@ -60,14 +60,11 @@ ES module import:
60
60
 
61
61
  For Node.js REPL:
62
62
 
63
- ```text
64
- # with flag only for < v16
65
- node --experimental-repl-await
66
-
67
- > const pixelDither = await import("@thi.ng/pixel-dither");
63
+ ```js
64
+ const pixelDither = await import("@thi.ng/pixel-dither");
68
65
  ```
69
66
 
70
- Package sizes (gzipped, pre-treeshake): ESM: 1.13 KB
67
+ Package sizes (brotli'd, pre-treeshake): ESM: 1.06 KB
71
68
 
72
69
  ## Dependencies
73
70
 
@@ -149,7 +146,7 @@ demo](https://demo.thi.ng/umbrella/pixel-dither/).
149
146
 
150
147
  ## Authors
151
148
 
152
- Karsten Schmidt
149
+ - [Karsten Schmidt](https://thi.ng)
153
150
 
154
151
  If this project contributes to an academic publication, please cite it as:
155
152
 
@@ -164,4 +161,4 @@ If this project contributes to an academic publication, please cite it as:
164
161
 
165
162
  ## License
166
163
 
167
- &copy; 2021 - 2022 Karsten Schmidt // Apache Software License 2.0
164
+ &copy; 2021 - 2022 Karsten Schmidt // Apache License 2.0
package/api.d.ts CHANGED
@@ -25,7 +25,7 @@ export interface DitherOpts {
25
25
  */
26
26
  channels: number[];
27
27
  }
28
- export declare type BayerSize = 1 | 2 | 4 | 8 | 16 | 32 | 64;
28
+ export type BayerSize = 1 | 2 | 4 | 8 | 16 | 32 | 64;
29
29
  export interface BayerMatrix {
30
30
  mat: number[][];
31
31
  invSize: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/pixel-dither",
3
- "version": "1.1.33",
3
+ "version": "1.1.35",
4
4
  "description": "Extensible image dithering w/ various algorithm presets",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -10,7 +10,7 @@
10
10
  "type": "git",
11
11
  "url": "https://github.com/thi-ng/umbrella.git"
12
12
  },
13
- "homepage": "https://github.com/thi-ng/umbrella/tree/master/packages/pixel-dither#readme",
13
+ "homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/pixel-dither#readme",
14
14
  "funding": [
15
15
  {
16
16
  "type": "github",
@@ -21,7 +21,7 @@
21
21
  "url": "https://patreon.com/thing_umbrella"
22
22
  }
23
23
  ],
24
- "author": "Karsten Schmidt <k+npm@thi.ng>",
24
+ "author": "Karsten Schmidt (https://thi.ng)",
25
25
  "license": "Apache-2.0",
26
26
  "scripts": {
27
27
  "build": "yarn clean && tsc --declaration",
@@ -34,17 +34,17 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/checks": "^3.3.3",
38
- "@thi.ng/math": "^5.3.14",
39
- "@thi.ng/pixel": "^4.0.9"
37
+ "@thi.ng/checks": "^3.3.5",
38
+ "@thi.ng/math": "^5.3.16",
39
+ "@thi.ng/pixel": "^4.0.11"
40
40
  },
41
41
  "devDependencies": {
42
- "@microsoft/api-extractor": "^7.33.5",
43
- "@thi.ng/testament": "^0.3.5",
42
+ "@microsoft/api-extractor": "^7.33.7",
43
+ "@thi.ng/testament": "^0.3.7",
44
44
  "rimraf": "^3.0.2",
45
45
  "tools": "^0.0.1",
46
- "typedoc": "^0.23.20",
47
- "typescript": "^4.8.4"
46
+ "typedoc": "^0.23.22",
47
+ "typescript": "^4.9.4"
48
48
  },
49
49
  "keywords": [
50
50
  "typescript"
@@ -105,5 +105,5 @@
105
105
  "parent": "@thi.ng/pixel",
106
106
  "year": 2021
107
107
  },
108
- "gitHead": "75ec32ff7f1b7b5e72e7a04ace24732cd5d6c774\n"
108
+ "gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
109
109
  }