@thi.ng/geom-sdf 0.2.24 → 0.2.26

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**: 2022-11-30T22:27:37Z
3
+ - **Last updated**: 2022-12-16T12:52:25Z
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,10 +1,10 @@
1
1
  <!-- This file is generated - DO NOT EDIT! -->
2
2
 
3
- # ![geom-sdf](https://media.thi.ng/umbrella/banners-20220914/thing-geom-sdf.svg?31ffecd1)
3
+ # ![@thi.ng/geom-sdf](https://media.thi.ng/umbrella/banners-20220914/thing-geom-sdf.svg?31ffecd1)
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@thi.ng/geom-sdf.svg)](https://www.npmjs.com/package/@thi.ng/geom-sdf)
6
6
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/geom-sdf.svg)
7
- [![Twitter Follow](https://img.shields.io/twitter/follow/thing_umbrella.svg?style=flat-square&label=twitter)](https://twitter.com/thing_umbrella)
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
  This project is part of the
10
10
  [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
@@ -23,7 +23,7 @@ This project is part of the
23
23
 
24
24
  ## About
25
25
 
26
- 2D Signed Distance Field creation from [@thi.ng/geom](https://github.com/thi-ng/umbrella/tree/develop/packages/geom) shapes, conversions, sampling, combinators.
26
+ 2D Signed Distance Field creation from @thi.ng/geom shapes, conversions, sampling, combinators
27
27
 
28
28
  Includes several distance functions and SDF operators ported from GLSL
29
29
  implementations by:
@@ -129,11 +129,8 @@ ES module import:
129
129
 
130
130
  For Node.js REPL:
131
131
 
132
- ```text
133
- # with flag only for < v16
134
- node --experimental-repl-await
135
-
136
- > const geomSdf = await import("@thi.ng/geom-sdf");
132
+ ```js
133
+ const geomSdf = await import("@thi.ng/geom-sdf");
137
134
  ```
138
135
 
139
136
  Package sizes (brotli'd, pre-treeshake): ESM: 3.52 KB
@@ -226,7 +223,7 @@ Results:
226
223
 
227
224
  ## Authors
228
225
 
229
- Karsten Schmidt
226
+ - [Karsten Schmidt](https://thi.ng)
230
227
 
231
228
  If this project contributes to an academic publication, please cite it as:
232
229
 
@@ -241,4 +238,4 @@ If this project contributes to an academic publication, please cite it as:
241
238
 
242
239
  ## License
243
240
 
244
- &copy; 2022 Karsten Schmidt // Apache Software License 2.0
241
+ &copy; 2022 Karsten Schmidt // Apache License 2.0
package/api.d.ts CHANGED
@@ -5,9 +5,9 @@ import type { ReadonlyVec } from "@thi.ng/vectors";
5
5
  * optionally taking into account an already computed `minD` min distance (e.g.
6
6
  * used for bounding hierarchies). `minD` defaults to positive ∞.
7
7
  */
8
- export declare type SDFn = (p: ReadonlyVec, minD?: number) => number;
9
- export declare type SDFCombineOp = "union" | "isec" | "diff";
10
- export declare type FieldCoeff<T = number> = Fn<ReadonlyVec, T>;
8
+ export type SDFn = (p: ReadonlyVec, minD?: number) => number;
9
+ export type SDFCombineOp = "union" | "isec" | "diff";
10
+ export type FieldCoeff<T = number> = Fn<ReadonlyVec, T>;
11
11
  /**
12
12
  * Options object to customize geometry -> SDF conversions. Given as value to
13
13
  * the special `__sdf` shape attribute.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/geom-sdf",
3
- "version": "0.2.24",
3
+ "version": "0.2.26",
4
4
  "description": "2D Signed Distance Field creation from @thi.ng/geom shapes, conversions, sampling, combinators",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -10,7 +10,7 @@
10
10
  "type": "git",
11
11
  "url": "https://github.com/thi-ng/umbrella.git"
12
12
  },
13
- "homepage": "https://github.com/thi-ng/umbrella/tree/master/packages/geom-sdf#readme",
13
+ "homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/geom-sdf#readme",
14
14
  "funding": [
15
15
  {
16
16
  "type": "github",
@@ -21,7 +21,7 @@
21
21
  "url": "https://patreon.com/thing_umbrella"
22
22
  }
23
23
  ],
24
- "author": "Karsten Schmidt <k+npm@thi.ng>",
24
+ "author": "Karsten Schmidt (https://thi.ng)",
25
25
  "license": "Apache-2.0",
26
26
  "scripts": {
27
27
  "build": "yarn clean && tsc --declaration",
@@ -34,26 +34,26 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.5.1",
38
- "@thi.ng/checks": "^3.3.4",
39
- "@thi.ng/defmulti": "^2.1.23",
40
- "@thi.ng/errors": "^2.2.5",
41
- "@thi.ng/geom": "^3.4.23",
42
- "@thi.ng/geom-api": "^3.3.20",
43
- "@thi.ng/geom-isoline": "^2.1.34",
44
- "@thi.ng/geom-poly-utils": "^2.3.21",
45
- "@thi.ng/geom-resample": "^2.1.37",
46
- "@thi.ng/math": "^5.3.15",
47
- "@thi.ng/transducers": "^8.3.25",
48
- "@thi.ng/vectors": "^7.5.26"
37
+ "@thi.ng/api": "^8.6.0",
38
+ "@thi.ng/checks": "^3.3.5",
39
+ "@thi.ng/defmulti": "^2.1.24",
40
+ "@thi.ng/errors": "^2.2.6",
41
+ "@thi.ng/geom": "^4.0.1",
42
+ "@thi.ng/geom-api": "^3.3.21",
43
+ "@thi.ng/geom-isoline": "^2.1.35",
44
+ "@thi.ng/geom-poly-utils": "^2.3.22",
45
+ "@thi.ng/geom-resample": "^2.1.39",
46
+ "@thi.ng/math": "^5.3.16",
47
+ "@thi.ng/transducers": "^8.3.26",
48
+ "@thi.ng/vectors": "^7.5.27"
49
49
  },
50
50
  "devDependencies": {
51
- "@microsoft/api-extractor": "^7.33.5",
52
- "@thi.ng/testament": "^0.3.6",
51
+ "@microsoft/api-extractor": "^7.33.7",
52
+ "@thi.ng/testament": "^0.3.7",
53
53
  "rimraf": "^3.0.2",
54
54
  "tools": "^0.0.1",
55
- "typedoc": "^0.23.20",
56
- "typescript": "^4.8.4"
55
+ "typedoc": "^0.23.22",
56
+ "typescript": "^4.9.4"
57
57
  },
58
58
  "keywords": [
59
59
  "2d",
@@ -127,5 +127,5 @@
127
127
  "status": "alpha",
128
128
  "year": 2022
129
129
  },
130
- "gitHead": "1fe40da507070653f420156d91e6b27cf682004f\n"
130
+ "gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
131
131
  }