@thi.ng/geom-trace-bitmap 0.3.179 → 0.3.181
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/README.md +21 -20
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
|
-
<!-- Please see: https://
|
|
3
|
-
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/geom-trace-bitmap)
|
|
6
6
|

|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
10
|
> This is one of 214 standalone projects, maintained as part
|
|
11
|
-
> of the [@thi.ng/umbrella](https://
|
|
11
|
+
> of the [@thi.ng/umbrella](https://codeberg.org/thi.ng/umbrella/) ecosystem
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
14
|
-
> 🚀 Please help me to work full-time on these projects by [sponsoring
|
|
15
|
-
>
|
|
14
|
+
> 🚀 Please help me to work full-time on these projects by [sponsoring
|
|
15
|
+
> me](https://codeberg.org/thi.ng/umbrella/src/branch/develop/CONTRIBUTING.md#donations).
|
|
16
|
+
> Thank you! ❤️
|
|
16
17
|
|
|
17
18
|
- [About](#about)
|
|
18
19
|
- [Status](#status)
|
|
@@ -27,7 +28,7 @@
|
|
|
27
28
|
|
|
28
29
|
## About
|
|
29
30
|
|
|
30
|
-
Bitmap image to hairline vector and point cloud conversions. This is a support package for [@thi.ng/geom](https://
|
|
31
|
+
Bitmap image to hairline vector and point cloud conversions. This is a support package for [@thi.ng/geom](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom).
|
|
31
32
|
|
|
32
33
|
This package provides an extensible setup to extract user selectable
|
|
33
34
|
single-pixel width line segments in horizontal, vertical and diagonal (45°)
|
|
@@ -44,12 +45,12 @@ and example below for details.
|
|
|
44
45
|
|
|
45
46
|
**ALPHA** - bleeding edge / work-in-progress
|
|
46
47
|
|
|
47
|
-
[Search or submit any issues for this package](https://
|
|
48
|
+
[Search or submit any issues for this package](https://codeberg.org/thi.ng/umbrella/issues?q=%5Bgeom-trace-bitmap%5D)
|
|
48
49
|
|
|
49
50
|
## Related packages
|
|
50
51
|
|
|
51
|
-
- [@thi.ng/geom-axidraw](https://
|
|
52
|
-
- [@thi.ng/pixel](https://
|
|
52
|
+
- [@thi.ng/geom-axidraw](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom-axidraw) - Conversion and preparation of thi.ng/geom shapes & shape groups to/from AxiDraw pen plotter draw commands
|
|
53
|
+
- [@thi.ng/pixel](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/pixel) - Typedarray integer & float pixel buffers w/ customizable formats, blitting, drawing, convolution
|
|
53
54
|
|
|
54
55
|
## Installation
|
|
55
56
|
|
|
@@ -81,24 +82,24 @@ Package sizes (brotli'd, pre-treeshake): ESM: 996 bytes
|
|
|
81
82
|
|
|
82
83
|
## Dependencies
|
|
83
84
|
|
|
84
|
-
- [@thi.ng/api](https://
|
|
85
|
-
- [@thi.ng/errors](https://
|
|
86
|
-
- [@thi.ng/grid-iterators](https://
|
|
87
|
-
- [@thi.ng/matrices](https://
|
|
88
|
-
- [@thi.ng/pixel](https://
|
|
89
|
-
- [@thi.ng/vectors](https://
|
|
85
|
+
- [@thi.ng/api](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/api)
|
|
86
|
+
- [@thi.ng/errors](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/errors)
|
|
87
|
+
- [@thi.ng/grid-iterators](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/grid-iterators)
|
|
88
|
+
- [@thi.ng/matrices](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/matrices)
|
|
89
|
+
- [@thi.ng/pixel](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/pixel)
|
|
90
|
+
- [@thi.ng/vectors](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/vectors)
|
|
90
91
|
|
|
91
92
|
Note: @thi.ng/api is in _most_ cases a type-only import (not used at runtime)
|
|
92
93
|
|
|
93
94
|
## Usage examples
|
|
94
95
|
|
|
95
96
|
One project in this repo's
|
|
96
|
-
[/examples](https://
|
|
97
|
+
[/examples](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples)
|
|
97
98
|
directory is using this package:
|
|
98
99
|
|
|
99
|
-
| Screenshot | Description | Live demo | Source
|
|
100
|
-
|
|
101
|
-
| <img src="https://
|
|
100
|
+
| Screenshot | Description | Live demo | Source |
|
|
101
|
+
|:--------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------|:---------------------------------------------------|:----------------------------------------------------------------------------------------|
|
|
102
|
+
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/trace-bitmap.jpg" width="240"/> | Multi-layer vectorization & dithering of bitmap images | [Demo](https://demo.thi.ng/umbrella/trace-bitmap/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/trace-bitmap) |
|
|
102
103
|
|
|
103
104
|
## API
|
|
104
105
|
|
|
@@ -109,7 +110,7 @@ TODO
|
|
|
109
110
|
### Basic usage
|
|
110
111
|
|
|
111
112
|
For brevity, this example uses
|
|
112
|
-
[thi.ng/pixel-io-netpbm](https://
|
|
113
|
+
[thi.ng/pixel-io-netpbm](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/pixel-io-netpbm)
|
|
113
114
|
to load an image in PGM format. For that image format, the `read()` function
|
|
114
115
|
returns a [thi.ng/pixel
|
|
115
116
|
IntBuffer](https://docs.thi.ng/umbrella/pixel/classes/IntBuffer.html) using the
|
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.181",
|
|
4
4
|
"description": "Bitmap image to hairline vector and point cloud conversions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://
|
|
11
|
+
"url": "git+https://codeberg.org/thi.ng/umbrella.git",
|
|
12
12
|
"directory": "packages/geom-trace-bitmap"
|
|
13
13
|
},
|
|
14
14
|
"homepage": "https://thi.ng/geom-trace-bitmap",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.12.
|
|
44
|
-
"@thi.ng/errors": "^2.6.
|
|
45
|
-
"@thi.ng/grid-iterators": "^4.0.
|
|
46
|
-
"@thi.ng/matrices": "^3.0.
|
|
47
|
-
"@thi.ng/pixel": "^7.5.
|
|
48
|
-
"@thi.ng/vectors": "^8.6.
|
|
43
|
+
"@thi.ng/api": "^8.12.18",
|
|
44
|
+
"@thi.ng/errors": "^2.6.7",
|
|
45
|
+
"@thi.ng/grid-iterators": "^4.0.159",
|
|
46
|
+
"@thi.ng/matrices": "^3.0.42",
|
|
47
|
+
"@thi.ng/pixel": "^7.5.27",
|
|
48
|
+
"@thi.ng/vectors": "^8.6.27"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"esbuild": "^0.27.2",
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
"status": "alpha",
|
|
104
104
|
"year": 2022
|
|
105
105
|
},
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "929fb6590178a41cbb77cbb87e07c59c61381607\n"
|
|
107
107
|
}
|