@thi.ng/geom 6.0.30 → 6.0.32

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-25T14:07:53Z
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/geom",
3
- "version": "6.0.30",
3
+ "version": "6.0.32",
4
4
  "description": "Functional, polymorphic API for 2D geometry types & SVG generation",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -36,33 +36,33 @@
36
36
  "tool:bpatch": "bun tools/bpatch.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/api": "^8.9.25",
40
- "@thi.ng/arrays": "^2.8.2",
41
- "@thi.ng/associative": "^6.3.42",
39
+ "@thi.ng/api": "^8.9.26",
40
+ "@thi.ng/arrays": "^2.8.3",
41
+ "@thi.ng/associative": "^6.3.43",
42
42
  "@thi.ng/checks": "^3.5.0",
43
- "@thi.ng/defmulti": "^3.0.25",
43
+ "@thi.ng/defmulti": "^3.0.26",
44
44
  "@thi.ng/equiv": "^2.1.49",
45
45
  "@thi.ng/errors": "^2.4.18",
46
- "@thi.ng/geom-api": "^3.4.69",
47
- "@thi.ng/geom-arc": "^2.1.112",
48
- "@thi.ng/geom-clip-line": "^2.3.69",
49
- "@thi.ng/geom-clip-poly": "^2.1.111",
50
- "@thi.ng/geom-closest-point": "^2.1.107",
51
- "@thi.ng/geom-hull": "^2.1.107",
52
- "@thi.ng/geom-isec": "^2.1.111",
53
- "@thi.ng/geom-poly-utils": "^2.3.95",
54
- "@thi.ng/geom-resample": "^2.3.33",
55
- "@thi.ng/geom-splines": "^2.2.86",
56
- "@thi.ng/geom-subdiv-curve": "^2.1.111",
57
- "@thi.ng/geom-tessellate": "^2.1.112",
58
- "@thi.ng/hiccup": "^5.1.14",
59
- "@thi.ng/hiccup-svg": "^5.2.15",
60
- "@thi.ng/math": "^5.10.2",
61
- "@thi.ng/matrices": "^2.3.17",
62
- "@thi.ng/random": "^3.6.32",
63
- "@thi.ng/strings": "^3.7.16",
64
- "@thi.ng/transducers": "^8.9.6",
65
- "@thi.ng/vectors": "^7.10.11"
46
+ "@thi.ng/geom-api": "^3.4.70",
47
+ "@thi.ng/geom-arc": "^2.1.113",
48
+ "@thi.ng/geom-clip-line": "^2.3.70",
49
+ "@thi.ng/geom-clip-poly": "^2.1.112",
50
+ "@thi.ng/geom-closest-point": "^2.1.108",
51
+ "@thi.ng/geom-hull": "^2.1.108",
52
+ "@thi.ng/geom-isec": "^2.1.112",
53
+ "@thi.ng/geom-poly-utils": "^2.3.96",
54
+ "@thi.ng/geom-resample": "^2.3.34",
55
+ "@thi.ng/geom-splines": "^2.2.87",
56
+ "@thi.ng/geom-subdiv-curve": "^2.1.112",
57
+ "@thi.ng/geom-tessellate": "^2.1.113",
58
+ "@thi.ng/hiccup": "^5.1.15",
59
+ "@thi.ng/hiccup-svg": "^5.2.17",
60
+ "@thi.ng/math": "^5.10.3",
61
+ "@thi.ng/matrices": "^2.3.18",
62
+ "@thi.ng/random": "^3.6.33",
63
+ "@thi.ng/strings": "^3.7.17",
64
+ "@thi.ng/transducers": "^8.9.7",
65
+ "@thi.ng/vectors": "^7.10.12"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@microsoft/api-extractor": "^7.40.1",
@@ -398,5 +398,5 @@
398
398
  ],
399
399
  "year": 2013
400
400
  },
401
- "gitHead": "16f2b92b5410bd35dcde6c2971c8e62783ebc472\n"
401
+ "gitHead": "6e20f80dd9df1c8055ffa3c1e4d6f7598add0c0b\n"
402
402
  }
package/polygon.d.ts CHANGED
@@ -22,6 +22,8 @@ export declare const star: (r: number, n: number, profile: number[], attribs?: A
22
22
  *
23
23
  * @example
24
24
  * ```ts
25
+ * import { starWithCentroid } from "@thi.ng/geom";
26
+ *
25
27
  * starWithCentroid([100,200], 50, 5, [1, 0.5])
26
28
  * // Polygon {
27
29
  * // points: [
package/polyline.d.ts CHANGED
@@ -8,6 +8,8 @@ export declare const polyline: (pts: Iterable<Vec>, attribs?: Attribs) => Polyli
8
8
  *
9
9
  * @example
10
10
  * ```ts
11
+ * import { spiral } from "@thi.ng/geom";
12
+ *
11
13
  * // 4 full turns over 80 steps
12
14
  * spiral([0, 0], 5, 100, 0, Math.PI * 2 * 4, 80);
13
15
  * ```
@@ -23,6 +23,8 @@ import { Group } from "./api/group.js";
23
23
  *
24
24
  * @example
25
25
  * ```ts
26
+ * import { circle, group, inscribedSquare, splitArcLength } from "@thi.ng/geom";
27
+ *
26
28
  * // circle (to be sampled as octagon)
27
29
  * const a = circle(100, { stroke: "red", __samples: 8 });
28
30
  *
package/vertices.d.ts CHANGED
@@ -14,6 +14,8 @@ import type { Vec } from "@thi.ng/vectors";
14
14
  *
15
15
  * @example
16
16
  * ```ts
17
+ * import { circle, vertices } from "@thi.ng/geom";
18
+ *
17
19
  * // using default
18
20
  * vertices(circle(100))
19
21
  *