@thi.ng/geom 8.0.3 → 8.0.5

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-06T12:02:19Z
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
@@ -1,13 +1,13 @@
1
1
  <!-- This file is generated - DO NOT EDIT! -->
2
2
  <!-- Please see: https://github.com/thi-ng/umbrella/blob/develop/CONTRIBUTING.md#changes-to-readme-files -->
3
- # ![@thi.ng/geom](https://media.thi.ng/umbrella/banners-20230807/thing-geom.svg?f8c3d358)
3
+ # ![@thi.ng/geom](https://media.thi.ng/umbrella/banners-20230807/thing-geom.svg?0f8f2ae6)
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@thi.ng/geom.svg)](https://www.npmjs.com/package/@thi.ng/geom)
6
6
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/geom.svg)
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 188 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,14 +475,17 @@ 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
- Several projects in this repo's
488
+ 37 projects in this repo's
487
489
  [/examples](https://github.com/thi-ng/umbrella/tree/develop/examples)
488
490
  directory are using this package:
489
491
 
@@ -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.3",
3
+ "version": "8.0.5",
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.55",
41
- "@thi.ng/api": "^8.11.5",
42
- "@thi.ng/arrays": "^2.9.10",
43
- "@thi.ng/associative": "^6.3.64",
44
- "@thi.ng/checks": "^3.6.7",
45
- "@thi.ng/defmulti": "^3.0.43",
46
- "@thi.ng/equiv": "^2.1.61",
47
- "@thi.ng/errors": "^2.5.11",
48
- "@thi.ng/geom-arc": "^2.1.136",
49
- "@thi.ng/geom-clip-line": "^2.3.93",
50
- "@thi.ng/geom-clip-poly": "^2.1.135",
51
- "@thi.ng/geom-closest-point": "^2.1.131",
52
- "@thi.ng/geom-hull": "^2.1.131",
53
- "@thi.ng/geom-isec": "^4.0.3",
54
- "@thi.ng/geom-poly-utils": "^3.0.3",
55
- "@thi.ng/geom-resample": "^3.0.3",
56
- "@thi.ng/geom-splines": "^2.3.3",
57
- "@thi.ng/geom-subdiv-curve": "^3.0.3",
58
- "@thi.ng/geom-tessellate": "^3.0.3",
59
- "@thi.ng/hiccup": "^5.2.5",
60
- "@thi.ng/hiccup-svg": "^5.3.3",
61
- "@thi.ng/math": "^5.11.3",
62
- "@thi.ng/matrices": "^2.4.3",
63
- "@thi.ng/random": "^3.8.4",
64
- "@thi.ng/strings": "^3.7.37",
65
- "@thi.ng/transducers": "^9.0.9",
66
- "@thi.ng/vectors": "^7.11.3"
40
+ "@thi.ng/adjacency": "^3.0.0",
41
+ "@thi.ng/api": "^8.11.7",
42
+ "@thi.ng/arrays": "^2.9.12",
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.138",
48
+ "@thi.ng/geom-clip-line": "^2.3.95",
49
+ "@thi.ng/geom-clip-poly": "^2.1.137",
50
+ "@thi.ng/geom-closest-point": "^2.1.133",
51
+ "@thi.ng/geom-hull": "^2.1.133",
52
+ "@thi.ng/geom-isec": "^4.0.5",
53
+ "@thi.ng/geom-poly-utils": "^3.0.5",
54
+ "@thi.ng/geom-resample": "^3.0.5",
55
+ "@thi.ng/geom-splines": "^2.3.5",
56
+ "@thi.ng/geom-subdiv-curve": "^3.0.5",
57
+ "@thi.ng/geom-tessellate": "^3.0.5",
58
+ "@thi.ng/hiccup": "^5.2.7",
59
+ "@thi.ng/hiccup-svg": "^5.3.5",
60
+ "@thi.ng/math": "^5.11.5",
61
+ "@thi.ng/matrices": "^2.4.5",
62
+ "@thi.ng/object-utils": "^1.1.0",
63
+ "@thi.ng/random": "^4.0.0",
64
+ "@thi.ng/strings": "^3.8.1",
65
+ "@thi.ng/transducers": "^9.0.11",
66
+ "@thi.ng/vectors": "^7.11.5"
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": "ba4f2cd15eeb0cae30efe222524da4fed2a57267\n"
530
+ "gitHead": "324d6b7dbf31558329e9fb6452e29b2f7db9c61a\n"
531
531
  }