@thi.ng/rasterize 1.0.52 → 1.0.54
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/draw.d.ts +3 -3
- package/package.json +5 -5
- package/poly.d.ts +1 -1
- package/polyline.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2023-10-
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
3
|
+
"version": "1.0.54",
|
|
4
4
|
"description": "2D shape drawing & rasterization",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"@thi.ng/api": "^8.9.6",
|
|
38
38
|
"@thi.ng/checks": "^3.4.6",
|
|
39
39
|
"@thi.ng/equiv": "^2.1.31",
|
|
40
|
-
"@thi.ng/grid-iterators": "^4.0.
|
|
40
|
+
"@thi.ng/grid-iterators": "^4.0.26",
|
|
41
41
|
"@thi.ng/porter-duff": "^2.1.44",
|
|
42
|
-
"@thi.ng/random": "^3.6.
|
|
43
|
-
"@thi.ng/transducers": "^8.8.
|
|
42
|
+
"@thi.ng/random": "^3.6.10",
|
|
43
|
+
"@thi.ng/transducers": "^8.8.5"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@microsoft/api-extractor": "^7.38.0",
|
|
@@ -119,5 +119,5 @@
|
|
|
119
119
|
"status": "alpha",
|
|
120
120
|
"year": 2021
|
|
121
121
|
},
|
|
122
|
-
"gitHead": "
|
|
122
|
+
"gitHead": "fc6e14052ed24bf9196896980ceb9f398b6ea6c1\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[]
|
|
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[]
|
|
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
|