@thi.ng/rasterize 1.0.51 → 1.0.53

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**: 2023-08-27T11:20:59Z
3
+ - **Last updated**: 2023-10-24T08:38:23Z
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.0.53](https://github.com/thi-ng/umbrella/tree/@thi.ng/rasterize@1.0.53) (2023-10-24)
13
+
14
+ #### 🩹 Bug fixes
15
+
16
+ - update arg types for point/vec arrays ([588aff8](https://github.com/thi-ng/umbrella/commit/588aff8))
17
+
12
18
  ### [1.0.37](https://github.com/thi-ng/umbrella/tree/@thi.ng/rasterize@1.0.37) (2023-08-12)
13
19
 
14
20
  #### ♻️ Refactoring
package/draw.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import type { IGrid2D, Nullable, TypedArray } from "@thi.ng/api";
2
2
  import type { Shader2D } from "./api.js";
3
3
  /** @internal */
4
- export declare const __draw2D: <T extends any[] | TypedArray, P>(pts: Nullable<Iterable<number[]>>, grid: IGrid2D<T, P>, val: P | Shader2D<P>) => IGrid2D<T, P>;
4
+ export declare const __draw2D: <T extends any[] | TypedArray, P>(pts: Nullable<Iterable<ArrayLike<number>>>, grid: IGrid2D<T, P>, val: P | Shader2D<P>) => IGrid2D<T, P>;
5
5
  /** @internal */
6
- export declare const __drawSolid2D: <T extends any[] | TypedArray, P>(pts: Nullable<Iterable<number[]>>, grid: IGrid2D<T, P>, val: P) => IGrid2D<T, P>;
6
+ export declare const __drawSolid2D: <T extends any[] | TypedArray, P>(pts: Nullable<Iterable<ArrayLike<number>>>, grid: IGrid2D<T, P>, val: P) => IGrid2D<T, P>;
7
7
  /** @internal */
8
- export declare const __drawShader2D: <T extends any[] | TypedArray, P>(pts: Nullable<Iterable<number[]>>, grid: IGrid2D<T, P>, shader: Shader2D<P>) => IGrid2D<T, P>;
8
+ export declare const __drawShader2D: <T extends any[] | TypedArray, P>(pts: Nullable<Iterable<ArrayLike<number>>>, grid: IGrid2D<T, P>, shader: Shader2D<P>) => IGrid2D<T, P>;
9
9
  //# sourceMappingURL=draw.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/rasterize",
3
- "version": "1.0.51",
3
+ "version": "1.0.53",
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.9.5",
38
- "@thi.ng/checks": "^3.4.5",
39
- "@thi.ng/equiv": "^2.1.30",
40
- "@thi.ng/grid-iterators": "^4.0.23",
41
- "@thi.ng/porter-duff": "^2.1.43",
42
- "@thi.ng/random": "^3.6.8",
43
- "@thi.ng/transducers": "^8.8.2"
37
+ "@thi.ng/api": "^8.9.6",
38
+ "@thi.ng/checks": "^3.4.6",
39
+ "@thi.ng/equiv": "^2.1.31",
40
+ "@thi.ng/grid-iterators": "^4.0.25",
41
+ "@thi.ng/porter-duff": "^2.1.44",
42
+ "@thi.ng/random": "^3.6.10",
43
+ "@thi.ng/transducers": "^8.8.4"
44
44
  },
45
45
  "devDependencies": {
46
- "@microsoft/api-extractor": "^7.36.4",
47
- "@thi.ng/testament": "^0.3.23",
48
- "rimraf": "^5.0.1",
46
+ "@microsoft/api-extractor": "^7.38.0",
47
+ "@thi.ng/testament": "^0.3.24",
48
+ "rimraf": "^5.0.5",
49
49
  "tools": "^0.0.1",
50
- "typedoc": "^0.25.0",
50
+ "typedoc": "^0.25.2",
51
51
  "typescript": "^5.2.2"
52
52
  },
53
53
  "keywords": [
@@ -119,5 +119,5 @@
119
119
  "status": "alpha",
120
120
  "year": 2021
121
121
  },
122
- "gitHead": "46e445c09f2909d1aeaa9fdc8d8b3aa61c114db2\n"
122
+ "gitHead": "dc7eeaba72f3c3977f2d6cc201e595ed6d68e2ad\n"
123
123
  }
package/poly.d.ts CHANGED
@@ -14,5 +14,5 @@ import type { Shader2D } from "./api.js";
14
14
  * @param pts -
15
15
  * @param val -
16
16
  */
17
- export declare const fillPoly: <T extends any[] | TypedArray, P>(grid: IGrid2D<T, P>, pts: number[][], val: P | Shader2D<P>) => void;
17
+ export declare const fillPoly: <T extends any[] | TypedArray, P>(grid: IGrid2D<T, P>, pts: ArrayLike<number>[], val: P | Shader2D<P>) => void;
18
18
  //# sourceMappingURL=poly.d.ts.map
package/polyline.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import type { IGrid2D, TypedArray } from "@thi.ng/api";
2
2
  import type { Shader2D } from "./api.js";
3
- export declare const drawPolyLine: <T extends any[] | TypedArray, P>(grid: IGrid2D<T, P>, pts: number[][], val: P | Shader2D<P>, closed?: boolean) => void;
3
+ export declare const drawPolyLine: <T extends any[] | TypedArray, P>(grid: IGrid2D<T, P>, pts: ArrayLike<number>[], val: P | Shader2D<P>, closed?: boolean) => void;
4
4
  //# sourceMappingURL=polyline.d.ts.map