@thi.ng/geom-axidraw 1.0.60 → 1.0.62
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/README.md +1 -1
- package/as-axidraw.js +3 -3
- package/as-geometry.js +1 -1
- package/package.json +13 -13
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 211 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/as-axidraw.js
CHANGED
|
@@ -62,7 +62,7 @@ function* __group($, opts) {
|
|
|
62
62
|
const children = skip ? [...takeNth(skip + 1, $.children)] : $.children;
|
|
63
63
|
function* emitChunk(chunk) {
|
|
64
64
|
const iter = sort ? sort(chunk) : chunk;
|
|
65
|
-
for (
|
|
65
|
+
for (const child of iter) {
|
|
66
66
|
const shape = applyTransforms(child);
|
|
67
67
|
shape.attribs = {
|
|
68
68
|
...$.attribs,
|
|
@@ -96,7 +96,7 @@ function* __points(pts, attribs, opts) {
|
|
|
96
96
|
}
|
|
97
97
|
function* emitChunk($pts) {
|
|
98
98
|
if (down != void 0) yield ["pen", down];
|
|
99
|
-
for (
|
|
99
|
+
for (const p of sort ? sort($pts) : $pts) {
|
|
100
100
|
yield MOVE(p, speed);
|
|
101
101
|
yield DOWN(delayDown);
|
|
102
102
|
yield UP(delayUp);
|
|
@@ -112,7 +112,7 @@ function* __polyline(pts, attribs, opts) {
|
|
|
112
112
|
const clipPts = clip || opts?.clip;
|
|
113
113
|
const chunks = clipPts ? clipPolylinePoly(pts, clipPts) : [pts];
|
|
114
114
|
if (!chunks.length) return;
|
|
115
|
-
for (
|
|
115
|
+
for (const chunk of chunks) {
|
|
116
116
|
yield* polyline(chunk, { down, delayDown, delayUp, speed });
|
|
117
117
|
}
|
|
118
118
|
}
|
package/as-geometry.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/geom-axidraw",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.62",
|
|
4
4
|
"description": "Conversion and preparation of thi.ng/geom shapes & shape groups to/from AxiDraw pen plotter draw commands",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -39,17 +39,17 @@
|
|
|
39
39
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@thi.ng/api": "^8.12.
|
|
43
|
-
"@thi.ng/arrays": "^2.14.
|
|
44
|
-
"@thi.ng/axidraw": "^1.1.
|
|
45
|
-
"@thi.ng/compare": "^2.4.
|
|
46
|
-
"@thi.ng/defmulti": "^3.0.
|
|
47
|
-
"@thi.ng/geom": "^8.3.
|
|
48
|
-
"@thi.ng/geom-accel": "^4.1.
|
|
49
|
-
"@thi.ng/geom-clip-line": "^2.3.
|
|
50
|
-
"@thi.ng/geom-isec": "^4.0.
|
|
51
|
-
"@thi.ng/transducers": "^9.6.
|
|
52
|
-
"@thi.ng/vectors": "^8.6.
|
|
42
|
+
"@thi.ng/api": "^8.12.10",
|
|
43
|
+
"@thi.ng/arrays": "^2.14.3",
|
|
44
|
+
"@thi.ng/axidraw": "^1.1.161",
|
|
45
|
+
"@thi.ng/compare": "^2.4.36",
|
|
46
|
+
"@thi.ng/defmulti": "^3.0.86",
|
|
47
|
+
"@thi.ng/geom": "^8.3.9",
|
|
48
|
+
"@thi.ng/geom-accel": "^4.1.71",
|
|
49
|
+
"@thi.ng/geom-clip-line": "^2.3.161",
|
|
50
|
+
"@thi.ng/geom-isec": "^4.0.71",
|
|
51
|
+
"@thi.ng/transducers": "^9.6.19",
|
|
52
|
+
"@thi.ng/vectors": "^8.6.15"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"esbuild": "^0.27.0",
|
|
@@ -124,5 +124,5 @@
|
|
|
124
124
|
"tag": "axidraw",
|
|
125
125
|
"year": 2022
|
|
126
126
|
},
|
|
127
|
-
"gitHead": "
|
|
127
|
+
"gitHead": "824bf9047b5a10f777c5c5b4aeecf0c750a22c75\n"
|
|
128
128
|
}
|