@thi.ng/grid-iterators 4.0.41 → 4.0.43
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/diagonal-slope.d.ts +1 -2
- package/interleave.d.ts +1 -2
- package/package.json +10 -10
- package/random.d.ts +1 -2
- package/transforms.d.ts +3 -3
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
package/diagonal-slope.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GridIterOpts2D } from "./api.js";
|
|
2
|
-
interface DiagonalSlopeOpts extends GridIterOpts2D {
|
|
2
|
+
export interface DiagonalSlopeOpts extends GridIterOpts2D {
|
|
3
3
|
/**
|
|
4
4
|
* Diagonal slope / step size
|
|
5
5
|
*/
|
|
@@ -40,5 +40,4 @@ export declare function diagonalSlopeY(opts: DiagonalSlopeOpts): Generator<impor
|
|
|
40
40
|
* @param opts -
|
|
41
41
|
*/
|
|
42
42
|
export declare function diagonalSlopeX(opts: DiagonalSlopeOpts): Generator<import("./api.js").GridCoord2D, void, unknown>;
|
|
43
|
-
export {};
|
|
44
43
|
//# sourceMappingURL=diagonal-slope.d.ts.map
|
package/interleave.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GridIterOpts2D } from "./api.js";
|
|
2
|
-
interface InterleaveOpts2D extends GridIterOpts2D {
|
|
2
|
+
export interface InterleaveOpts2D extends GridIterOpts2D {
|
|
3
3
|
/**
|
|
4
4
|
* Row or column stride.
|
|
5
5
|
*
|
|
@@ -38,5 +38,4 @@ export declare function interleaveColumns2d(opts: InterleaveOpts2D): Generator<i
|
|
|
38
38
|
* @param opts -
|
|
39
39
|
*/
|
|
40
40
|
export declare function interleaveRows2d(opts: InterleaveOpts2D): Generator<import("./api.js").GridCoord2D, void, undefined>;
|
|
41
|
-
export {};
|
|
42
41
|
//# sourceMappingURL=interleave.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/grid-iterators",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.43",
|
|
4
4
|
"description": "2D grid and shape iterators w/ multiple orderings",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"tool:assets": "bun tools/build-assets.ts"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@thi.ng/api": "^8.9.
|
|
41
|
-
"@thi.ng/arrays": "^2.7.
|
|
42
|
-
"@thi.ng/binary": "^3.4.
|
|
43
|
-
"@thi.ng/bitfield": "^2.3.
|
|
44
|
-
"@thi.ng/errors": "^2.4.
|
|
45
|
-
"@thi.ng/morton": "^3.1.
|
|
46
|
-
"@thi.ng/random": "^3.6.
|
|
47
|
-
"@thi.ng/transducers": "^8.8.
|
|
40
|
+
"@thi.ng/api": "^8.9.18",
|
|
41
|
+
"@thi.ng/arrays": "^2.7.15",
|
|
42
|
+
"@thi.ng/binary": "^3.4.6",
|
|
43
|
+
"@thi.ng/bitfield": "^2.3.16",
|
|
44
|
+
"@thi.ng/errors": "^2.4.11",
|
|
45
|
+
"@thi.ng/morton": "^3.1.63",
|
|
46
|
+
"@thi.ng/random": "^3.6.25",
|
|
47
|
+
"@thi.ng/transducers": "^8.8.22"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@microsoft/api-extractor": "^7.39.0",
|
|
@@ -166,5 +166,5 @@
|
|
|
166
166
|
],
|
|
167
167
|
"year": 2019
|
|
168
168
|
},
|
|
169
|
-
"gitHead": "
|
|
169
|
+
"gitHead": "7426e2ae6fca5482c6eaf649872296fc89955374\n"
|
|
170
170
|
}
|
package/random.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IRandom } from "@thi.ng/random";
|
|
2
2
|
import type { GridIterOpts2D } from "./api.js";
|
|
3
|
-
interface RandomOpts2D extends GridIterOpts2D {
|
|
3
|
+
export interface RandomOpts2D extends GridIterOpts2D {
|
|
4
4
|
/**
|
|
5
5
|
* PRNG instance to use
|
|
6
6
|
*
|
|
@@ -18,5 +18,4 @@ interface RandomOpts2D extends GridIterOpts2D {
|
|
|
18
18
|
* @param opts -
|
|
19
19
|
*/
|
|
20
20
|
export declare function random2d(opts: RandomOpts2D): Generator<import("./api.js").GridCoord2D, void, unknown>;
|
|
21
|
-
export {};
|
|
22
21
|
//# sourceMappingURL=random.d.ts.map
|
package/transforms.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { PointTransform2D } from "./api.js";
|
|
2
2
|
/**
|
|
3
|
-
* No-op / identity {@link
|
|
3
|
+
* No-op / identity {@link PointTransform2D}.
|
|
4
4
|
*/
|
|
5
5
|
export declare const ident: PointTransform2D;
|
|
6
6
|
export declare const flipX: PointTransform2D;
|
|
7
7
|
export declare const flipY: PointTransform2D;
|
|
8
8
|
export declare const flipXY: PointTransform2D;
|
|
9
9
|
/**
|
|
10
|
-
* {@link
|
|
10
|
+
* {@link PointTransform2D} to swaps X & Y coords.
|
|
11
11
|
*/
|
|
12
12
|
export declare const swapXY: PointTransform2D;
|
|
13
13
|
/**
|
|
14
|
-
* Higher order {@link
|
|
14
|
+
* Higher order {@link PointTransform2D} to compose given transforms in
|
|
15
15
|
* left-to-right order.
|
|
16
16
|
*
|
|
17
17
|
* @param a
|