@thi.ng/geom-sdf 0.2.68 → 0.2.70
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 +7 -1
- package/README.md +14 -1
- package/as-sdf.js +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2023-
|
|
3
|
+
- **Last updated**: 2023-09-25T07:43:28Z
|
|
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.
|
|
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
### [0.2.69](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-sdf@0.2.69) (2023-09-25)
|
|
13
|
+
|
|
14
|
+
#### 🩹 Bug fixes
|
|
15
|
+
|
|
16
|
+
- internal __sdfAttribs handling ([a86c25e](https://github.com/thi-ng/umbrella/commit/a86c25e))
|
|
17
|
+
|
|
12
18
|
## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-sdf@0.2.0) (2022-06-23)
|
|
13
19
|
|
|
14
20
|
#### 🚀 Features
|
package/README.md
CHANGED
|
@@ -18,6 +18,7 @@ This project is part of the
|
|
|
18
18
|
- [Related packages](#related-packages)
|
|
19
19
|
- [Installation](#installation)
|
|
20
20
|
- [Dependencies](#dependencies)
|
|
21
|
+
- [Usage examples](#usage-examples)
|
|
21
22
|
- [API](#api)
|
|
22
23
|
- [Authors](#authors)
|
|
23
24
|
- [License](#license)
|
|
@@ -134,7 +135,7 @@ For Node.js REPL:
|
|
|
134
135
|
const geomSdf = await import("@thi.ng/geom-sdf");
|
|
135
136
|
```
|
|
136
137
|
|
|
137
|
-
Package sizes (brotli'd, pre-treeshake): ESM: 3.
|
|
138
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 3.53 KB
|
|
138
139
|
|
|
139
140
|
## Dependencies
|
|
140
141
|
|
|
@@ -151,6 +152,18 @@ Package sizes (brotli'd, pre-treeshake): ESM: 3.52 KB
|
|
|
151
152
|
- [@thi.ng/transducers](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers)
|
|
152
153
|
- [@thi.ng/vectors](https://github.com/thi-ng/umbrella/tree/develop/packages/vectors)
|
|
153
154
|
|
|
155
|
+
## Usage examples
|
|
156
|
+
|
|
157
|
+
Several demos in this repo's
|
|
158
|
+
[/examples](https://github.com/thi-ng/umbrella/tree/develop/examples)
|
|
159
|
+
directory are using this package.
|
|
160
|
+
|
|
161
|
+
A selection:
|
|
162
|
+
|
|
163
|
+
| Screenshot | Description | Live demo | Source |
|
|
164
|
+
|:---------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------|:----------------------------------------------------|:---------------------------------------------------------------------------------|
|
|
165
|
+
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/geom-sdf-logo.jpg" width="240"/> | (Re)Constructing the thi.ng logo using a 2D signed-distance field | [Demo](https://demo.thi.ng/umbrella/geom-sdf-logo/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/geom-sdf-logo) |
|
|
166
|
+
|
|
154
167
|
## API
|
|
155
168
|
|
|
156
169
|
[Generated API docs](https://docs.thi.ng/umbrella/geom-sdf/)
|
package/as-sdf.js
CHANGED
|
@@ -104,7 +104,7 @@ export const asSDF = defmulti(__dispatch, {
|
|
|
104
104
|
},
|
|
105
105
|
});
|
|
106
106
|
/** @internal */
|
|
107
|
-
const __sdfAttribs = (attribs) => attribs ? attribs.__sdf :
|
|
107
|
+
const __sdfAttribs = (attribs) => attribs ? attribs.__sdf : undefined;
|
|
108
108
|
const OPS = ["chamfer", "round", "smooth", "steps"];
|
|
109
109
|
const __validateAttribs = (attribs) => assert(OPS.filter((x) => attribs[x]).length < 2, "only 1 of these options can be used at once: chamfer, round, smooth");
|
|
110
110
|
const __selectCombineOp = (attribs, children, op, paramOps) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/geom-sdf",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.70",
|
|
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",
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
"@thi.ng/checks": "^3.4.5",
|
|
39
39
|
"@thi.ng/defmulti": "^3.0.0",
|
|
40
40
|
"@thi.ng/errors": "^2.3.5",
|
|
41
|
-
"@thi.ng/geom": "^5.2.
|
|
42
|
-
"@thi.ng/geom-api": "^3.4.
|
|
43
|
-
"@thi.ng/geom-isoline": "^2.1.
|
|
44
|
-
"@thi.ng/geom-poly-utils": "^2.3.
|
|
45
|
-
"@thi.ng/geom-resample": "^2.2.
|
|
41
|
+
"@thi.ng/geom": "^5.2.6",
|
|
42
|
+
"@thi.ng/geom-api": "^3.4.34",
|
|
43
|
+
"@thi.ng/geom-isoline": "^2.1.72",
|
|
44
|
+
"@thi.ng/geom-poly-utils": "^2.3.60",
|
|
45
|
+
"@thi.ng/geom-resample": "^2.2.34",
|
|
46
46
|
"@thi.ng/math": "^5.6.1",
|
|
47
|
-
"@thi.ng/transducers": "^8.7.
|
|
48
|
-
"@thi.ng/vectors": "^7.7.
|
|
47
|
+
"@thi.ng/transducers": "^8.7.2",
|
|
48
|
+
"@thi.ng/vectors": "^7.7.16"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@microsoft/api-extractor": "^7.36.4",
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
"status": "alpha",
|
|
128
128
|
"year": 2022
|
|
129
129
|
},
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "10d8b3725e96c5d704c759489a89f132892b181e\n"
|
|
131
131
|
}
|