@thi.ng/grid-iterators 4.0.135 → 4.0.140
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/package.json +171 -171
- package/CHANGELOG.md +0 -107
package/package.json
CHANGED
|
@@ -1,172 +1,172 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}
|
|
2
|
+
"name": "@thi.ng/grid-iterators",
|
|
3
|
+
"version": "4.0.140",
|
|
4
|
+
"description": "2D grid and shape iterators w/ multiple orderings",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "./index.js",
|
|
7
|
+
"typings": "./index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/thi-ng/umbrella.git"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://thi.ng/grid-iterators",
|
|
14
|
+
"funding": [
|
|
15
|
+
{
|
|
16
|
+
"type": "github",
|
|
17
|
+
"url": "https://github.com/sponsors/postspectacular"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "patreon",
|
|
21
|
+
"url": "https://patreon.com/thing_umbrella"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "liberapay",
|
|
25
|
+
"url": "https://liberapay.com/thi.ng"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
29
|
+
"license": "Apache-2.0",
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "yarn build:esbuild && yarn build:decl",
|
|
32
|
+
"build:assets": "node tools/build-assets",
|
|
33
|
+
"build:decl": "tsc --declaration --emitDeclarationOnly",
|
|
34
|
+
"build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
|
|
35
|
+
"clean": "bun ../../tools/src/clean-package.ts",
|
|
36
|
+
"doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
|
|
37
|
+
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
38
|
+
"pub": "npm publish --access public",
|
|
39
|
+
"test": "bun test",
|
|
40
|
+
"tool:assets": "bun tools/build-assets.ts",
|
|
41
|
+
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@thi.ng/api": "^8.12.7",
|
|
45
|
+
"@thi.ng/arrays": "^2.13.16",
|
|
46
|
+
"@thi.ng/binary": "^3.4.65",
|
|
47
|
+
"@thi.ng/bitfield": "^2.4.18",
|
|
48
|
+
"@thi.ng/errors": "^2.5.47",
|
|
49
|
+
"@thi.ng/morton": "^3.1.129",
|
|
50
|
+
"@thi.ng/random": "^4.1.32",
|
|
51
|
+
"@thi.ng/transducers": "^9.6.15"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"esbuild": "^0.25.11",
|
|
55
|
+
"typedoc": "^0.28.14",
|
|
56
|
+
"typescript": "^5.9.3"
|
|
57
|
+
},
|
|
58
|
+
"keywords": [
|
|
59
|
+
"2d",
|
|
60
|
+
"binary",
|
|
61
|
+
"circle",
|
|
62
|
+
"clipping",
|
|
63
|
+
"diagonal",
|
|
64
|
+
"floodfill",
|
|
65
|
+
"grid",
|
|
66
|
+
"hilbert",
|
|
67
|
+
"iterator",
|
|
68
|
+
"line",
|
|
69
|
+
"morton",
|
|
70
|
+
"random",
|
|
71
|
+
"spiral",
|
|
72
|
+
"typescript",
|
|
73
|
+
"z-curve",
|
|
74
|
+
"zigzag"
|
|
75
|
+
],
|
|
76
|
+
"publishConfig": {
|
|
77
|
+
"access": "public"
|
|
78
|
+
},
|
|
79
|
+
"engines": {
|
|
80
|
+
"node": ">=18"
|
|
81
|
+
},
|
|
82
|
+
"files": [
|
|
83
|
+
"./*.js",
|
|
84
|
+
"./*.d.ts"
|
|
85
|
+
],
|
|
86
|
+
"exports": {
|
|
87
|
+
".": {
|
|
88
|
+
"default": "./index.js"
|
|
89
|
+
},
|
|
90
|
+
"./api": {
|
|
91
|
+
"default": "./api.js"
|
|
92
|
+
},
|
|
93
|
+
"./circle": {
|
|
94
|
+
"default": "./circle.js"
|
|
95
|
+
},
|
|
96
|
+
"./clipping": {
|
|
97
|
+
"default": "./clipping.js"
|
|
98
|
+
},
|
|
99
|
+
"./column-ends": {
|
|
100
|
+
"default": "./column-ends.js"
|
|
101
|
+
},
|
|
102
|
+
"./columns": {
|
|
103
|
+
"default": "./columns.js"
|
|
104
|
+
},
|
|
105
|
+
"./diagonal-ends": {
|
|
106
|
+
"default": "./diagonal-ends.js"
|
|
107
|
+
},
|
|
108
|
+
"./diagonal-slope": {
|
|
109
|
+
"default": "./diagonal-slope.js"
|
|
110
|
+
},
|
|
111
|
+
"./diagonal": {
|
|
112
|
+
"default": "./diagonal.js"
|
|
113
|
+
},
|
|
114
|
+
"./diamond-square": {
|
|
115
|
+
"default": "./diamond-square.js"
|
|
116
|
+
},
|
|
117
|
+
"./filters": {
|
|
118
|
+
"default": "./filters.js"
|
|
119
|
+
},
|
|
120
|
+
"./flood-fill": {
|
|
121
|
+
"default": "./flood-fill.js"
|
|
122
|
+
},
|
|
123
|
+
"./hilbert": {
|
|
124
|
+
"default": "./hilbert.js"
|
|
125
|
+
},
|
|
126
|
+
"./hvline": {
|
|
127
|
+
"default": "./hvline.js"
|
|
128
|
+
},
|
|
129
|
+
"./interleave": {
|
|
130
|
+
"default": "./interleave.js"
|
|
131
|
+
},
|
|
132
|
+
"./line": {
|
|
133
|
+
"default": "./line.js"
|
|
134
|
+
},
|
|
135
|
+
"./random": {
|
|
136
|
+
"default": "./random.js"
|
|
137
|
+
},
|
|
138
|
+
"./row-ends": {
|
|
139
|
+
"default": "./row-ends.js"
|
|
140
|
+
},
|
|
141
|
+
"./rows": {
|
|
142
|
+
"default": "./rows.js"
|
|
143
|
+
},
|
|
144
|
+
"./spiral": {
|
|
145
|
+
"default": "./spiral.js"
|
|
146
|
+
},
|
|
147
|
+
"./transforms": {
|
|
148
|
+
"default": "./transforms.js"
|
|
149
|
+
},
|
|
150
|
+
"./zcurve": {
|
|
151
|
+
"default": "./zcurve.js"
|
|
152
|
+
},
|
|
153
|
+
"./zigzag-columns": {
|
|
154
|
+
"default": "./zigzag-columns.js"
|
|
155
|
+
},
|
|
156
|
+
"./zigzag-diagonal": {
|
|
157
|
+
"default": "./zigzag-diagonal.js"
|
|
158
|
+
},
|
|
159
|
+
"./zigzag-rows": {
|
|
160
|
+
"default": "./zigzag-rows.js"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"thi.ng": {
|
|
164
|
+
"related": [
|
|
165
|
+
"morton",
|
|
166
|
+
"rasterize",
|
|
167
|
+
"transducers"
|
|
168
|
+
],
|
|
169
|
+
"year": 2019
|
|
170
|
+
},
|
|
171
|
+
"gitHead": "d977f819bcafdcb2b24c45f8d01a167fe29fc85a\n"
|
|
172
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
- **Last updated**: 2025-09-01T16:38:35Z
|
|
4
|
-
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
|
-
|
|
6
|
-
All notable changes to this project will be documented in this file.
|
|
7
|
-
Only versions published since **2022-01-01** are listed here.
|
|
8
|
-
Please consult the Git history for older version information.
|
|
9
|
-
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
10
|
-
|
|
11
|
-
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
12
|
-
and/or version bumps of transitive dependencies.
|
|
13
|
-
|
|
14
|
-
### [4.0.75](https://github.com/thi-ng/umbrella/tree/@thi.ng/grid-iterators@4.0.75) (2024-06-21)
|
|
15
|
-
|
|
16
|
-
#### ♻️ Refactoring
|
|
17
|
-
|
|
18
|
-
- dedupe interleave logic/iteration, add tests ([7bc9f7f](https://github.com/thi-ng/umbrella/commit/7bc9f7f))
|
|
19
|
-
- enforce uniform naming convention of internal functions ([56992b2](https://github.com/thi-ng/umbrella/commit/56992b2))
|
|
20
|
-
- internal update floodFill() ([3af4715](https://github.com/thi-ng/umbrella/commit/3af4715))
|
|
21
|
-
|
|
22
|
-
### [4.0.71](https://github.com/thi-ng/umbrella/tree/@thi.ng/grid-iterators@4.0.71) (2024-04-20)
|
|
23
|
-
|
|
24
|
-
#### ♻️ Refactoring
|
|
25
|
-
|
|
26
|
-
- update type usage ([a3afff7](https://github.com/thi-ng/umbrella/commit/a3afff7))
|
|
27
|
-
|
|
28
|
-
### [4.0.54](https://github.com/thi-ng/umbrella/tree/@thi.ng/grid-iterators@4.0.54) (2024-02-22)
|
|
29
|
-
|
|
30
|
-
#### ♻️ Refactoring
|
|
31
|
-
|
|
32
|
-
- update object destructuring in all pkgs & examples ([f36aeb0](https://github.com/thi-ng/umbrella/commit/f36aeb0))
|
|
33
|
-
|
|
34
|
-
### [4.0.30](https://github.com/thi-ng/umbrella/tree/@thi.ng/grid-iterators@4.0.30) (2023-11-09)
|
|
35
|
-
|
|
36
|
-
#### ♻️ Refactoring
|
|
37
|
-
|
|
38
|
-
- update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))
|
|
39
|
-
|
|
40
|
-
### [4.0.21](https://github.com/thi-ng/umbrella/tree/@thi.ng/grid-iterators@4.0.21) (2023-10-11)
|
|
41
|
-
|
|
42
|
-
#### ♻️ Refactoring
|
|
43
|
-
|
|
44
|
-
- minor update columns2d() ([7ecb207](https://github.com/thi-ng/umbrella/commit/7ecb207))
|
|
45
|
-
|
|
46
|
-
# [4.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/grid-iterators@4.0.0) (2023-04-08)
|
|
47
|
-
|
|
48
|
-
#### 🛑 Breaking changes
|
|
49
|
-
|
|
50
|
-
- add/rename types/opts ([bc3ea21](https://github.com/thi-ng/umbrella/commit/bc3ea21))
|
|
51
|
-
- BREAKING CHANGE: rename various option types (add 2D/3D suffixes)
|
|
52
|
-
|
|
53
|
-
#### 🚀 Features
|
|
54
|
-
|
|
55
|
-
- add filter predicates ([81abf60](https://github.com/thi-ng/umbrella/commit/81abf60))
|
|
56
|
-
- add isDiagonal/Alt() filters
|
|
57
|
-
|
|
58
|
-
#### 🩹 Bug fixes
|
|
59
|
-
|
|
60
|
-
- fix imports ([353bc3d](https://github.com/thi-ng/umbrella/commit/353bc3d))
|
|
61
|
-
|
|
62
|
-
## [3.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/grid-iterators@3.1.0) (2023-03-25)
|
|
63
|
-
|
|
64
|
-
#### 🚀 Features
|
|
65
|
-
|
|
66
|
-
- add diagonalSlopeX/Y() ([f63dc6e](https://github.com/thi-ng/umbrella/commit/f63dc6e))
|
|
67
|
-
- add diagonal iterators with configurable slope (X & Y versions)
|
|
68
|
-
- update pkg deps
|
|
69
|
-
|
|
70
|
-
#### ♻️ Refactoring
|
|
71
|
-
|
|
72
|
-
- update diagonalEnds2d() ([e20bf7b](https://github.com/thi-ng/umbrella/commit/e20bf7b))
|
|
73
|
-
- add `all` option to include first & last points
|
|
74
|
-
- extract DiagonalSlopeOpts ([e08857d](https://github.com/thi-ng/umbrella/commit/e08857d))
|
|
75
|
-
- update diagonalEnds2d() opts ([d14458a](https://github.com/thi-ng/umbrella/commit/d14458a))
|
|
76
|
-
- make `all` optional
|
|
77
|
-
|
|
78
|
-
### [3.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/grid-iterators@3.0.1) (2022-12-29)
|
|
79
|
-
|
|
80
|
-
#### 🩹 Bug fixes
|
|
81
|
-
|
|
82
|
-
- add missing type exports ([879c11c](https://github.com/thi-ng/umbrella/commit/879c11c))
|
|
83
|
-
|
|
84
|
-
#### ♻️ Refactoring
|
|
85
|
-
|
|
86
|
-
- add GridIterator2D/3D type aliases ([610ad0e](https://github.com/thi-ng/umbrella/commit/610ad0e))
|
|
87
|
-
|
|
88
|
-
# [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/grid-iterators@3.0.0) (2022-12-22)
|
|
89
|
-
|
|
90
|
-
#### 🛑 Breaking changes
|
|
91
|
-
|
|
92
|
-
- add point transforms & global options ([1861154](https://github.com/thi-ng/umbrella/commit/1861154))
|
|
93
|
-
- BREAKING CHANGE: update function signatures, switch to using options object as arg
|
|
94
|
-
- add `GridIterOpts` interface
|
|
95
|
-
- add `PointTransform` and implementations:
|
|
96
|
-
- add flipX/Y/XY, swapXY transforms
|
|
97
|
-
- update most iterators to use new options
|
|
98
|
-
|
|
99
|
-
#### 🩹 Bug fixes
|
|
100
|
-
|
|
101
|
-
- fix imports ([d4cede6](https://github.com/thi-ng/umbrella/commit/d4cede6))
|
|
102
|
-
|
|
103
|
-
## [2.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/grid-iterators@2.3.0) (2022-04-07)
|
|
104
|
-
|
|
105
|
-
#### 🚀 Features
|
|
106
|
-
|
|
107
|
-
- add diamondSquare() ([4fabaad](https://github.com/thi-ng/umbrella/commit/4fabaad))
|