@thi.ng/geom-axidraw 1.0.9 → 1.0.11
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 +1 -1
- package/README.md +1 -1
- package/api.d.ts +1 -1
- package/as-axidraw.d.ts +1 -1
- package/package.json +16 -15
- package/sort.d.ts +4 -4
package/CHANGELOG.md
CHANGED
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 202 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/api.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { ReadonlyVec } from "@thi.ng/vectors";
|
|
|
6
6
|
* Package-specific shape attributes used to control conversion behavior. MUST
|
|
7
7
|
* be stored under the `__axi` attribute name.
|
|
8
8
|
*
|
|
9
|
-
* @
|
|
9
|
+
* @remarks
|
|
10
10
|
* Important: TODO keep this in sync with
|
|
11
11
|
* [PolylineOpts](https://docs.thi.ng/umbrella/axidraw/interfaces/PolylineOpts.html)
|
|
12
12
|
*
|
package/as-axidraw.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import type { AsAxiDrawOpts } from "./api.js";
|
|
|
12
12
|
*
|
|
13
13
|
* Currently supported shape types (at least all types which are supported by
|
|
14
14
|
* the
|
|
15
|
-
* [`asPolyline
|
|
15
|
+
* [`asPolyline`](https://docs.thi.ng/umbrella/geom/functions/asPolyline.html)
|
|
16
16
|
* function):
|
|
17
17
|
*
|
|
18
18
|
* - arc
|
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.11",
|
|
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,21 +39,21 @@
|
|
|
39
39
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@thi.ng/api": "^8.11.
|
|
43
|
-
"@thi.ng/arrays": "^2.10.
|
|
44
|
-
"@thi.ng/axidraw": "^1.1.
|
|
45
|
-
"@thi.ng/compare": "^2.4.
|
|
46
|
-
"@thi.ng/defmulti": "^3.0.
|
|
47
|
-
"@thi.ng/geom": "^8.1.
|
|
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.2.
|
|
52
|
-
"@thi.ng/vectors": "^7.12.
|
|
42
|
+
"@thi.ng/api": "^8.11.21",
|
|
43
|
+
"@thi.ng/arrays": "^2.10.16",
|
|
44
|
+
"@thi.ng/axidraw": "^1.1.115",
|
|
45
|
+
"@thi.ng/compare": "^2.4.13",
|
|
46
|
+
"@thi.ng/defmulti": "^3.0.61",
|
|
47
|
+
"@thi.ng/geom": "^8.1.31",
|
|
48
|
+
"@thi.ng/geom-accel": "^4.1.26",
|
|
49
|
+
"@thi.ng/geom-clip-line": "^2.3.123",
|
|
50
|
+
"@thi.ng/geom-isec": "^4.0.33",
|
|
51
|
+
"@thi.ng/transducers": "^9.2.19",
|
|
52
|
+
"@thi.ng/vectors": "^7.12.21"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"esbuild": "^0.
|
|
56
|
-
"typedoc": "^0.27.
|
|
55
|
+
"esbuild": "^0.25.0",
|
|
56
|
+
"typedoc": "^0.27.7",
|
|
57
57
|
"typescript": "^5.7.3"
|
|
58
58
|
},
|
|
59
59
|
"keywords": [
|
|
@@ -121,7 +121,8 @@
|
|
|
121
121
|
"axidraw"
|
|
122
122
|
],
|
|
123
123
|
"status": "alpha",
|
|
124
|
+
"tag": "axidraw",
|
|
124
125
|
"year": 2022
|
|
125
126
|
},
|
|
126
|
-
"gitHead": "
|
|
127
|
+
"gitHead": "bee617702ac61d093465b967f8f973dc566faa6b\n"
|
|
127
128
|
}
|
package/sort.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { PointOrdering, ShapeOrdering } from "./api.js";
|
|
|
6
6
|
* Higher order point ordering fn. Adds points to given spatial
|
|
7
7
|
* index/acceleration structure and then lazily sorts them by nearest neighbor
|
|
8
8
|
* distance, starting selection of first point based on given `ref` point
|
|
9
|
-
* (default: [0,
|
|
9
|
+
* (default: `[0,0]`).
|
|
10
10
|
*
|
|
11
11
|
* @remarks
|
|
12
12
|
* By default is using a
|
|
@@ -19,15 +19,15 @@ import type { PointOrdering, ShapeOrdering } from "./api.js";
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const pointsByNearestNeighbor: (accel?: ISpatialSet<ReadonlyVec> & IRegionQuery<ReadonlyVec, ReadonlyVec, number>, ref?: ReadonlyVec) => PointOrdering;
|
|
21
21
|
/**
|
|
22
|
-
* Higher order point ordering fn. Sorts points by proximity to given `ref`
|
|
23
|
-
* (default: [0,
|
|
22
|
+
* Higher order point ordering fn. Sorts points by proximity to given `ref`
|
|
23
|
+
* point (default: `[0,0]`).
|
|
24
24
|
*
|
|
25
25
|
* @param ref
|
|
26
26
|
*/
|
|
27
27
|
export declare const pointsByProximity: (ref?: ReadonlyVec) => PointOrdering;
|
|
28
28
|
/**
|
|
29
29
|
* Higher order shape sorting fn. Sorts shapes by their centroid's proximity to
|
|
30
|
-
* given `ref` point (default: [0,
|
|
30
|
+
* given `ref` point (default: `[0,0]`).
|
|
31
31
|
*
|
|
32
32
|
* @param ref
|
|
33
33
|
*/
|