@thi.ng/geom-trace-bitmap 0.3.48 → 0.3.50
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/api.d.ts +3 -2
- package/package.json +8 -8
- package/trace.d.ts +6 -5
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
package/api.d.ts
CHANGED
|
@@ -49,8 +49,9 @@ export interface TraceOpts {
|
|
|
49
49
|
}
|
|
50
50
|
export interface TraceBitmapOpts extends TraceOpts {
|
|
51
51
|
/**
|
|
52
|
-
* Optional sequence of {@link
|
|
53
|
-
* default _all_ directions are traced in
|
|
52
|
+
* Optional sequence of {@link TraceDir} or {@link TraceDirImpl}
|
|
53
|
+
* directions/modes to perform. By default _all_ directions are traced in
|
|
54
|
+
* this order:
|
|
54
55
|
*
|
|
55
56
|
* - (h)orizontal
|
|
56
57
|
* - (v)ertical
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/geom-trace-bitmap",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.50",
|
|
4
4
|
"description": "Bitmap image to hairline vector and point cloud conversions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"test": "bun test"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@thi.ng/api": "^8.9.
|
|
39
|
-
"@thi.ng/errors": "^2.4.
|
|
40
|
-
"@thi.ng/grid-iterators": "^4.0.
|
|
41
|
-
"@thi.ng/matrices": "^2.3.
|
|
42
|
-
"@thi.ng/pixel": "^6.0
|
|
43
|
-
"@thi.ng/vectors": "^7.
|
|
38
|
+
"@thi.ng/api": "^8.9.18",
|
|
39
|
+
"@thi.ng/errors": "^2.4.11",
|
|
40
|
+
"@thi.ng/grid-iterators": "^4.0.43",
|
|
41
|
+
"@thi.ng/matrices": "^2.3.6",
|
|
42
|
+
"@thi.ng/pixel": "^6.1.0",
|
|
43
|
+
"@thi.ng/vectors": "^7.10.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@microsoft/api-extractor": "^7.39.0",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"status": "alpha",
|
|
101
101
|
"year": 2022
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "7426e2ae6fca5482c6eaf649872296fc89955374\n"
|
|
104
104
|
}
|
package/trace.d.ts
CHANGED
|
@@ -4,13 +4,14 @@ import type { Vec, VecPair } from "@thi.ng/vectors";
|
|
|
4
4
|
import type { TraceBitmapOpts, TraceOpts } from "./api.js";
|
|
5
5
|
/**
|
|
6
6
|
* Main conversion/extraction function. According to given
|
|
7
|
-
* {@link TraceBitmapOpts.
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
7
|
+
* {@link TraceBitmapOpts.dir}, extracts line segments and/or points from given
|
|
8
|
+
* pixel buffer and returns object of results. By default _all_ line directions
|
|
9
|
+
* and points are processed. If {@link TraceBitmapOpts.mat} is given, all
|
|
10
|
+
* coordinates are transformed with that matrix.
|
|
11
11
|
*
|
|
12
12
|
* ```ts
|
|
13
|
-
*
|
|
13
|
+
* // extract horizontal line segments
|
|
14
|
+
* traceBitmap({ img: ..., dir: ["h"] })
|
|
14
15
|
* // { lines: [...], points: [] }
|
|
15
16
|
* ```
|
|
16
17
|
*
|