@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 CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 210 standalone projects, maintained as part
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 (let child of iter) {
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 (let p of sort ? sort($pts) : $pts) {
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 (let chunk of chunks) {
115
+ for (const chunk of chunks) {
116
116
  yield* polyline(chunk, { down, delayDown, delayUp, speed });
117
117
  }
118
118
  }
package/as-geometry.js CHANGED
@@ -30,7 +30,7 @@ const asGeometry = (src, opts = {}) => {
30
30
  }
31
31
  currPos = newPos;
32
32
  };
33
- for (let cmd of src) {
33
+ for (const cmd of src) {
34
34
  switch (cmd[0]) {
35
35
  // absolute
36
36
  case "M":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/geom-axidraw",
3
- "version": "1.0.60",
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.8",
43
- "@thi.ng/arrays": "^2.14.1",
44
- "@thi.ng/axidraw": "^1.1.159",
45
- "@thi.ng/compare": "^2.4.34",
46
- "@thi.ng/defmulti": "^3.0.84",
47
- "@thi.ng/geom": "^8.3.7",
48
- "@thi.ng/geom-accel": "^4.1.69",
49
- "@thi.ng/geom-clip-line": "^2.3.159",
50
- "@thi.ng/geom-isec": "^4.0.69",
51
- "@thi.ng/transducers": "^9.6.17",
52
- "@thi.ng/vectors": "^8.6.13"
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": "be6e7657b1e5c54d7d648d1b52888a7297e95a17\n"
127
+ "gitHead": "824bf9047b5a10f777c5c5b4aeecf0c750a22c75\n"
128
128
  }