@thi.ng/axidraw 1.1.113 → 1.1.115
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 +1 -1
- package/api.d.ts +3 -3
- package/axidraw.d.ts +3 -3
- package/axidraw.js +3 -3
- package/package.json +14 -14
- package/palettes.d.ts +2 -0
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 202 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
|
>
|
package/api.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export type StartCommand = ["start"];
|
|
|
8
8
|
export type StopCommand = ["stop"];
|
|
9
9
|
/** Return plotter to initial XY position */
|
|
10
10
|
export type HomeCommand = ["home"];
|
|
11
|
-
/** Reset curr position as home (0,0) */
|
|
11
|
+
/** Reset curr position as home `(0,0)` */
|
|
12
12
|
export type ResetCommand = ["reset"];
|
|
13
13
|
/** Turn XY motors on/off */
|
|
14
14
|
export type MotorCommand = ["on" | "off"];
|
|
@@ -86,7 +86,7 @@ export interface AxiDrawOpts {
|
|
|
86
86
|
* thi.ng/units `quantity()`), the units used to define these dimensions are
|
|
87
87
|
* irrelevant (and independent of {@link AxiDrawOpts.unitsPerInch}!) and
|
|
88
88
|
* will be automatically converted. Also, the resulting bounds will always
|
|
89
|
-
* be based on [0,
|
|
89
|
+
* be based on `[0,0]`.
|
|
90
90
|
*
|
|
91
91
|
* List of paper sizes/presets:
|
|
92
92
|
* https://github.com/thi-ng/umbrella/blob/develop/packages/units/README.md#constants
|
|
@@ -176,7 +176,7 @@ export interface AxiDrawOpts {
|
|
|
176
176
|
* means the available horizontal drawing space will be reduced by the same
|
|
177
177
|
* amount...
|
|
178
178
|
*
|
|
179
|
-
* @defaultValue [0,
|
|
179
|
+
* @defaultValue `[0,0]`
|
|
180
180
|
*/
|
|
181
181
|
home: ReadonlyVec;
|
|
182
182
|
/**
|
package/axidraw.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export declare class AxiDraw implements IReset {
|
|
|
47
47
|
* {@link AxiDrawOpts.control} for details).
|
|
48
48
|
*
|
|
49
49
|
* Reference:
|
|
50
|
-
*
|
|
50
|
+
* http://evil-mad.github.io/EggBot/ebb.html
|
|
51
51
|
*
|
|
52
52
|
* Also see {@link complete}.
|
|
53
53
|
*
|
|
@@ -106,7 +106,7 @@ export declare class AxiDraw implements IReset {
|
|
|
106
106
|
*/
|
|
107
107
|
moveRelative(delta: ReadonlyVec, tempo?: number): number[];
|
|
108
108
|
/**
|
|
109
|
-
* Syntax sugar for {@link AxiDraw.moveTo}
|
|
109
|
+
* Syntax sugar for {@link AxiDraw.moveTo} position `[0,0]`.
|
|
110
110
|
*/
|
|
111
111
|
home(): number[];
|
|
112
112
|
setHome(pos: ReadonlyVec): void;
|
|
@@ -118,7 +118,7 @@ export declare class AxiDraw implements IReset {
|
|
|
118
118
|
*
|
|
119
119
|
* @remarks
|
|
120
120
|
* Reference:
|
|
121
|
-
*
|
|
121
|
+
* https://github.com/evil-mad/AxiDraw-Processing/blob/80d81a8c897b8a1872b0555af52a8d1b5b13cec4/AxiGen1/AxiGen1.pde#L213
|
|
122
122
|
*
|
|
123
123
|
* @param id
|
|
124
124
|
* @param x
|
package/axidraw.js
CHANGED
|
@@ -130,7 +130,7 @@ class AxiDraw {
|
|
|
130
130
|
* {@link AxiDrawOpts.control} for details).
|
|
131
131
|
*
|
|
132
132
|
* Reference:
|
|
133
|
-
*
|
|
133
|
+
* http://evil-mad.github.io/EggBot/ebb.html
|
|
134
134
|
*
|
|
135
135
|
* Also see {@link complete}.
|
|
136
136
|
*
|
|
@@ -359,7 +359,7 @@ class AxiDraw {
|
|
|
359
359
|
return this.sendMove(tempo);
|
|
360
360
|
}
|
|
361
361
|
/**
|
|
362
|
-
* Syntax sugar for {@link AxiDraw.moveTo}
|
|
362
|
+
* Syntax sugar for {@link AxiDraw.moveTo} position `[0,0]`.
|
|
363
363
|
*/
|
|
364
364
|
home() {
|
|
365
365
|
return this.moveTo(ZERO2);
|
|
@@ -394,7 +394,7 @@ class AxiDraw {
|
|
|
394
394
|
*
|
|
395
395
|
* @remarks
|
|
396
396
|
* Reference:
|
|
397
|
-
*
|
|
397
|
+
* https://github.com/evil-mad/AxiDraw-Processing/blob/80d81a8c897b8a1872b0555af52a8d1b5b13cec4/AxiGen1/AxiGen1.pde#L213
|
|
398
398
|
*
|
|
399
399
|
* @param id
|
|
400
400
|
* @param x
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/axidraw",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.115",
|
|
4
4
|
"description": "Minimal AxiDraw plotter/drawing machine controller for Node.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -39,21 +39,21 @@
|
|
|
39
39
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@thi.ng/api": "^8.11.
|
|
43
|
-
"@thi.ng/checks": "^3.6.
|
|
44
|
-
"@thi.ng/compose": "^3.0.
|
|
45
|
-
"@thi.ng/date": "^2.7.
|
|
46
|
-
"@thi.ng/errors": "^2.5.
|
|
47
|
-
"@thi.ng/logger": "^3.1.
|
|
48
|
-
"@thi.ng/math": "^5.11.
|
|
49
|
-
"@thi.ng/transducers": "^9.2.
|
|
50
|
-
"@thi.ng/units": "^1.0.
|
|
51
|
-
"@thi.ng/vectors": "^7.12.
|
|
42
|
+
"@thi.ng/api": "^8.11.21",
|
|
43
|
+
"@thi.ng/checks": "^3.6.24",
|
|
44
|
+
"@thi.ng/compose": "^3.0.24",
|
|
45
|
+
"@thi.ng/date": "^2.7.44",
|
|
46
|
+
"@thi.ng/errors": "^2.5.27",
|
|
47
|
+
"@thi.ng/logger": "^3.1.2",
|
|
48
|
+
"@thi.ng/math": "^5.11.21",
|
|
49
|
+
"@thi.ng/transducers": "^9.2.19",
|
|
50
|
+
"@thi.ng/units": "^1.0.7",
|
|
51
|
+
"@thi.ng/vectors": "^7.12.21",
|
|
52
52
|
"serialport": "^13.0.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"esbuild": "^0.
|
|
56
|
-
"typedoc": "^0.27.
|
|
55
|
+
"esbuild": "^0.25.0",
|
|
56
|
+
"typedoc": "^0.27.7",
|
|
57
57
|
"typescript": "^5.7.3"
|
|
58
58
|
},
|
|
59
59
|
"keywords": [
|
|
@@ -118,5 +118,5 @@
|
|
|
118
118
|
"year": 2022,
|
|
119
119
|
"screenshot": "axidraw/axiscape-1280.jpg"
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "bee617702ac61d093465b967f8f973dc566faa6b\n"
|
|
122
122
|
}
|
package/palettes.d.ts
CHANGED
|
@@ -64,6 +64,7 @@ export interface RadialPaletteOpts extends BasePaletteOpts {
|
|
|
64
64
|
* of https://thi.ng/geom-axidraw.
|
|
65
65
|
*
|
|
66
66
|
* Also see:
|
|
67
|
+
*
|
|
67
68
|
* - {@link LinearPaletteOpts} for options
|
|
68
69
|
* - {@link radialPalette} for circular/elliptical palette layouts
|
|
69
70
|
* - {@link dip} (used internally for dipping sequence)
|
|
@@ -135,6 +136,7 @@ export declare const linearPalette: (opts: LinearPaletteOpts) => (id: number) =>
|
|
|
135
136
|
*
|
|
136
137
|
* @remarks
|
|
137
138
|
* Also see:
|
|
139
|
+
*
|
|
138
140
|
* - {@link RadialPaletteOpts} for options
|
|
139
141
|
* - {@link linearPalette} for more details & code example
|
|
140
142
|
* - {@link dip} (used internally for dipping sequence)
|