@thi.ng/geom-sdf 0.2.39 → 0.2.41

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +5 -5
  3. package/package.json +19 -19
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2023-03-02T18:09:03Z
3
+ - **Last updated**: 2023-03-14T13:27:19Z
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
@@ -57,7 +57,7 @@ const f = asSDF(group({}, [circle([-50, 0], 100), circle([50, 0], 100)]));
57
57
  ### SDF combinators
58
58
 
59
59
  The following table illustrates various options how SDFs can be combined. When
60
- using the [`asSDF()`](https://docs.thi.ng/umbrella/geom-sdf/modules.html#asSDF)
60
+ using the [`asSDF()`](https://docs.thi.ng/umbrella/geom-sdf/functions/asSDF.html)
61
61
  geometry converter, these operators can be specified and configured (most are
62
62
  parametric) via a shape `group()`'s
63
63
  [attributes](https://docs.thi.ng/umbrella/geom-sdf/interfaces/SDFAttribs.html),
@@ -81,8 +81,8 @@ group({ __sdf: { combine: "diff", chamfer: 50 }}, [
81
81
  ### SDF discretization, sampling & domain modifiers
82
82
 
83
83
  The package provides the
84
- [`sample2d()`](https://docs.thi.ng/umbrella/geom-sdf/modules.html#sample2d) and
85
- [`asPolygons()`](https://docs.thi.ng/umbrella/geom-sdf/modules.html#asPolygons)
84
+ [`sample2d()`](https://docs.thi.ng/umbrella/geom-sdf/functions/sample2d.html) and
85
+ [`asPolygons()`](https://docs.thi.ng/umbrella/geom-sdf/functions/asPolygons.html)
86
86
  functions to discretize an SDF and cache results in a buffer (image) and then
87
87
  extract contour polygons from it, i.e. convert the 2D back into geometry (see
88
88
  example further below). The SDF will be sampled in a user defined bounding
@@ -90,7 +90,7 @@ rectangle (with customizable resolution) and the sampling positions can be
90
90
  modulated via several provided domain modifiers to create various axial/spatial
91
91
  repetions, symmetries etc. Modifiers are nestable/composable via standard
92
92
  functional composition (e.g. using
93
- [`compL()`](https://docs.thi.ng/umbrella/compose/modules.html#compL)) and also
93
+ [`compL()`](https://docs.thi.ng/umbrella/compose/functions/compL.html)) and also
94
94
  support custom modfifiers. The table below illustrates a few examples effects:
95
95
 
96
96
  | Modifier | | | |
@@ -185,7 +185,7 @@ const sceneBounds = bounds(scene, 40);
185
185
 
186
186
  // convert to an SDF distance function
187
187
  // more information about supported shape types:
188
- // https://docs.thi.ng/umbrella/geom-sdf/modules.html#asSDF
188
+ // https://docs.thi.ng/umbrella/geom-sdf/functions/asSDF.html
189
189
  const sdf = asSDF(scene);
190
190
 
191
191
  // sample SDF in given bounding rect and resolution
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/geom-sdf",
3
- "version": "0.2.39",
3
+ "version": "0.2.41",
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",
@@ -25,7 +25,7 @@
25
25
  "license": "Apache-2.0",
26
26
  "scripts": {
27
27
  "build": "yarn clean && tsc --declaration",
28
- "clean": "rimraf '*.js' '*.d.ts' '*.map' doc",
28
+ "clean": "rimraf --glob '*.js' '*.d.ts' '*.map' doc",
29
29
  "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
30
  "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
31
31
  "doc:readme": "yarn doc:stats && tools:readme",
@@ -34,25 +34,25 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.7.3",
38
- "@thi.ng/checks": "^3.3.9",
39
- "@thi.ng/defmulti": "^2.1.31",
40
- "@thi.ng/errors": "^2.2.12",
41
- "@thi.ng/geom": "^4.2.9",
42
- "@thi.ng/geom-api": "^3.4.7",
43
- "@thi.ng/geom-isoline": "^2.1.46",
44
- "@thi.ng/geom-poly-utils": "^2.3.33",
45
- "@thi.ng/geom-resample": "^2.2.7",
46
- "@thi.ng/math": "^5.4.4",
47
- "@thi.ng/transducers": "^8.3.36",
48
- "@thi.ng/vectors": "^7.6.6"
37
+ "@thi.ng/api": "^8.7.4",
38
+ "@thi.ng/checks": "^3.3.10",
39
+ "@thi.ng/defmulti": "^2.1.33",
40
+ "@thi.ng/errors": "^2.2.13",
41
+ "@thi.ng/geom": "^4.2.11",
42
+ "@thi.ng/geom-api": "^3.4.9",
43
+ "@thi.ng/geom-isoline": "^2.1.48",
44
+ "@thi.ng/geom-poly-utils": "^2.3.35",
45
+ "@thi.ng/geom-resample": "^2.2.9",
46
+ "@thi.ng/math": "^5.4.5",
47
+ "@thi.ng/transducers": "^8.3.38",
48
+ "@thi.ng/vectors": "^7.6.8"
49
49
  },
50
50
  "devDependencies": {
51
- "@microsoft/api-extractor": "^7.34.2",
52
- "@thi.ng/testament": "^0.3.11",
53
- "rimraf": "^4.1.2",
51
+ "@microsoft/api-extractor": "^7.34.4",
52
+ "@thi.ng/testament": "^0.3.13",
53
+ "rimraf": "^4.4.0",
54
54
  "tools": "^0.0.1",
55
- "typedoc": "^0.23.24",
55
+ "typedoc": "^0.23.26",
56
56
  "typescript": "^4.9.5"
57
57
  },
58
58
  "keywords": [
@@ -127,5 +127,5 @@
127
127
  "status": "alpha",
128
128
  "year": 2022
129
129
  },
130
- "gitHead": "31dd56eba72edd73a3ced5002c0f5145ce3d42d6\n"
130
+ "gitHead": "cc46c097a3a173fb1ef41f57a858d03037063141\n"
131
131
  }