@thi.ng/geom-trace-bitmap 0.3.87 → 0.3.88
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 +4 -2
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 198 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
@@ -88,6 +88,8 @@ Package sizes (brotli'd, pre-treeshake): ESM: 993 bytes
|
|
|
88
88
|
- [@thi.ng/pixel](https://github.com/thi-ng/umbrella/tree/develop/packages/pixel)
|
|
89
89
|
- [@thi.ng/vectors](https://github.com/thi-ng/umbrella/tree/develop/packages/vectors)
|
|
90
90
|
|
|
91
|
+
Note: @thi.ng/api is in _most_ cases a type-only import (not used at runtime)
|
|
92
|
+
|
|
91
93
|
## Usage examples
|
|
92
94
|
|
|
93
95
|
One project in this repo's
|
|
@@ -118,7 +120,7 @@ pixel format...
|
|
|
118
120
|
import { asSvg, group, line, points, svgDoc } from "@thi.ng/geom";
|
|
119
121
|
import { traceBitmap } from "@thi.ng/geom-trace-bitmap";
|
|
120
122
|
import { read } from "@thi.ng/pixel-io-netpbm";
|
|
121
|
-
import { readFileSync, writeFileSync }
|
|
123
|
+
import { readFileSync, writeFileSync } "node:fs";
|
|
122
124
|
|
|
123
125
|
// vectorize bitmap, the returned arrays contain:
|
|
124
126
|
// - pairs of vectors (line segments)
|
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.88",
|
|
4
4
|
"description": "Bitmap image to hairline vector and point cloud conversions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@thi.ng/api": "^8.11.
|
|
40
|
-
"@thi.ng/errors": "^2.5.
|
|
41
|
-
"@thi.ng/grid-iterators": "^4.0.
|
|
42
|
-
"@thi.ng/matrices": "^2.4.
|
|
43
|
-
"@thi.ng/pixel": "^
|
|
44
|
-
"@thi.ng/vectors": "^7.11.
|
|
39
|
+
"@thi.ng/api": "^8.11.7",
|
|
40
|
+
"@thi.ng/errors": "^2.5.13",
|
|
41
|
+
"@thi.ng/grid-iterators": "^4.0.80",
|
|
42
|
+
"@thi.ng/matrices": "^2.4.5",
|
|
43
|
+
"@thi.ng/pixel": "^7.0.0",
|
|
44
|
+
"@thi.ng/vectors": "^7.11.5"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@microsoft/api-extractor": "^7.47.0",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"status": "alpha",
|
|
101
101
|
"year": 2022
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "324d6b7dbf31558329e9fb6452e29b2f7db9c61a\n"
|
|
104
104
|
}
|