@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2023-12-31T09:44:24Z
3
+ - **Last updated**: 2024-01-26T18:03:04Z
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
@@ -154,4 +154,4 @@ If this project contributes to an academic publication, please cite it as:
154
154
 
155
155
  ## License
156
156
 
157
- © 2022 - 2023 Karsten Schmidt // Apache License 2.0
157
+ © 2022 - 2024 Karsten Schmidt // Apache License 2.0
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 Trace} directions/modes to perform. By
53
- * default _all_ directions are traced in this order:
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.48",
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.16",
39
- "@thi.ng/errors": "^2.4.10",
40
- "@thi.ng/grid-iterators": "^4.0.41",
41
- "@thi.ng/matrices": "^2.3.4",
42
- "@thi.ng/pixel": "^6.0.3",
43
- "@thi.ng/vectors": "^7.8.15"
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": "b3db173682e1148cf08a6bd907b8d90b47b7c066\n"
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.flags}, extracts line segments and/or points from
8
- * given pixel buffer and returns object of results. By default _all_ line
9
- * directions and points are processed. If {@link TraceBitmapOpts.mat} is given,
10
- * all coordinates are transformed with that matrix.
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
- * traceBitmap({ img: ..., flags: Trace.DIAGONAL })
13
+ * // extract horizontal line segments
14
+ * traceBitmap({ img: ..., dir: ["h"] })
14
15
  * // { lines: [...], points: [] }
15
16
  * ```
16
17
  *