@thi.ng/axidraw 1.1.57 → 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 +7 -1
- package/README.md +1 -1
- package/package.json +12 -12
- package/polyline.d.ts +1 -1
- package/polyline.js +2 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2024-02-
|
|
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/README.md
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
[](https://mastodon.thi.ng/@toxi)
|
|
19
19
|
|
|
20
20
|
> [!NOTE]
|
|
21
|
-
> This is one of
|
|
21
|
+
> This is one of 190 standalone projects, maintained as part
|
|
22
22
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
23
23
|
> and anti-framework.
|
|
24
24
|
>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/axidraw",
|
|
3
|
-
"version": "1.1.
|
|
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",
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
"test": "bun test"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@thi.ng/api": "^8.9.
|
|
39
|
-
"@thi.ng/checks": "^3.
|
|
40
|
-
"@thi.ng/compose": "^2.1.
|
|
41
|
-
"@thi.ng/date": "^2.
|
|
42
|
-
"@thi.ng/errors": "^2.4.
|
|
43
|
-
"@thi.ng/logger": "^3.0.
|
|
44
|
-
"@thi.ng/math": "^5.10.
|
|
45
|
-
"@thi.ng/transducers": "^8.9.
|
|
46
|
-
"@thi.ng/units": "^0.4.
|
|
47
|
-
"@thi.ng/vectors": "^7.10.
|
|
38
|
+
"@thi.ng/api": "^8.9.25",
|
|
39
|
+
"@thi.ng/checks": "^3.5.0",
|
|
40
|
+
"@thi.ng/compose": "^2.1.64",
|
|
41
|
+
"@thi.ng/date": "^2.7.0",
|
|
42
|
+
"@thi.ng/errors": "^2.4.18",
|
|
43
|
+
"@thi.ng/logger": "^3.0.2",
|
|
44
|
+
"@thi.ng/math": "^5.10.2",
|
|
45
|
+
"@thi.ng/transducers": "^8.9.6",
|
|
46
|
+
"@thi.ng/units": "^0.4.32",
|
|
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": "
|
|
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
|
|
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
|
|
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);
|