@thi.ng/geom 8.0.4 → 8.0.6

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-07-19T14:56:21Z
3
+ - **Last updated**: 2024-07-22T13:15:57Z
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/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 189 standalone projects, maintained as part
10
+ > This is one of 198 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
  >
@@ -449,14 +449,13 @@ For Node.js REPL:
449
449
  const geom = await import("@thi.ng/geom");
450
450
  ```
451
451
 
452
- Package sizes (brotli'd, pre-treeshake): ESM: 17.37 KB
452
+ Package sizes (brotli'd, pre-treeshake): ESM: 17.32 KB
453
453
 
454
454
  ## Dependencies
455
455
 
456
456
  - [@thi.ng/adjacency](https://github.com/thi-ng/umbrella/tree/develop/packages/adjacency)
457
457
  - [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/develop/packages/api)
458
458
  - [@thi.ng/arrays](https://github.com/thi-ng/umbrella/tree/develop/packages/arrays)
459
- - [@thi.ng/associative](https://github.com/thi-ng/umbrella/tree/develop/packages/associative)
460
459
  - [@thi.ng/checks](https://github.com/thi-ng/umbrella/tree/develop/packages/checks)
461
460
  - [@thi.ng/defmulti](https://github.com/thi-ng/umbrella/tree/develop/packages/defmulti)
462
461
  - [@thi.ng/equiv](https://github.com/thi-ng/umbrella/tree/develop/packages/equiv)
@@ -476,11 +475,14 @@ Package sizes (brotli'd, pre-treeshake): ESM: 17.37 KB
476
475
  - [@thi.ng/hiccup-svg](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-svg)
477
476
  - [@thi.ng/math](https://github.com/thi-ng/umbrella/tree/develop/packages/math)
478
477
  - [@thi.ng/matrices](https://github.com/thi-ng/umbrella/tree/develop/packages/matrices)
478
+ - [@thi.ng/object-utils](https://github.com/thi-ng/umbrella/tree/develop/packages/object-utils)
479
479
  - [@thi.ng/random](https://github.com/thi-ng/umbrella/tree/develop/packages/random)
480
480
  - [@thi.ng/strings](https://github.com/thi-ng/umbrella/tree/develop/packages/strings)
481
481
  - [@thi.ng/transducers](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers)
482
482
  - [@thi.ng/vectors](https://github.com/thi-ng/umbrella/tree/develop/packages/vectors)
483
483
 
484
+ Note: @thi.ng/api is in _most_ cases a type-only import (not used at runtime)
485
+
484
486
  ## Usage examples
485
487
 
486
488
  37 projects in this repo's
@@ -1,5 +1,5 @@
1
- import { withoutKeysObj } from "@thi.ng/associative/without-keys";
2
1
  import { DEFAULT, defmulti } from "@thi.ng/defmulti/defmulti";
2
+ import { withoutKeysObj } from "@thi.ng/object-utils/without-keys";
3
3
  import { __dispatch } from "./internal/dispatch.js";
4
4
  import { rotateX, rotateY, rotateZ } from "./rotate-around-axis.js";
5
5
  import { rotate } from "./rotate.js";
package/as-svg.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { Attribs, IShape } from "./api.js";
2
1
  import type { NumOrString } from "@thi.ng/api";
2
+ import type { Attribs, IShape } from "./api.js";
3
3
  export interface SVGDocAttribs extends Attribs {
4
4
  /**
5
5
  * SVG viewBox attribute. If not given, {@link svgDoc} will attempt to
package/as-svg.js CHANGED
@@ -1,8 +1,8 @@
1
- import { withoutKeysObj } from "@thi.ng/associative/without-keys";
2
1
  import { convertTree } from "@thi.ng/hiccup-svg/convert";
3
2
  import { ff } from "@thi.ng/hiccup-svg/format";
4
3
  import { svg } from "@thi.ng/hiccup-svg/svg";
5
4
  import { serialize } from "@thi.ng/hiccup/serialize";
5
+ import { withoutKeysObj } from "@thi.ng/object-utils/without-keys";
6
6
  import { bounds } from "./bounds.js";
7
7
  import { __collBounds } from "./internal/bounds.js";
8
8
  let SVG_DEFAULT_ATTRIBS = {
package/internal/copy.js CHANGED
@@ -1,4 +1,4 @@
1
- import { withoutKeysObj } from "@thi.ng/associative/without-keys";
1
+ import { withoutKeysObj } from "@thi.ng/object-utils/without-keys";
2
2
  import { copy, copyVectors } from "@thi.ng/vectors/copy";
3
3
  const __copyAttribs = (attribs, ...exclude) => !attribs ? void 0 : exclude.length ? withoutKeysObj({ ...attribs }, exclude) : { ...attribs };
4
4
  const __copyAttribsNoSamples = (x) => __copyAttribs(x.attribs, "__samples");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/geom",
3
- "version": "8.0.4",
3
+ "version": "8.0.6",
4
4
  "description": "Functional, polymorphic API for 2D geometry types & SVG generation",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -37,33 +37,33 @@
37
37
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
38
38
  },
39
39
  "dependencies": {
40
- "@thi.ng/adjacency": "^2.5.56",
41
- "@thi.ng/api": "^8.11.6",
42
- "@thi.ng/arrays": "^2.9.11",
43
- "@thi.ng/associative": "^6.3.65",
44
- "@thi.ng/checks": "^3.6.8",
45
- "@thi.ng/defmulti": "^3.0.44",
46
- "@thi.ng/equiv": "^2.1.62",
47
- "@thi.ng/errors": "^2.5.12",
48
- "@thi.ng/geom-arc": "^2.1.137",
49
- "@thi.ng/geom-clip-line": "^2.3.94",
50
- "@thi.ng/geom-clip-poly": "^2.1.136",
51
- "@thi.ng/geom-closest-point": "^2.1.132",
52
- "@thi.ng/geom-hull": "^2.1.132",
53
- "@thi.ng/geom-isec": "^4.0.4",
54
- "@thi.ng/geom-poly-utils": "^3.0.4",
55
- "@thi.ng/geom-resample": "^3.0.4",
56
- "@thi.ng/geom-splines": "^2.3.4",
57
- "@thi.ng/geom-subdiv-curve": "^3.0.4",
58
- "@thi.ng/geom-tessellate": "^3.0.4",
59
- "@thi.ng/hiccup": "^5.2.6",
60
- "@thi.ng/hiccup-svg": "^5.3.4",
61
- "@thi.ng/math": "^5.11.4",
62
- "@thi.ng/matrices": "^2.4.4",
63
- "@thi.ng/random": "^3.8.5",
64
- "@thi.ng/strings": "^3.8.0",
65
- "@thi.ng/transducers": "^9.0.10",
66
- "@thi.ng/vectors": "^7.11.4"
40
+ "@thi.ng/adjacency": "^3.0.1",
41
+ "@thi.ng/api": "^8.11.7",
42
+ "@thi.ng/arrays": "^2.9.13",
43
+ "@thi.ng/checks": "^3.6.9",
44
+ "@thi.ng/defmulti": "^3.0.45",
45
+ "@thi.ng/equiv": "^2.1.63",
46
+ "@thi.ng/errors": "^2.5.13",
47
+ "@thi.ng/geom-arc": "^2.1.139",
48
+ "@thi.ng/geom-clip-line": "^2.3.96",
49
+ "@thi.ng/geom-clip-poly": "^2.1.138",
50
+ "@thi.ng/geom-closest-point": "^2.1.134",
51
+ "@thi.ng/geom-hull": "^2.1.134",
52
+ "@thi.ng/geom-isec": "^4.0.6",
53
+ "@thi.ng/geom-poly-utils": "^3.0.6",
54
+ "@thi.ng/geom-resample": "^3.0.6",
55
+ "@thi.ng/geom-splines": "^2.3.6",
56
+ "@thi.ng/geom-subdiv-curve": "^3.0.6",
57
+ "@thi.ng/geom-tessellate": "^3.0.6",
58
+ "@thi.ng/hiccup": "^5.2.7",
59
+ "@thi.ng/hiccup-svg": "^5.3.6",
60
+ "@thi.ng/math": "^5.11.5",
61
+ "@thi.ng/matrices": "^2.4.6",
62
+ "@thi.ng/object-utils": "^1.1.0",
63
+ "@thi.ng/random": "^4.0.1",
64
+ "@thi.ng/strings": "^3.8.1",
65
+ "@thi.ng/transducers": "^9.0.12",
66
+ "@thi.ng/vectors": "^7.11.6"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@microsoft/api-extractor": "^7.47.0",
@@ -527,5 +527,5 @@
527
527
  ],
528
528
  "year": 2013
529
529
  },
530
- "gitHead": "c7aaa453b01a45e5235517db9d2a283b97abac96\n"
530
+ "gitHead": "bd22b0826134b79064169371665b4d6caa9b6066\n"
531
531
  }