@thi.ng/rasterize 0.3.4 → 0.3.7

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**: 2021-12-13T10:26:00Z
3
+ - **Last updated**: 2022-04-07T14:17:30Z
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
@@ -187,4 +187,4 @@ If this project contributes to an academic publication, please cite it as:
187
187
 
188
188
  ## License
189
189
 
190
- © 2021 Karsten Schmidt // Apache Software License 2.0
190
+ © 2021 - 2022 Karsten Schmidt // Apache Software License 2.0
package/flood-fill.d.ts CHANGED
@@ -5,10 +5,10 @@ import type { Shader2D } from "./api.js";
5
5
  * function. If the latter, the shader is called for each grid coordinate and
6
6
  * returns a fill value. Returns updated grid.
7
7
  *
8
- * @param grid
9
- * @param x
10
- * @param y
11
- * @param val
8
+ * @param grid -
9
+ * @param x -
10
+ * @param y -
11
+ * @param val -
12
12
  */
13
13
  export declare const floodFill: <T extends any[] | TypedArray, P>(grid: IGrid2D<T, P>, x: number, y: number, val: P | Shader2D<P>) => IGrid2D<T, P>;
14
14
  //# sourceMappingURL=flood-fill.d.ts.map
package/flood-fill.js CHANGED
@@ -9,10 +9,10 @@ import { __draw2D } from "./draw.js";
9
9
  * function. If the latter, the shader is called for each grid coordinate and
10
10
  * returns a fill value. Returns updated grid.
11
11
  *
12
- * @param grid
13
- * @param x
14
- * @param y
15
- * @param val
12
+ * @param grid -
13
+ * @param x -
14
+ * @param y -
15
+ * @param val -
16
16
  */
17
17
  export const floodFill = (grid, x, y, val) => isInBounds2D(grid, x, y)
18
18
  ? __draw2D($fill(__pred(grid, x, y), x, y, grid.size[0], grid.size[1]), grid, val)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/rasterize",
3
- "version": "0.3.4",
3
+ "version": "0.3.7",
4
4
  "description": "2D shape drawing & rasterization",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,20 +34,20 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.3.3",
38
- "@thi.ng/checks": "^3.1.3",
39
- "@thi.ng/equiv": "^2.1.3",
40
- "@thi.ng/grid-iterators": "^2.2.4",
41
- "@thi.ng/random": "^3.2.3",
42
- "@thi.ng/transducers": "^8.1.3"
37
+ "@thi.ng/api": "^8.3.5",
38
+ "@thi.ng/checks": "^3.1.5",
39
+ "@thi.ng/equiv": "^2.1.5",
40
+ "@thi.ng/grid-iterators": "^2.3.0",
41
+ "@thi.ng/random": "^3.2.5",
42
+ "@thi.ng/transducers": "^8.3.1"
43
43
  },
44
44
  "devDependencies": {
45
- "@microsoft/api-extractor": "^7.19.2",
46
- "@thi.ng/testament": "^0.2.3",
45
+ "@microsoft/api-extractor": "^7.19.4",
46
+ "@thi.ng/testament": "^0.2.5",
47
47
  "rimraf": "^3.0.2",
48
48
  "tools": "^0.0.1",
49
- "typedoc": "^0.22.10",
50
- "typescript": "^4.5.3"
49
+ "typedoc": "^0.22.13",
50
+ "typescript": "^4.6.2"
51
51
  },
52
52
  "keywords": [
53
53
  "2d",
@@ -79,34 +79,34 @@
79
79
  ],
80
80
  "exports": {
81
81
  ".": {
82
- "import": "./index.js"
82
+ "default": "./index.js"
83
83
  },
84
84
  "./api": {
85
- "import": "./api.js"
85
+ "default": "./api.js"
86
86
  },
87
87
  "./checks": {
88
- "import": "./checks.js"
88
+ "default": "./checks.js"
89
89
  },
90
90
  "./circle": {
91
- "import": "./circle.js"
91
+ "default": "./circle.js"
92
92
  },
93
93
  "./flood-fill": {
94
- "import": "./flood-fill.js"
94
+ "default": "./flood-fill.js"
95
95
  },
96
96
  "./line": {
97
- "import": "./line.js"
97
+ "default": "./line.js"
98
98
  },
99
99
  "./poly": {
100
- "import": "./poly.js"
100
+ "default": "./poly.js"
101
101
  },
102
102
  "./polyline": {
103
- "import": "./polyline.js"
103
+ "default": "./polyline.js"
104
104
  },
105
105
  "./rect": {
106
- "import": "./rect.js"
106
+ "default": "./rect.js"
107
107
  },
108
108
  "./shader": {
109
- "import": "./shader.js"
109
+ "default": "./shader.js"
110
110
  }
111
111
  },
112
112
  "thi.ng": {
@@ -118,5 +118,5 @@
118
118
  "status": "alpha",
119
119
  "year": 2021
120
120
  },
121
- "gitHead": "2db9dd34c0c2c60cbfde3dad0bca352b20292f5c\n"
121
+ "gitHead": "5ee1feb590dd935593b1dd4e7f38a3ed3ba64765\n"
122
122
  }
package/poly.d.ts CHANGED
@@ -10,9 +10,9 @@ import type { Shader2D } from "./api.js";
10
10
  *
11
11
  * Bounds calculation and clipping added by Karsten Schmidt
12
12
  *
13
- * @param grid
14
- * @param pts
15
- * @param val
13
+ * @param grid -
14
+ * @param pts -
15
+ * @param val -
16
16
  */
17
17
  export declare const fillPoly: <T extends any[] | TypedArray, P>(grid: IGrid2D<T, P>, pts: number[][], val: P | Shader2D<P>) => void;
18
18
  //# sourceMappingURL=poly.d.ts.map
package/poly.js CHANGED
@@ -9,9 +9,9 @@ import { ensureShader2D } from "./checks.js";
9
9
  *
10
10
  * Bounds calculation and clipping added by Karsten Schmidt
11
11
  *
12
- * @param grid
13
- * @param pts
14
- * @param val
12
+ * @param grid -
13
+ * @param pts -
14
+ * @param val -
15
15
  */
16
16
  export const fillPoly = (grid, pts, val) => {
17
17
  const numP = pts.length;