@thi.ng/geom-sdf 0.2.26 → 0.2.28

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-12-16T12:52:25Z
3
+ - **Last updated**: 2022-12-22T21:47:07Z
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
@@ -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 shapes, conversions, sampling, combinators
26
+ 2D Signed Distance Field creation from [@thi.ng/geom](https://github.com/thi-ng/umbrella/tree/develop/packages/geom) shapes, conversions, sampling, combinators.
27
27
 
28
28
  Includes several distance functions and SDF operators ported from GLSL
29
29
  implementations by:
package/as-sdf.d.ts CHANGED
@@ -2,8 +2,11 @@ import type { MultiFn1 } from "@thi.ng/defmulti";
2
2
  import type { IShape } from "@thi.ng/geom-api";
3
3
  import type { SDFn } from "./api.js";
4
4
  /**
5
- * Takes an {@link @thi.ng/geom-api#IShape} instance (possibly a tree, e.g. via
6
- * {@link @thi.ng/geom#group}) and converts it into a {@link SDFn}.
5
+ * Takes an
6
+ * [`IShape`](https://docs.thi.ng/umbrella/geom-api/interfaces/IShape.html)
7
+ * instance (possibly a tree, e.g. via
8
+ * [`group()`](https://docs.thi.ng/umbrella/geom/functions/group.html)) and
9
+ * converts it into a {@link SDFn}.
7
10
  *
8
11
  * @remarks
9
12
  * Currently supported shape types:
@@ -22,9 +25,10 @@ import type { SDFn } from "./api.js";
22
25
  *
23
26
  * For shapes which need to be converted to polygons/polylines, the
24
27
  * {@link SDFAttribs.samples} attribute can be used to control the resulting
25
- * number of vertices. If not specified {@link @thi.ng/geom-api#DEFAULT_SAMPLES}
28
+ * number of vertices. If not specified
29
+ * [`DEFAULT_SAMPLES`](https://docs.thi.ng/umbrella/geom-api/variables/DEFAULT_SAMPLES.html)
26
30
  * will be used (which can be globally set via
27
- * {@link @thi.ng/geom-api#setDefaultSamples}).
31
+ * [`setDefaultSamples()`](https://docs.thi.ng/umbrella/geom-api/functions/setDefaultSamples.html)).
28
32
  */
29
33
  export declare const asSDF: MultiFn1<IShape, SDFn>;
30
34
  //# sourceMappingURL=as-sdf.d.ts.map
package/as-sdf.js CHANGED
@@ -10,8 +10,11 @@ import { mulN2 } from "@thi.ng/vectors/muln";
10
10
  import { chamferDiff, chamferIsec, chamferUnion, diff, isec, roundDiff, roundIsec, roundUnion, smoothDiff, smoothIsec, smoothUnion, stepDiff, stepIsec, stepUnion, union, } from "./ops.js";
11
11
  import { box2, circle2, DEFAULT_ATTRIBS, ellipse2, line2, points2, polygon2, polyline2, quadratic2, withSDFAttribs, } from "./shapes.js";
12
12
  /**
13
- * Takes an {@link @thi.ng/geom-api#IShape} instance (possibly a tree, e.g. via
14
- * {@link @thi.ng/geom#group}) and converts it into a {@link SDFn}.
13
+ * Takes an
14
+ * [`IShape`](https://docs.thi.ng/umbrella/geom-api/interfaces/IShape.html)
15
+ * instance (possibly a tree, e.g. via
16
+ * [`group()`](https://docs.thi.ng/umbrella/geom/functions/group.html)) and
17
+ * converts it into a {@link SDFn}.
15
18
  *
16
19
  * @remarks
17
20
  * Currently supported shape types:
@@ -30,9 +33,10 @@ import { box2, circle2, DEFAULT_ATTRIBS, ellipse2, line2, points2, polygon2, pol
30
33
  *
31
34
  * For shapes which need to be converted to polygons/polylines, the
32
35
  * {@link SDFAttribs.samples} attribute can be used to control the resulting
33
- * number of vertices. If not specified {@link @thi.ng/geom-api#DEFAULT_SAMPLES}
36
+ * number of vertices. If not specified
37
+ * [`DEFAULT_SAMPLES`](https://docs.thi.ng/umbrella/geom-api/variables/DEFAULT_SAMPLES.html)
34
38
  * will be used (which can be globally set via
35
- * {@link @thi.ng/geom-api#setDefaultSamples}).
39
+ * [`setDefaultSamples()`](https://docs.thi.ng/umbrella/geom-api/functions/setDefaultSamples.html)).
36
40
  */
37
41
  export const asSDF = defmulti(__dispatch, {
38
42
  quad: "poly",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/geom-sdf",
3
- "version": "0.2.26",
3
+ "version": "0.2.28",
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",
@@ -34,22 +34,22 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
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"
37
+ "@thi.ng/api": "^8.6.2",
38
+ "@thi.ng/checks": "^3.3.6",
39
+ "@thi.ng/defmulti": "^2.1.26",
40
+ "@thi.ng/errors": "^2.2.7",
41
+ "@thi.ng/geom": "^4.1.0",
42
+ "@thi.ng/geom-api": "^3.3.23",
43
+ "@thi.ng/geom-isoline": "^2.1.37",
44
+ "@thi.ng/geom-poly-utils": "^2.3.24",
45
+ "@thi.ng/geom-resample": "^2.1.41",
46
+ "@thi.ng/math": "^5.3.18",
47
+ "@thi.ng/transducers": "^8.3.28",
48
+ "@thi.ng/vectors": "^7.5.29"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@microsoft/api-extractor": "^7.33.7",
52
- "@thi.ng/testament": "^0.3.7",
52
+ "@thi.ng/testament": "^0.3.8",
53
53
  "rimraf": "^3.0.2",
54
54
  "tools": "^0.0.1",
55
55
  "typedoc": "^0.23.22",
@@ -127,5 +127,5 @@
127
127
  "status": "alpha",
128
128
  "year": 2022
129
129
  },
130
- "gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
130
+ "gitHead": "bc6f7f5e2765bb96fe64db804eaf4b2443b47fc6\n"
131
131
  }