@thi.ng/grid-iterators 4.0.106 → 4.0.108

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**: 2025-01-29T16:25:48Z
3
+ - **Last updated**: 2025-02-19T20:59:58Z
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
@@ -7,7 +7,7 @@
7
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
  > [!NOTE]
10
- > This is one of 201 standalone projects, maintained as part
10
+ > This is one of 202 standalone projects, maintained as part
11
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
12
12
  > and anti-framework.
13
13
  >
package/clipping.d.ts CHANGED
@@ -26,7 +26,7 @@ export declare function clipped(src: Iterable<number[]>, left: number, top: numb
26
26
  */
27
27
  export declare const intersectRectCircle: FnU7<number, boolean>;
28
28
  /**
29
- * Based on [`liangBarsky2Raw()`](https://docs.thi.ng/umbrella/geom-clip-line/functions/liangBarsky2Raw.html), but with diff return type.
29
+ * Based on [`liangBarsky2Raw`](https://docs.thi.ng/umbrella/geom-clip-line/functions/liangBarsky2Raw.html), but with diff return type.
30
30
  *
31
31
  * @param ax -
32
32
  * @param ay -
@@ -7,9 +7,9 @@ export interface DiagonalSlopeOpts extends GridIterOpts2D {
7
7
  }
8
8
  /**
9
9
  * Similar to {@link diagonalSlopeX}. Yields sequence of 2D grid coordinates in
10
- * diagonal order with configurable slope, starting at [0,0]. Each diagonal
11
- * starts at y=0 and progresses in +y direction and every `step` steps, one
12
- * step in -x direction.
10
+ * diagonal order with configurable slope, starting at `[0,0]`. Each diagonal
11
+ * starts at y=0 and progresses in +y direction and every `step` steps, one step
12
+ * in -x direction.
13
13
  *
14
14
  * @example
15
15
  * ```ts tangle:../export/diagonal-slopey.ts
@@ -37,9 +37,9 @@ export interface DiagonalSlopeOpts extends GridIterOpts2D {
37
37
  export declare function diagonalSlopeY(opts: DiagonalSlopeOpts): Generator<import("./api.js").GridCoord2D, void, unknown>;
38
38
  /**
39
39
  * Similar to {@link diagonalSlopeY}. Yields sequence of 2D grid coordinates in
40
- * diagonal order with configurable slope, starting at [step-1,0]. Each
41
- * diagonal starts at y=0 and progresses in -x direction and every `step`
42
- * steps, one step in +y direction.
40
+ * diagonal order with configurable slope, starting at `[step-1,0]`. Each
41
+ * diagonal starts at y=0 and progresses in -x direction and every `step` steps,
42
+ * one step in +y direction.
43
43
  *
44
44
  * @param opts -
45
45
  */
package/diagonal.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { GridIterOpts2D } from "./api.js";
2
2
  /**
3
- * Yields sequence of 2D grid coordinates in diagonal order starting at [0,0]
3
+ * Yields sequence of 2D grid coordinates in diagonal order starting at `[0,0]`
4
4
  * and using given `cols` and `rows`. Each diagonal starts at y=0 and progresses
5
5
  * in -x,+y direction.
6
6
  *
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Yields iterator of 2D grid coordinates based on the recursive Diamond Square
3
3
  * algorithm. The given `exp` is a power of 2 exponent and the resulting
4
- * coordinates (in both directions) will be in the closed [0..2^exp] interval
4
+ * coordinates (in both directions) will be in the closed `[0,2^exp]` interval
5
5
  * (i.e. each axis is always a power-of-2 plus 1).
6
6
  *
7
7
  * @remarks
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/grid-iterators",
3
- "version": "4.0.106",
3
+ "version": "4.0.108",
4
4
  "description": "2D grid and shape iterators w/ multiple orderings",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -41,18 +41,18 @@
41
41
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
42
42
  },
43
43
  "dependencies": {
44
- "@thi.ng/api": "^8.11.19",
45
- "@thi.ng/arrays": "^2.10.14",
46
- "@thi.ng/binary": "^3.4.42",
47
- "@thi.ng/bitfield": "^2.3.64",
48
- "@thi.ng/errors": "^2.5.25",
49
- "@thi.ng/morton": "^3.1.106",
50
- "@thi.ng/random": "^4.1.10",
51
- "@thi.ng/transducers": "^9.2.17"
44
+ "@thi.ng/api": "^8.11.21",
45
+ "@thi.ng/arrays": "^2.10.16",
46
+ "@thi.ng/binary": "^3.4.44",
47
+ "@thi.ng/bitfield": "^2.3.66",
48
+ "@thi.ng/errors": "^2.5.27",
49
+ "@thi.ng/morton": "^3.1.108",
50
+ "@thi.ng/random": "^4.1.12",
51
+ "@thi.ng/transducers": "^9.2.19"
52
52
  },
53
53
  "devDependencies": {
54
- "esbuild": "^0.24.2",
55
- "typedoc": "^0.27.6",
54
+ "esbuild": "^0.25.0",
55
+ "typedoc": "^0.27.7",
56
56
  "typescript": "^5.7.3"
57
57
  },
58
58
  "keywords": [
@@ -168,5 +168,5 @@
168
168
  ],
169
169
  "year": 2019
170
170
  },
171
- "gitHead": "fc1d498e8d4b690db873c30cc594352a804e7a65\n"
171
+ "gitHead": "bee617702ac61d093465b967f8f973dc566faa6b\n"
172
172
  }
package/rows.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { GridIterOpts2D } from "./api.js";
2
2
  /**
3
3
  * Yields sequence of 2D grid coordinates in row-major order. Same as
4
- * [`range2d()`](https://docs.thi.ng/umbrella/transducers/functions/range2d.html).
4
+ * [`range2d`](https://docs.thi.ng/umbrella/transducers/functions/range2d.html).
5
5
  *
6
6
  * @param opts -
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import type { GridIterOpts2D } from "./api.js";
2
2
  /**
3
3
  * Yields sequence of 2D grid coordinates in zigzag column order starting from
4
- * [0,0], given `cols` and `rows`.
4
+ * `[0,0]`, given `cols` and `rows`.
5
5
  *
6
6
  * Ported & modified from original Java code by Christopher Kulla.
7
7
  * https://sourceforge.net/p/sunflow/code/HEAD/tree/trunk/src/org/sunflow/core/bucket/SpiralBucketOrder.java
@@ -1,7 +1,7 @@
1
1
  import type { GridIterOpts2D } from "./api.js";
2
2
  /**
3
3
  * Similar to {@link diagonal2d}, but yields 2D grid coordinates in zigzag
4
- * diagonal order starting at [0,0] and using given `cols` and `rows`.
4
+ * diagonal order starting at `[0,0]` and using given `cols` and `rows`.
5
5
  *
6
6
  * @param opts -
7
7
  */
package/zigzag-rows.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { GridIterOpts2D } from "./api.js";
2
2
  /**
3
3
  * Yields sequence of 2D grid coordinates in zigzag row order starting from
4
- * [0,0], given `cols` and `rows`.
4
+ * `[0,0]`, given `cols` and `rows`.
5
5
  *
6
6
  * Ported & modified from original Java code by Christopher Kulla.
7
7
  * https://sourceforge.net/p/sunflow/code/HEAD/tree/trunk/src/org/sunflow/core/bucket/SpiralBucketOrder.java