@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-03-07T20:40:47Z
3
+ - **Last updated**: 2024-03-13T14:04:31Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/axidraw.d.ts CHANGED
@@ -52,7 +52,7 @@ export declare class AxiDraw implements IReset {
52
52
  * Also see {@link complete}.
53
53
  *
54
54
  * @example
55
- * ```ts
55
+ * ```ts tangle:../export/draw.ts
56
56
  * import { AxiDraw, polyline, START, STOP } from "@thi.ng/axidraw";
57
57
  *
58
58
  * const axi = new AxiDraw();
package/axidraw.js CHANGED
@@ -135,7 +135,7 @@ class AxiDraw {
135
135
  * Also see {@link complete}.
136
136
  *
137
137
  * @example
138
- * ```ts
138
+ * ```ts tangle:../export/draw.ts
139
139
  * import { AxiDraw, polyline, START, STOP } from "@thi.ng/axidraw";
140
140
  *
141
141
  * const axi = new AxiDraw();
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
- * [...complete([ MOVE([0, 0]) ])]
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
- * [...dip(3, {
51
- * down: 300,
52
- * up: 400,
53
- * commands: () => [ MOVE([Math.random()* 5, Math.random()* 5]) ]
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.64",
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.28",
40
- "@thi.ng/checks": "^3.5.2",
41
- "@thi.ng/compose": "^2.1.67",
42
- "@thi.ng/date": "^2.7.5",
43
- "@thi.ng/errors": "^2.4.20",
44
- "@thi.ng/logger": "^3.0.5",
45
- "@thi.ng/math": "^5.10.5",
46
- "@thi.ng/transducers": "^8.9.10",
47
- "@thi.ng/units": "^0.4.36",
48
- "@thi.ng/vectors": "^7.10.16",
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.40.1",
53
- "esbuild": "^0.20.0",
52
+ "@microsoft/api-extractor": "^7.42.3",
53
+ "esbuild": "^0.20.1",
54
54
  "rimraf": "^5.0.5",
55
- "typedoc": "^0.25.7",
56
- "typescript": "^5.3.3"
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": "a421058a65ba76608d94129ac29451bfedaf201c\n"
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
@@ -5,7 +5,7 @@ import type { DrawCommand } from "./api.js";
5
5
  * (crosshair + circle) centered around `pos`.
6
6
  *
7
7
  * @example
8
- * ```ts
8
+ * ```ts tangle:../export/registration.ts
9
9
  * import { AxiDraw, registrationMark } from "@thi.ng/axidraw";
10
10
  *
11
11
  * const axi = new AxiDraw();