@thi.ng/geom-clip-line 2.3.85 → 2.3.87
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/README.md +2 -2
- package/liang-barsky.d.ts +3 -3
- package/package.json +6 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2024-04-
|
|
3
|
+
- **Last updated**: 2024-04-23T07:02:18Z
|
|
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
|
+
### [2.3.86](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-clip-line@2.3.86) (2024-04-20)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- update type usage ([423f8e1](https://github.com/thi-ng/umbrella/commit/423f8e1))
|
|
17
|
+
|
|
12
18
|
### [2.3.44](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-clip-line@2.3.44) (2023-11-09)
|
|
13
19
|
|
|
14
20
|
#### ♻️ Refactoring
|
package/README.md
CHANGED
|
@@ -64,10 +64,10 @@ import * as gcl from "@thi.ng/geom-clip-line";
|
|
|
64
64
|
Browser ESM import:
|
|
65
65
|
|
|
66
66
|
```html
|
|
67
|
-
<script type="module" src="https://
|
|
67
|
+
<script type="module" src="https://esm.run/@thi.ng/geom-clip-line"></script>
|
|
68
68
|
```
|
|
69
69
|
|
|
70
|
-
[
|
|
70
|
+
[JSDelivr documentation](https://www.jsdelivr.com/)
|
|
71
71
|
|
|
72
72
|
For Node.js REPL:
|
|
73
73
|
|
package/liang-barsky.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FnU8, Tuple } from "@thi.ng/api";
|
|
1
|
+
import type { FnU8, Maybe, Tuple } from "@thi.ng/api";
|
|
2
2
|
import type { ReadonlyVec, Vec } from "@thi.ng/vectors";
|
|
3
3
|
/**
|
|
4
4
|
* Performs Liang-Barsky clipping of the line segment with endpoints `a`, `b`
|
|
@@ -19,7 +19,7 @@ import type { ReadonlyVec, Vec } from "@thi.ng/vectors";
|
|
|
19
19
|
* @param ca - result A
|
|
20
20
|
* @param cb - result B
|
|
21
21
|
*/
|
|
22
|
-
export declare const liangBarsky2: (a: ReadonlyVec, b: ReadonlyVec, min: ReadonlyVec, max: ReadonlyVec, ca?: Vec, cb?: Vec) => [Vec, Vec, number, number]
|
|
22
|
+
export declare const liangBarsky2: (a: ReadonlyVec, b: ReadonlyVec, min: ReadonlyVec, max: ReadonlyVec, ca?: Vec, cb?: Vec) => Maybe<[Vec, Vec, number, number]>;
|
|
23
23
|
/**
|
|
24
24
|
* Same as {@link liangBarsky2} but for non-vector arguments.
|
|
25
25
|
*
|
|
@@ -32,5 +32,5 @@ export declare const liangBarsky2: (a: ReadonlyVec, b: ReadonlyVec, min: Readonl
|
|
|
32
32
|
* @param maxx -
|
|
33
33
|
* @param maxy -
|
|
34
34
|
*/
|
|
35
|
-
export declare const liangBarsky2Raw: FnU8<number, Tuple<number, 6
|
|
35
|
+
export declare const liangBarsky2Raw: FnU8<number, Maybe<Tuple<number, 6>>>;
|
|
36
36
|
//# sourceMappingURL=liang-barsky.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/geom-clip-line",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.87",
|
|
4
4
|
"description": "2D line clipping (Liang-Barsky)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"build": "yarn build:esbuild && yarn build:decl",
|
|
28
28
|
"build:decl": "tsc --declaration --emitDeclarationOnly",
|
|
29
29
|
"build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
|
|
30
|
-
"clean": "
|
|
30
|
+
"clean": "bun ../../tools/src/clean-package.ts",
|
|
31
31
|
"doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
|
|
32
32
|
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
|
|
33
33
|
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
@@ -36,14 +36,13 @@
|
|
|
36
36
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@thi.ng/api": "^8.
|
|
40
|
-
"@thi.ng/geom-isec": "^3.0.
|
|
41
|
-
"@thi.ng/vectors": "^7.10.
|
|
39
|
+
"@thi.ng/api": "^8.11.1",
|
|
40
|
+
"@thi.ng/geom-isec": "^3.0.8",
|
|
41
|
+
"@thi.ng/vectors": "^7.10.29"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@microsoft/api-extractor": "^7.43.0",
|
|
45
45
|
"esbuild": "^0.20.2",
|
|
46
|
-
"rimraf": "^5.0.5",
|
|
47
46
|
"typedoc": "^0.25.12",
|
|
48
47
|
"typescript": "^5.4.3"
|
|
49
48
|
},
|
|
@@ -88,5 +87,5 @@
|
|
|
88
87
|
],
|
|
89
88
|
"year": 2013
|
|
90
89
|
},
|
|
91
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "5dd66c18a3862a3af69a5b2f49563f7cbdd960c2\n"
|
|
92
91
|
}
|