@thi.ng/axidraw 1.1.58 → 1.1.59

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-02-22T11:59:16Z
3
+ - **Last updated**: 2024-02-22T23:15:26Z
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.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [1.1.59](https://github.com/thi-ng/umbrella/tree/@thi.ng/axidraw@1.1.59) (2024-02-22)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - update object destructuring in all pkgs & examples ([f36aeb0](https://github.com/thi-ng/umbrella/commit/f36aeb0))
17
+
12
18
  ## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/axidraw@1.1.0) (2023-03-22)
13
19
 
14
20
  #### 🚀 Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/axidraw",
3
- "version": "1.1.58",
3
+ "version": "1.1.59",
4
4
  "description": "Minimal AxiDraw plotter/drawing machine controller for Node.js",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -38,13 +38,13 @@
38
38
  "@thi.ng/api": "^8.9.25",
39
39
  "@thi.ng/checks": "^3.5.0",
40
40
  "@thi.ng/compose": "^2.1.64",
41
- "@thi.ng/date": "^2.6.0",
41
+ "@thi.ng/date": "^2.7.0",
42
42
  "@thi.ng/errors": "^2.4.18",
43
43
  "@thi.ng/logger": "^3.0.2",
44
44
  "@thi.ng/math": "^5.10.2",
45
- "@thi.ng/transducers": "^8.9.5",
45
+ "@thi.ng/transducers": "^8.9.6",
46
46
  "@thi.ng/units": "^0.4.32",
47
- "@thi.ng/vectors": "^7.10.10",
47
+ "@thi.ng/vectors": "^7.10.11",
48
48
  "serialport": "^12.0.0"
49
49
  },
50
50
  "devDependencies": {
@@ -115,5 +115,5 @@
115
115
  "status": "alpha",
116
116
  "year": 2022
117
117
  },
118
- "gitHead": "4513a1c703bdbf0f0867f03e547e47692e415fac\n"
118
+ "gitHead": "16f2b92b5410bd35dcde6c2971c8e62783ebc472\n"
119
119
  }
package/polyline.d.ts CHANGED
@@ -12,5 +12,5 @@ import type { DrawCommand, PolylineOpts } from "./api.js";
12
12
  * @param pts
13
13
  * @param opts
14
14
  */
15
- export declare function polyline(pts: ReadonlyVec[], opts: Partial<PolylineOpts>): IterableIterator<DrawCommand>;
15
+ export declare function polyline(pts: ReadonlyVec[], opts?: Partial<PolylineOpts>): IterableIterator<DrawCommand>;
16
16
  //# sourceMappingURL=polyline.d.ts.map
package/polyline.js CHANGED
@@ -1,12 +1,8 @@
1
1
  import { DOWN, MOVE, PEN, UP } from "./commands.js";
2
- function* polyline(pts, opts) {
2
+ function* polyline(pts, opts = {}) {
3
3
  if (!pts.length)
4
4
  return;
5
- const { speed, delayDown, delayUp, down, onlyGeo } = {
6
- speed: 1,
7
- onlyGeo: false,
8
- ...opts
9
- };
5
+ const { speed = 1, onlyGeo = true, delayDown, delayUp, down } = opts;
10
6
  if (onlyGeo) {
11
7
  for (let p of pts)
12
8
  yield MOVE(p, speed);