@thi.ng/axidraw 1.1.64 → 1.1.66
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/axidraw.d.ts +1 -1
- package/axidraw.js +1 -1
- package/commands.d.ts +4 -2
- package/dip.d.ts +9 -7
- package/package.json +16 -16
- package/palettes.d.ts +2 -3
- package/registration.d.ts +1 -1
package/CHANGELOG.md
CHANGED
package/axidraw.d.ts
CHANGED
package/axidraw.js
CHANGED
package/commands.d.ts
CHANGED
|
@@ -62,10 +62,12 @@ export declare const COMMENT: (msg: string) => CommentCommand;
|
|
|
62
62
|
* prefix and {@link STOP} as suffix. I.e. it creates a "complete" drawing...
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
|
-
* ```ts
|
|
65
|
+
* ```ts tangle:../export/complete.ts
|
|
66
66
|
* import { complete, MOVE } from "@thi.ng/axidraw";
|
|
67
67
|
*
|
|
68
|
-
*
|
|
68
|
+
* console.log(
|
|
69
|
+
* [...complete([ MOVE([0, 0]) ])]
|
|
70
|
+
* );
|
|
69
71
|
* // [ ["start"], ["M", [0, 0]], ["stop"] ]
|
|
70
72
|
* ```
|
|
71
73
|
*
|
package/dip.d.ts
CHANGED
|
@@ -34,11 +34,11 @@ export interface DipOpts {
|
|
|
34
34
|
* paint reservoir to refill.
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
|
-
* ```ts
|
|
37
|
+
* ```ts tangle:../export/dip.ts
|
|
38
38
|
* import { dip, MOVE } from "@thi.ng/axidraw";
|
|
39
39
|
*
|
|
40
40
|
* // simple 2x up/down
|
|
41
|
-
* [...dip(2)]
|
|
41
|
+
* console.log([...dip(2)]);
|
|
42
42
|
* // [
|
|
43
43
|
* // [ "d", undefined ],
|
|
44
44
|
* // [ "u", undefined ],
|
|
@@ -47,11 +47,13 @@ export interface DipOpts {
|
|
|
47
47
|
* // ]
|
|
48
48
|
*
|
|
49
49
|
* // 3x dipping with custom up/down delays, each time at a random position
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
50
|
+
* console.log(
|
|
51
|
+
* [...dip(3, {
|
|
52
|
+
* down: 300,
|
|
53
|
+
* up: 400,
|
|
54
|
+
* commands: () => [ MOVE([Math.random()* 5, Math.random()* 5]) ]
|
|
55
|
+
* })]
|
|
56
|
+
* );
|
|
55
57
|
* // [
|
|
56
58
|
* // [ "d", 300 ],
|
|
57
59
|
* // [ "M", [ 3.996, 1.707 ], 1 ],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/axidraw",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.66",
|
|
4
4
|
"description": "Minimal AxiDraw plotter/drawing machine controller for Node.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -36,24 +36,24 @@
|
|
|
36
36
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@thi.ng/api": "^8.9.
|
|
40
|
-
"@thi.ng/checks": "^3.5.
|
|
41
|
-
"@thi.ng/compose": "^2.1.
|
|
42
|
-
"@thi.ng/date": "^2.7.
|
|
43
|
-
"@thi.ng/errors": "^2.
|
|
44
|
-
"@thi.ng/logger": "^3.0.
|
|
45
|
-
"@thi.ng/math": "^5.10.
|
|
46
|
-
"@thi.ng/transducers": "^8.9.
|
|
47
|
-
"@thi.ng/units": "^0.4.
|
|
48
|
-
"@thi.ng/vectors": "^7.10.
|
|
39
|
+
"@thi.ng/api": "^8.9.30",
|
|
40
|
+
"@thi.ng/checks": "^3.5.3",
|
|
41
|
+
"@thi.ng/compose": "^2.1.69",
|
|
42
|
+
"@thi.ng/date": "^2.7.7",
|
|
43
|
+
"@thi.ng/errors": "^2.5.0",
|
|
44
|
+
"@thi.ng/logger": "^3.0.6",
|
|
45
|
+
"@thi.ng/math": "^5.10.7",
|
|
46
|
+
"@thi.ng/transducers": "^8.9.12",
|
|
47
|
+
"@thi.ng/units": "^0.4.38",
|
|
48
|
+
"@thi.ng/vectors": "^7.10.18",
|
|
49
49
|
"serialport": "^12.0.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@microsoft/api-extractor": "^7.
|
|
53
|
-
"esbuild": "^0.20.
|
|
52
|
+
"@microsoft/api-extractor": "^7.42.3",
|
|
53
|
+
"esbuild": "^0.20.1",
|
|
54
54
|
"rimraf": "^5.0.5",
|
|
55
|
-
"typedoc": "^0.25.
|
|
56
|
-
"typescript": "^5.
|
|
55
|
+
"typedoc": "^0.25.12",
|
|
56
|
+
"typescript": "^5.4.2"
|
|
57
57
|
},
|
|
58
58
|
"keywords": [
|
|
59
59
|
"2d",
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
"status": "alpha",
|
|
117
117
|
"year": 2022
|
|
118
118
|
},
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "7f3fcbd6c0462b0ce45afa141fe163d1f297fd51\n"
|
|
120
120
|
}
|
package/palettes.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ export interface RadialPaletteOpts extends BasePaletteOpts {
|
|
|
69
69
|
* - {@link dip} (used internally for dipping sequence)
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
|
-
* ```ts
|
|
72
|
+
* ```ts tangle:../export/linear-palette.ts
|
|
73
73
|
* import { AxiDraw, linearPalette } from "@thi.ng/axidraw";
|
|
74
74
|
* import { points } from "@thi.ng/geom";
|
|
75
75
|
* import { asAxiDraw } from "@thi.ng/geom-axidraw";
|
|
@@ -92,7 +92,7 @@ export interface RadialPaletteOpts extends BasePaletteOpts {
|
|
|
92
92
|
* });
|
|
93
93
|
*
|
|
94
94
|
* // investigate command sequence for requesting slot #1
|
|
95
|
-
* palette(1)
|
|
95
|
+
* console.log(palette(1));
|
|
96
96
|
* // [
|
|
97
97
|
* // [ "M", [ 0.8949, 41.6697 ], 1 ],
|
|
98
98
|
* // [ "d", undefined, undefined ],
|
|
@@ -120,7 +120,6 @@ export interface RadialPaletteOpts extends BasePaletteOpts {
|
|
|
120
120
|
*
|
|
121
121
|
* // AxiDraw setup
|
|
122
122
|
* const axi = new AxiDraw();
|
|
123
|
-
* ...
|
|
124
123
|
*
|
|
125
124
|
* // convert geometry into axidraw commands and send to plotter
|
|
126
125
|
* axi.draw(asAxiDraw(cloud));
|
package/registration.d.ts
CHANGED