@thi.ng/axidraw 1.1.174 → 1.1.176
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 +26 -25
- package/api.d.ts +1 -1
- package/package.json +13 -13
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/axidraw)
|
|
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
|
- [Declarative vs. imperative](#declarative-vs-imperative)
|
|
@@ -40,14 +41,14 @@
|
|
|
40
41
|
|
|
41
42
|
Minimal AxiDraw plotter/drawing machine controller for Node.js.
|
|
42
43
|
|
|
43
|
-

|
|
44
45
|
|
|
45
46
|
<small>AXI-SCAPE \#000, 12-layer watercolor painting/plot of cellular automata, © 2023 Karsten Schmidt</small>
|
|
46
47
|
|
|
47
48
|
This package provides a super-lightweight alternative to control an [AxiDraw
|
|
48
49
|
plotter](https://axidraw.com/) directly from Node.js, using a small custom set
|
|
49
50
|
of medium/high-level drawing commands. Structurally, these custom commands are
|
|
50
|
-
[thi.ng/hiccup](https://
|
|
51
|
+
[thi.ng/hiccup](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/hiccup/)-like
|
|
51
52
|
S-expressions, which can be easily serialized to/from JSON and are translated to
|
|
52
53
|
the native [EBB commands](https://evil-mad.github.io/EggBot/ebb.html) for the
|
|
53
54
|
plotter.
|
|
@@ -58,7 +59,7 @@ Due to AxiDraw's lack of G-Code support, most other available AxiDraw support
|
|
|
58
59
|
libraries are providing only a purely imperative API to control the machine. In
|
|
59
60
|
contrast, this package utilizes a more declarative approach, also very much
|
|
60
61
|
following the pattern of other packages in the
|
|
61
|
-
[thi.ng/umbrella](https://
|
|
62
|
+
[thi.ng/umbrella](https://codeberg.org/thi.ng/umbrella/) monorepo, which allows
|
|
62
63
|
(geometry) data to be inspected, augmented, converted/transformed, serialized up
|
|
63
64
|
until the very last moment before being sent to the machine for physical
|
|
64
65
|
output...
|
|
@@ -81,28 +82,28 @@ The bounding rect can be either defined by a tuple of `[[minX,minY],
|
|
|
81
82
|
default value is DIN A3 landscape.
|
|
82
83
|
|
|
83
84
|
If given as paper size (e.g. via
|
|
84
|
-
[thi.ng/units](https://
|
|
85
|
+
[thi.ng/units](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/units/)
|
|
85
86
|
presets), the actual units used to define these dimensions are irrelevant and
|
|
86
87
|
will be automatically converted.
|
|
87
88
|
|
|
88
89
|
[List of paper
|
|
89
|
-
sizes/presets](https://
|
|
90
|
+
sizes/presets](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/units/README.md#constants)
|
|
90
91
|
|
|
91
92
|
### Path planning
|
|
92
93
|
|
|
93
94
|
Path planning is considered a higher level operation than what's addressed by
|
|
94
95
|
this package and is therefore out of scope. The
|
|
95
|
-
[thi.ng/geom-axidraw](https://
|
|
96
|
+
[thi.ng/geom-axidraw](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom-axidraw)
|
|
96
97
|
provides some configurable point & shape sorting functions, but this is an
|
|
97
98
|
interim solution and a full path/route planning facility is currently still
|
|
98
99
|
outstanding and awaiting to be ported from other projects.
|
|
99
100
|
|
|
100
101
|
### thi.ng/geom support
|
|
101
102
|
|
|
102
|
-
The [thi.ng/geom](https://
|
|
103
|
+
The [thi.ng/geom](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom)
|
|
103
104
|
package provides numerous shape types & operations to generate & transform
|
|
104
105
|
geometry. Additionally,
|
|
105
|
-
[thi.ng/geom-axidraw](https://
|
|
106
|
+
[thi.ng/geom-axidraw](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom-axidraw)
|
|
106
107
|
can act as bridge API and provides the polymorphic
|
|
107
108
|
[`asAxiDraw()`](https://docs.thi.ng/umbrella/geom-axidraw/functions/asAxiDraw.html)
|
|
108
109
|
function to convert single shapes or entire shape groups/hierarchies directly
|
|
@@ -114,7 +115,7 @@ more details and examples.
|
|
|
114
115
|
This package does **not** provide any direct conversions from SVG or any other
|
|
115
116
|
geometry format. But again, whilst not containing a full SVG parser (at current
|
|
116
117
|
only single paths can be parsed), the family of
|
|
117
|
-
[thi.ng/geom](https://
|
|
118
|
+
[thi.ng/geom](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom)
|
|
118
119
|
packages provides numerous shape types & operations which can be directly
|
|
119
120
|
utilized to output generated geometry together with this package...
|
|
120
121
|
|
|
@@ -177,7 +178,7 @@ These metrics include:
|
|
|
177
178
|
|
|
178
179
|
**ALPHA** - bleeding edge / work-in-progress
|
|
179
180
|
|
|
180
|
-
[Search or submit any issues for this package](https://
|
|
181
|
+
[Search or submit any issues for this package](https://codeberg.org/thi.ng/umbrella/issues?q=%5Baxidraw%5D)
|
|
181
182
|
|
|
182
183
|
## Installation
|
|
183
184
|
|
|
@@ -201,16 +202,16 @@ Package sizes (brotli'd, pre-treeshake): ESM: 3.27 KB
|
|
|
201
202
|
|
|
202
203
|
## Dependencies
|
|
203
204
|
|
|
204
|
-
- [@thi.ng/api](https://
|
|
205
|
-
- [@thi.ng/checks](https://
|
|
206
|
-
- [@thi.ng/compose](https://
|
|
207
|
-
- [@thi.ng/date](https://
|
|
208
|
-
- [@thi.ng/errors](https://
|
|
209
|
-
- [@thi.ng/logger](https://
|
|
210
|
-
- [@thi.ng/math](https://
|
|
211
|
-
- [@thi.ng/transducers](https://
|
|
212
|
-
- [@thi.ng/units](https://
|
|
213
|
-
- [@thi.ng/vectors](https://
|
|
205
|
+
- [@thi.ng/api](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/api)
|
|
206
|
+
- [@thi.ng/checks](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/checks)
|
|
207
|
+
- [@thi.ng/compose](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/compose)
|
|
208
|
+
- [@thi.ng/date](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/date)
|
|
209
|
+
- [@thi.ng/errors](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/errors)
|
|
210
|
+
- [@thi.ng/logger](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/logger)
|
|
211
|
+
- [@thi.ng/math](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/math)
|
|
212
|
+
- [@thi.ng/transducers](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/transducers)
|
|
213
|
+
- [@thi.ng/units](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/units)
|
|
214
|
+
- [@thi.ng/vectors](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/vectors)
|
|
214
215
|
- [serialport](git://github.com/serialport/node-serialport.git)
|
|
215
216
|
|
|
216
217
|
Note: @thi.ng/api is in _most_ cases a type-only import (not used at runtime)
|
package/api.d.ts
CHANGED
|
@@ -89,7 +89,7 @@ export interface AxiDrawOpts {
|
|
|
89
89
|
* be based on `[0,0]`.
|
|
90
90
|
*
|
|
91
91
|
* List of paper sizes/presets:
|
|
92
|
-
* https://
|
|
92
|
+
* https://docs.thi.ng/umbrella/units/#constants
|
|
93
93
|
*
|
|
94
94
|
* Also see {@link AxiDrawOpts.unitsPerInch}
|
|
95
95
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/axidraw",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.176",
|
|
4
4
|
"description": "Minimal AxiDraw plotter/drawing machine controller for Node.js",
|
|
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/axidraw"
|
|
13
13
|
},
|
|
14
14
|
"homepage": "https://thi.ng/axidraw",
|
|
@@ -40,16 +40,16 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.12.
|
|
44
|
-
"@thi.ng/checks": "^3.8.
|
|
45
|
-
"@thi.ng/compose": "^3.0.
|
|
46
|
-
"@thi.ng/date": "^2.7.
|
|
47
|
-
"@thi.ng/errors": "^2.6.
|
|
48
|
-
"@thi.ng/logger": "^3.3.
|
|
49
|
-
"@thi.ng/math": "^5.15.
|
|
50
|
-
"@thi.ng/transducers": "^9.6.
|
|
51
|
-
"@thi.ng/units": "^1.
|
|
52
|
-
"@thi.ng/vectors": "^8.6.
|
|
43
|
+
"@thi.ng/api": "^8.12.18",
|
|
44
|
+
"@thi.ng/checks": "^3.8.8",
|
|
45
|
+
"@thi.ng/compose": "^3.0.55",
|
|
46
|
+
"@thi.ng/date": "^2.7.83",
|
|
47
|
+
"@thi.ng/errors": "^2.6.7",
|
|
48
|
+
"@thi.ng/logger": "^3.3.1",
|
|
49
|
+
"@thi.ng/math": "^5.15.7",
|
|
50
|
+
"@thi.ng/transducers": "^9.6.31",
|
|
51
|
+
"@thi.ng/units": "^1.2.0",
|
|
52
|
+
"@thi.ng/vectors": "^8.6.26",
|
|
53
53
|
"serialport": "^13.0.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
@@ -119,5 +119,5 @@
|
|
|
119
119
|
"year": 2022,
|
|
120
120
|
"screenshot": "axidraw/axiscape-1280.jpg"
|
|
121
121
|
},
|
|
122
|
-
"gitHead": "
|
|
122
|
+
"gitHead": "8ddf86ea0a1e658ddbf19cc645b29d0c176e29c4\n"
|
|
123
123
|
}
|