@thi.ng/axidraw 1.1.152 → 1.1.156
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/package.json +121 -121
- package/CHANGELOG.md +0 -168
package/package.json
CHANGED
|
@@ -1,122 +1,122 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
2
|
+
"name": "@thi.ng/axidraw",
|
|
3
|
+
"version": "1.1.156",
|
|
4
|
+
"description": "Minimal AxiDraw plotter/drawing machine controller for Node.js",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "./index.js",
|
|
7
|
+
"typings": "./index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/thi-ng/umbrella.git"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://thi.ng/axidraw",
|
|
14
|
+
"funding": [
|
|
15
|
+
{
|
|
16
|
+
"type": "github",
|
|
17
|
+
"url": "https://github.com/sponsors/postspectacular"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "patreon",
|
|
21
|
+
"url": "https://patreon.com/thing_umbrella"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "liberapay",
|
|
25
|
+
"url": "https://liberapay.com/thi.ng"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
29
|
+
"license": "Apache-2.0",
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "yarn build:esbuild && yarn build:decl",
|
|
32
|
+
"build:decl": "tsc --declaration --emitDeclarationOnly",
|
|
33
|
+
"build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
|
|
34
|
+
"clean": "bun ../../tools/src/clean-package.ts",
|
|
35
|
+
"doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
|
|
36
|
+
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
37
|
+
"pub": "npm publish --access public",
|
|
38
|
+
"test": "bun test",
|
|
39
|
+
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@thi.ng/api": "^8.12.6",
|
|
43
|
+
"@thi.ng/checks": "^3.7.22",
|
|
44
|
+
"@thi.ng/compose": "^3.0.43",
|
|
45
|
+
"@thi.ng/date": "^2.7.68",
|
|
46
|
+
"@thi.ng/errors": "^2.5.46",
|
|
47
|
+
"@thi.ng/logger": "^3.2.5",
|
|
48
|
+
"@thi.ng/math": "^5.13.3",
|
|
49
|
+
"@thi.ng/transducers": "^9.6.14",
|
|
50
|
+
"@thi.ng/units": "^1.0.30",
|
|
51
|
+
"@thi.ng/vectors": "^8.6.10",
|
|
52
|
+
"serialport": "^13.0.0"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"esbuild": "^0.25.11",
|
|
56
|
+
"typedoc": "^0.28.14",
|
|
57
|
+
"typescript": "^5.9.3"
|
|
58
|
+
},
|
|
59
|
+
"keywords": [
|
|
60
|
+
"2d",
|
|
61
|
+
"async",
|
|
62
|
+
"axidraw",
|
|
63
|
+
"driver",
|
|
64
|
+
"geometry",
|
|
65
|
+
"io",
|
|
66
|
+
"logger",
|
|
67
|
+
"no-browser",
|
|
68
|
+
"nodejs",
|
|
69
|
+
"penplotter",
|
|
70
|
+
"polyline",
|
|
71
|
+
"serialport",
|
|
72
|
+
"typescript"
|
|
73
|
+
],
|
|
74
|
+
"publishConfig": {
|
|
75
|
+
"access": "public"
|
|
76
|
+
},
|
|
77
|
+
"engines": {
|
|
78
|
+
"node": ">=18"
|
|
79
|
+
},
|
|
80
|
+
"files": [
|
|
81
|
+
"./*.js",
|
|
82
|
+
"./*.d.ts"
|
|
83
|
+
],
|
|
84
|
+
"exports": {
|
|
85
|
+
".": {
|
|
86
|
+
"default": "./index.js"
|
|
87
|
+
},
|
|
88
|
+
"./api": {
|
|
89
|
+
"default": "./api.js"
|
|
90
|
+
},
|
|
91
|
+
"./axidraw": {
|
|
92
|
+
"default": "./axidraw.js"
|
|
93
|
+
},
|
|
94
|
+
"./commands": {
|
|
95
|
+
"default": "./commands.js"
|
|
96
|
+
},
|
|
97
|
+
"./control": {
|
|
98
|
+
"default": "./control.js"
|
|
99
|
+
},
|
|
100
|
+
"./dip": {
|
|
101
|
+
"default": "./dip.js"
|
|
102
|
+
},
|
|
103
|
+
"./palettes": {
|
|
104
|
+
"default": "./palettes.js"
|
|
105
|
+
},
|
|
106
|
+
"./polyline": {
|
|
107
|
+
"default": "./polyline.js"
|
|
108
|
+
},
|
|
109
|
+
"./registration": {
|
|
110
|
+
"default": "./registration.js"
|
|
111
|
+
},
|
|
112
|
+
"./serial": {
|
|
113
|
+
"default": "./serial.js"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"thi.ng": {
|
|
117
|
+
"status": "alpha",
|
|
118
|
+
"year": 2022,
|
|
119
|
+
"screenshot": "axidraw/axiscape-1280.jpg"
|
|
120
|
+
},
|
|
121
|
+
"gitHead": "136a5e5ef0b69e82329db00d806c3c4e8f1aa063\n"
|
|
122
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
- **Last updated**: 2025-09-01T16:38:35Z
|
|
4
|
-
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
|
-
|
|
6
|
-
All notable changes to this project will be documented in this file.
|
|
7
|
-
Only versions published since **2022-01-01** are listed here.
|
|
8
|
-
Please consult the Git history for older version information.
|
|
9
|
-
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
10
|
-
|
|
11
|
-
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
12
|
-
and/or version bumps of transitive dependencies.
|
|
13
|
-
|
|
14
|
-
### [1.1.123](https://github.com/thi-ng/umbrella/tree/@thi.ng/axidraw@1.1.123) (2025-04-16)
|
|
15
|
-
|
|
16
|
-
#### ♻️ Refactoring
|
|
17
|
-
|
|
18
|
-
- minor internal optimizations (vector ops) ([adfebba](https://github.com/thi-ng/umbrella/commit/adfebba))
|
|
19
|
-
|
|
20
|
-
### [1.1.59](https://github.com/thi-ng/umbrella/tree/@thi.ng/axidraw@1.1.59) (2024-02-22)
|
|
21
|
-
|
|
22
|
-
#### ♻️ Refactoring
|
|
23
|
-
|
|
24
|
-
- update object destructuring in all pkgs & examples ([f36aeb0](https://github.com/thi-ng/umbrella/commit/f36aeb0))
|
|
25
|
-
|
|
26
|
-
## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/axidraw@1.1.0) (2023-03-22)
|
|
27
|
-
|
|
28
|
-
#### 🚀 Features
|
|
29
|
-
|
|
30
|
-
- add save/restore commands ([317f8e0](https://github.com/thi-ng/umbrella/commit/317f8e0))
|
|
31
|
-
- add/update command types
|
|
32
|
-
- add SAVE/RESTORE to store/restore pen levels
|
|
33
|
-
- update AxiDraw.draw() to restore state after one-off pen config
|
|
34
|
-
- update DipOpts & dip() ([52d8924](https://github.com/thi-ng/umbrella/commit/52d8924))
|
|
35
|
-
- rename `down` => `downDelay`, `up` => `upDelay`
|
|
36
|
-
- add `down`/`up` level opts
|
|
37
|
-
- update dip() impl to store/restore pen state if using custom
|
|
38
|
-
up/down levels for dipping
|
|
39
|
-
- add palette command seq gens ([0e453c1](https://github.com/thi-ng/umbrella/commit/0e453c1))
|
|
40
|
-
- add linearPalette() & radialPalette() and config options
|
|
41
|
-
- update pkg export maps
|
|
42
|
-
- add global clipping bounds option ([a99a58e](https://github.com/thi-ng/umbrella/commit/a99a58e))
|
|
43
|
-
- add AxiDrawOpts.clip
|
|
44
|
-
- add support for paper sizes, home offset ([c44510f](https://github.com/thi-ng/umbrella/commit/c44510f))
|
|
45
|
-
- update AxiDrawOpts.bounds to accept paper sizes ([@thi.ng/units](https://github.com/thi-ng/umbrella/tree/main/packages/units) quantities)
|
|
46
|
-
- add AxiDrawOpts.home
|
|
47
|
-
- update AxiDraw ctor & move/sendMove methods
|
|
48
|
-
- add AxiDraw.setHome()
|
|
49
|
-
- update pkg deps
|
|
50
|
-
|
|
51
|
-
#### ♻️ Refactoring
|
|
52
|
-
|
|
53
|
-
- remove obsolete clamping ([50978ba](https://github.com/thi-ng/umbrella/commit/50978ba))
|
|
54
|
-
- update linearPalette()
|
|
55
|
-
- update bounds handling/clamping ([7850ed6](https://github.com/thi-ng/umbrella/commit/7850ed6))
|
|
56
|
-
- precalc scale factor & bounds in ctor
|
|
57
|
-
|
|
58
|
-
# [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/axidraw@1.0.0) (2023-03-19)
|
|
59
|
-
|
|
60
|
-
#### 🛑 Breaking changes
|
|
61
|
-
|
|
62
|
-
- add/update command presets ([610f873](https://github.com/thi-ng/umbrella/commit/610f873))
|
|
63
|
-
- BREAKING CHANGE: update DrawCommands and cmd presets
|
|
64
|
-
- update MoveXYCommand to use `"M"`
|
|
65
|
-
- add MoveRelCommand (using `"m"`)
|
|
66
|
-
- add/update AxiDraw.moveTo()/moveRelative()
|
|
67
|
-
- migrate command presets to commands.ts
|
|
68
|
-
- refactor parametric command type presets as functions:
|
|
69
|
-
- PEN(), UP(), DOWN(), MOVE(), MOVE_REL(), WAIT(), COMMENT()
|
|
70
|
-
- add DIP() command sequence gen
|
|
71
|
-
|
|
72
|
-
#### 🚀 Features
|
|
73
|
-
|
|
74
|
-
- add command fns, add COMMENT cmd ([0d64b55](https://github.com/thi-ng/umbrella/commit/0d64b55))
|
|
75
|
-
- add MOVE(), WAIT(), COMMENT()
|
|
76
|
-
- add CommentCommand
|
|
77
|
-
- update AxiDraw.draw() to log comments
|
|
78
|
-
- add disconnect() ([af93177](https://github.com/thi-ng/umbrella/commit/af93177))
|
|
79
|
-
- add disconnect() for ISerial & AxiDraw
|
|
80
|
-
- update MockSerial impl
|
|
81
|
-
- update commands, docs & pkg exports ([1324cb8](https://github.com/thi-ng/umbrella/commit/1324cb8))
|
|
82
|
-
- update dip(), update imports. restructure /src ([b108760](https://github.com/thi-ng/umbrella/commit/b108760))
|
|
83
|
-
- add DipOpts, extend dip() functionality
|
|
84
|
-
- move dip() to own file dip.ts
|
|
85
|
-
- move complete() to commands.ts
|
|
86
|
-
- move registrationMark() to own file registration.ts
|
|
87
|
-
- update all imports
|
|
88
|
-
- update pkg exports map
|
|
89
|
-
|
|
90
|
-
## [0.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/axidraw@0.5.0) (2023-02-05)
|
|
91
|
-
|
|
92
|
-
#### 🚀 Features
|
|
93
|
-
|
|
94
|
-
- add speedUp config, rename speed => speedDown ([197d610](https://github.com/thi-ng/umbrella/commit/197d610))
|
|
95
|
-
|
|
96
|
-
#### 🩹 Bug fixes
|
|
97
|
-
|
|
98
|
-
- add [@thi.ng/date](https://github.com/thi-ng/umbrella/tree/main/packages/date) dependency ([bd35a9e](https://github.com/thi-ng/umbrella/commit/bd35a9e))
|
|
99
|
-
required by axidraw.ts
|
|
100
|
-
|
|
101
|
-
## [0.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/axidraw@0.4.0) (2023-01-10)
|
|
102
|
-
|
|
103
|
-
#### 🚀 Features
|
|
104
|
-
|
|
105
|
-
- also send "reset" cmd in .reset() ([30fe365](https://github.com/thi-ng/umbrella/commit/30fe365))
|
|
106
|
-
|
|
107
|
-
## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/axidraw@0.3.0) (2022-12-29)
|
|
108
|
-
|
|
109
|
-
#### 🚀 Features
|
|
110
|
-
|
|
111
|
-
- add draw metrics ([0ff015c](https://github.com/thi-ng/umbrella/commit/0ff015c))
|
|
112
|
-
- add Metrics interface
|
|
113
|
-
- update AxiDraw.draw() to record metrics
|
|
114
|
-
- update .moveTo() to return delay & distance
|
|
115
|
-
- add serial port abstraction & impls ([c774da1](https://github.com/thi-ng/umbrella/commit/c774da1))
|
|
116
|
-
- add SerialConnection adapter
|
|
117
|
-
- add `SERIAL_PORT` default impl (actual serial port)
|
|
118
|
-
- add `MOCK_SERIAL` & MockSerial impl for testing
|
|
119
|
-
- update AxiDrawOpts & AxiDraw to use adapter only
|
|
120
|
-
- add registrationMark() util, fix imports ([e05e99d](https://github.com/thi-ng/umbrella/commit/e05e99d))
|
|
121
|
-
- add Metrics.penCommands, fix nested metrics handling ([a7149cd](https://github.com/thi-ng/umbrella/commit/a7149cd))
|
|
122
|
-
- add counter for pen up/down commands
|
|
123
|
-
- add start/stop cmd metrics to current tally
|
|
124
|
-
|
|
125
|
-
#### ♻️ Refactoring
|
|
126
|
-
|
|
127
|
-
- update "no-browser" pkg handling ([0e84f1b](https://github.com/thi-ng/umbrella/commit/0e84f1b))
|
|
128
|
-
|
|
129
|
-
## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/axidraw@0.2.0) (2022-12-10)
|
|
130
|
-
|
|
131
|
-
#### 🚀 Features
|
|
132
|
-
|
|
133
|
-
- major updates/additions ([eb41c28](https://github.com/thi-ng/umbrella/commit/eb41c28))
|
|
134
|
-
- extract polyline() as standalone fn
|
|
135
|
-
- add complete() syntax sugar
|
|
136
|
-
- update UP/DOWN commands to accept opt. pen level/position
|
|
137
|
-
- add RESET command
|
|
138
|
-
- extract various draw commands into separate methods, simplify draw()
|
|
139
|
-
- update draw() w/ FSM to pause/resume/cancel processing
|
|
140
|
-
- add AxiDrawState FSM enum
|
|
141
|
-
- add AxiDrawControl class, use as default controller
|
|
142
|
-
- update AxiDrawOpts w/ new options
|
|
143
|
-
- update connect() to throw error if unsuccessful
|
|
144
|
-
- add SIGINT signal handler to handle Ctrl+C
|
|
145
|
-
- update .draw() to auto-wrap command seq ([60aaad2](https://github.com/thi-ng/umbrella/commit/60aaad2))
|
|
146
|
-
- add PolylineOpts, update polyline() ([c8a271f](https://github.com/thi-ng/umbrella/commit/c8a271f))
|
|
147
|
-
|
|
148
|
-
#### 🩹 Bug fixes
|
|
149
|
-
|
|
150
|
-
- fix polyline(), only apply custom speed for drawing ([c43b6f5](https://github.com/thi-ng/umbrella/commit/c43b6f5))
|
|
151
|
-
- update draw calls to disable cmd wrapping ([4cd5e53](https://github.com/thi-ng/umbrella/commit/4cd5e53))
|
|
152
|
-
- fix waiting for start/stop/home commands ([42bf4eb](https://github.com/thi-ng/umbrella/commit/42bf4eb))
|
|
153
|
-
|
|
154
|
-
#### ⏱ Performance improvements
|
|
155
|
-
|
|
156
|
-
- remove obsolete UP command (and delay) in polyline() ([f71c64b](https://github.com/thi-ng/umbrella/commit/f71c64b))
|
|
157
|
-
|
|
158
|
-
## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/axidraw@0.1.0) (2022-12-06)
|
|
159
|
-
|
|
160
|
-
#### 🚀 Features
|
|
161
|
-
|
|
162
|
-
- import as new pkg ([cc43e84](https://github.com/thi-ng/umbrella/commit/cc43e84))
|
|
163
|
-
- arbitrary unit support, measure draw time ([32e3212](https://github.com/thi-ng/umbrella/commit/32e3212))
|
|
164
|
-
- add AxiDrawOpts.unitsPerInch to support any worldspace units
|
|
165
|
-
- remove paperSize opt
|
|
166
|
-
- add command constants for better mem use
|
|
167
|
-
- update AxiDraw.draw() to measure & return time taken
|
|
168
|
-
- add/update doc strings
|