@thi.ng/grid-iterators 2.2.1 → 2.2.5
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 +8 -1
- package/line.js +1 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2021-
|
|
3
|
+
- **Last updated**: 2021-12-13T10:26:00Z
|
|
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,13 @@ 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
|
+
### [2.2.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/grid-iterators@2.2.4) (2021-12-13)
|
|
13
|
+
|
|
14
|
+
#### 🩹 Bug fixes
|
|
15
|
+
|
|
16
|
+
- off-by-one error in lineClipped() ([537b17a](https://github.com/thi-ng/umbrella/commit/537b17a))
|
|
17
|
+
- update right/bottom clip coords
|
|
18
|
+
|
|
12
19
|
## [2.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/grid-iterators@2.2.0) (2021-11-17)
|
|
13
20
|
|
|
14
21
|
#### 🚀 Features
|
package/line.js
CHANGED
|
@@ -37,6 +37,6 @@ export function* line(ax, ay, bx, by) {
|
|
|
37
37
|
* @param bottom
|
|
38
38
|
*/
|
|
39
39
|
export const lineClipped = (x1, y1, x2, y2, left, top, right, bottom) => {
|
|
40
|
-
const res = liangBarsky(x1, y1, x2, y2, left, top, right, bottom);
|
|
40
|
+
const res = liangBarsky(x1, y1, x2, y2, left, top, right - 1, bottom - 1);
|
|
41
41
|
return res ? line(res[0], res[1], res[2], res[3]) : undefined;
|
|
42
42
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/grid-iterators",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.5",
|
|
4
4
|
"description": "2D grid and shape iterators w/ multiple orderings",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -35,21 +35,21 @@
|
|
|
35
35
|
"test": "testament test"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@thi.ng/api": "^8.3.
|
|
39
|
-
"@thi.ng/arrays": "^2.1.
|
|
40
|
-
"@thi.ng/binary": "^3.1.
|
|
41
|
-
"@thi.ng/bitfield": "^2.1.
|
|
42
|
-
"@thi.ng/morton": "^3.1.
|
|
43
|
-
"@thi.ng/random": "^3.2.
|
|
44
|
-
"@thi.ng/transducers": "^8.
|
|
38
|
+
"@thi.ng/api": "^8.3.3",
|
|
39
|
+
"@thi.ng/arrays": "^2.1.3",
|
|
40
|
+
"@thi.ng/binary": "^3.1.3",
|
|
41
|
+
"@thi.ng/bitfield": "^2.1.4",
|
|
42
|
+
"@thi.ng/morton": "^3.1.3",
|
|
43
|
+
"@thi.ng/random": "^3.2.3",
|
|
44
|
+
"@thi.ng/transducers": "^8.2.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@microsoft/api-extractor": "^7.
|
|
48
|
-
"@thi.ng/testament": "^0.2.
|
|
47
|
+
"@microsoft/api-extractor": "^7.19.2",
|
|
48
|
+
"@thi.ng/testament": "^0.2.3",
|
|
49
49
|
"rimraf": "^3.0.2",
|
|
50
50
|
"tools": "^0.0.1",
|
|
51
|
-
"typedoc": "^0.22.
|
|
52
|
-
"typescript": "^4.5.
|
|
51
|
+
"typedoc": "^0.22.10",
|
|
52
|
+
"typescript": "^4.5.3"
|
|
53
53
|
},
|
|
54
54
|
"keywords": [
|
|
55
55
|
"2d",
|
|
@@ -149,5 +149,5 @@
|
|
|
149
149
|
],
|
|
150
150
|
"year": 2019
|
|
151
151
|
},
|
|
152
|
-
"gitHead": "
|
|
152
|
+
"gitHead": "1ba92c6b9509e74e509b4c0b875fc380a97bbbc1\n"
|
|
153
153
|
}
|