@thi.ng/geom-sdf 1.0.53 → 1.0.58

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 (2) hide show
  1. package/package.json +133 -133
  2. package/CHANGELOG.md +0 -97
package/package.json CHANGED
@@ -1,134 +1,134 @@
1
1
  {
2
- "name": "@thi.ng/geom-sdf",
3
- "version": "1.0.53",
4
- "description": "2D Signed Distance Field creation from @thi.ng/geom shapes, conversions, sampling, combinators",
5
- "type": "module",
6
- "module": "./index.js",
7
- "typings": "./index.d.ts",
8
- "sideEffects": false,
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/thi-ng/umbrella.git"
12
- },
13
- "homepage": "https://thi.ng/geom-sdf",
14
- "funding": [
15
- {
16
- "type": "github",
17
- "url": "https://github.com/sponsors/postspectacular"
18
- },
19
- {
20
- "type": "patreon",
21
- "url": "https://patreon.com/thing_umbrella"
22
- },
23
- {
24
- "type": "liberapay",
25
- "url": "https://liberapay.com/thi.ng"
26
- }
27
- ],
28
- "author": "Karsten Schmidt (https://thi.ng)",
29
- "license": "Apache-2.0",
30
- "scripts": {
31
- "build": "yarn build:esbuild && yarn build:decl",
32
- "build:decl": "tsc --declaration --emitDeclarationOnly",
33
- "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
- "clean": "bun ../../tools/src/clean-package.ts",
35
- "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
- "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
- "pub": "yarn npm publish --access public",
38
- "test": "bun test",
39
- "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
- },
41
- "dependencies": {
42
- "@thi.ng/api": "^8.12.2",
43
- "@thi.ng/checks": "^3.7.18",
44
- "@thi.ng/defmulti": "^3.0.78",
45
- "@thi.ng/errors": "^2.5.42",
46
- "@thi.ng/geom": "^8.2.14",
47
- "@thi.ng/geom-isoline": "^2.1.196",
48
- "@thi.ng/geom-poly-utils": "^3.0.62",
49
- "@thi.ng/geom-resample": "^3.0.62",
50
- "@thi.ng/math": "^5.12.0",
51
- "@thi.ng/transducers": "^9.6.10",
52
- "@thi.ng/vectors": "^8.6.6"
53
- },
54
- "devDependencies": {
55
- "esbuild": "^0.25.9",
56
- "typedoc": "^0.28.12",
57
- "typescript": "^5.9.2"
58
- },
59
- "keywords": [
60
- "2d",
61
- "arc",
62
- "bezier",
63
- "circle",
64
- "conversion",
65
- "distance",
66
- "field",
67
- "geometry",
68
- "line",
69
- "rect",
70
- "sdf",
71
- "shape",
72
- "typescript"
73
- ],
74
- "publishConfig": {
75
- "access": "public"
76
- },
77
- "browser": {
78
- "process": false,
79
- "setTimeout": false
80
- },
81
- "engines": {
82
- "node": ">=18"
83
- },
84
- "files": [
85
- "./*.js",
86
- "./*.d.ts"
87
- ],
88
- "exports": {
89
- ".": {
90
- "default": "./index.js"
91
- },
92
- "./api": {
93
- "default": "./api.js"
94
- },
95
- "./as-polygons": {
96
- "default": "./as-polygons.js"
97
- },
98
- "./as-sdf": {
99
- "default": "./as-sdf.js"
100
- },
101
- "./bounds": {
102
- "default": "./bounds.js"
103
- },
104
- "./dist": {
105
- "default": "./dist.js"
106
- },
107
- "./domain": {
108
- "default": "./domain.js"
109
- },
110
- "./ops": {
111
- "default": "./ops.js"
112
- },
113
- "./sample": {
114
- "default": "./sample.js"
115
- },
116
- "./shapes": {
117
- "default": "./shapes.js"
118
- }
119
- },
120
- "thi.ng": {
121
- "alias": "sdf",
122
- "parent": "@thi.ng/geom",
123
- "related": [
124
- "distance-transform",
125
- "geom-isoline",
126
- "pixel",
127
- "shader-ast-stdlib"
128
- ],
129
- "status": "alpha",
130
- "tag": "sdf",
131
- "year": 2022
132
- },
133
- "gitHead": "fbf4b46ba8a5ecff8c5423f4c2d158d208d20fc8\n"
134
- }
2
+ "name": "@thi.ng/geom-sdf",
3
+ "version": "1.0.58",
4
+ "description": "2D Signed Distance Field creation from @thi.ng/geom shapes, conversions, sampling, combinators",
5
+ "type": "module",
6
+ "module": "./index.js",
7
+ "typings": "./index.d.ts",
8
+ "sideEffects": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/thi-ng/umbrella.git"
12
+ },
13
+ "homepage": "https://thi.ng/geom-sdf",
14
+ "funding": [
15
+ {
16
+ "type": "github",
17
+ "url": "https://github.com/sponsors/postspectacular"
18
+ },
19
+ {
20
+ "type": "patreon",
21
+ "url": "https://patreon.com/thing_umbrella"
22
+ },
23
+ {
24
+ "type": "liberapay",
25
+ "url": "https://liberapay.com/thi.ng"
26
+ }
27
+ ],
28
+ "author": "Karsten Schmidt (https://thi.ng)",
29
+ "license": "Apache-2.0",
30
+ "scripts": {
31
+ "build": "yarn build:esbuild && yarn build:decl",
32
+ "build:decl": "tsc --declaration --emitDeclarationOnly",
33
+ "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
+ "clean": "bun ../../tools/src/clean-package.ts",
35
+ "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
+ "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
+ "pub": "npm publish --access public",
38
+ "test": "bun test",
39
+ "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
+ },
41
+ "dependencies": {
42
+ "@thi.ng/api": "^8.12.7",
43
+ "@thi.ng/checks": "^3.7.23",
44
+ "@thi.ng/defmulti": "^3.0.83",
45
+ "@thi.ng/errors": "^2.5.47",
46
+ "@thi.ng/geom": "^8.3.4",
47
+ "@thi.ng/geom-isoline": "^2.1.201",
48
+ "@thi.ng/geom-poly-utils": "^3.1.4",
49
+ "@thi.ng/geom-resample": "^3.0.67",
50
+ "@thi.ng/math": "^5.13.4",
51
+ "@thi.ng/transducers": "^9.6.15",
52
+ "@thi.ng/vectors": "^8.6.11"
53
+ },
54
+ "devDependencies": {
55
+ "esbuild": "^0.25.11",
56
+ "typedoc": "^0.28.14",
57
+ "typescript": "^5.9.3"
58
+ },
59
+ "keywords": [
60
+ "2d",
61
+ "arc",
62
+ "bezier",
63
+ "circle",
64
+ "conversion",
65
+ "distance",
66
+ "field",
67
+ "geometry",
68
+ "line",
69
+ "rect",
70
+ "sdf",
71
+ "shape",
72
+ "typescript"
73
+ ],
74
+ "publishConfig": {
75
+ "access": "public"
76
+ },
77
+ "browser": {
78
+ "process": false,
79
+ "setTimeout": false
80
+ },
81
+ "engines": {
82
+ "node": ">=18"
83
+ },
84
+ "files": [
85
+ "./*.js",
86
+ "./*.d.ts"
87
+ ],
88
+ "exports": {
89
+ ".": {
90
+ "default": "./index.js"
91
+ },
92
+ "./api": {
93
+ "default": "./api.js"
94
+ },
95
+ "./as-polygons": {
96
+ "default": "./as-polygons.js"
97
+ },
98
+ "./as-sdf": {
99
+ "default": "./as-sdf.js"
100
+ },
101
+ "./bounds": {
102
+ "default": "./bounds.js"
103
+ },
104
+ "./dist": {
105
+ "default": "./dist.js"
106
+ },
107
+ "./domain": {
108
+ "default": "./domain.js"
109
+ },
110
+ "./ops": {
111
+ "default": "./ops.js"
112
+ },
113
+ "./sample": {
114
+ "default": "./sample.js"
115
+ },
116
+ "./shapes": {
117
+ "default": "./shapes.js"
118
+ }
119
+ },
120
+ "thi.ng": {
121
+ "alias": "sdf",
122
+ "parent": "@thi.ng/geom",
123
+ "related": [
124
+ "distance-transform",
125
+ "geom-isoline",
126
+ "pixel",
127
+ "shader-ast-stdlib"
128
+ ],
129
+ "status": "alpha",
130
+ "tag": "sdf",
131
+ "year": 2022
132
+ },
133
+ "gitHead": "d977f819bcafdcb2b24c45f8d01a167fe29fc85a\n"
134
+ }
package/CHANGELOG.md DELETED
@@ -1,97 +0,0 @@
1
- # Change Log
2
-
3
- - **Last updated**: 2025-09-01T16:38:35Z
4
- - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
-
6
- All notable changes to this project will be documented in this file.
7
- Only versions published since **2022-01-01** are listed here.
8
- Please consult the Git history for older version information.
9
- See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
10
-
11
- **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
12
- and/or version bumps of transitive dependencies.
13
-
14
- ### [1.0.15](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-sdf@1.0.15) (2025-03-10)
15
-
16
- #### 🩹 Bug fixes
17
-
18
- - update return types (TS5.8.2) ([541db4c](https://github.com/thi-ng/umbrella/commit/541db4c))
19
-
20
- ### [0.4.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-sdf@0.4.2) (2024-06-21)
21
-
22
- #### ♻️ Refactoring
23
-
24
- - remove geom-api dep, update imports ([9b6464d](https://github.com/thi-ng/umbrella/commit/9b6464d))
25
- - enforce uniform naming convention of internal functions ([56992b2](https://github.com/thi-ng/umbrella/commit/56992b2))
26
-
27
- ## [0.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-sdf@0.4.0) (2024-05-08)
28
-
29
- #### 🚀 Features
30
-
31
- - add rdom-klist example project, update readmes ([cd458ac](https://github.com/thi-ng/umbrella/commit/cd458ac))
32
- - add rdom-klist example project, update readmes ([531437f](https://github.com/thi-ng/umbrella/commit/531437f))
33
- - support path & complexpoly sub-shapes in asSDF() ([e924dc2](https://github.com/thi-ng/umbrella/commit/e924dc2))
34
-
35
- #### ♻️ Refactoring
36
-
37
- - update internal polyline handling ([f758425](https://github.com/thi-ng/umbrella/commit/f758425))
38
- - add/update asSDF() impls for ComplexPoly & Path ([3337a0e](https://github.com/thi-ng/umbrella/commit/3337a0e))
39
- - update docs
40
-
41
- ## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-sdf@0.3.0) (2024-01-23)
42
-
43
- #### 🚀 Features
44
-
45
- - update SDFAttribs/SDFModifiers ([e1e51ff](https://github.com/thi-ng/umbrella/commit/e1e51ff))
46
- - extract/update SDFModifiers
47
- - add min/max/clamp() mods
48
- - add withSDFModifiers()
49
- - update withSDFAttribs()
50
- - add/update docstrings
51
-
52
- ### [0.2.81](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-sdf@0.2.81) (2023-11-09)
53
-
54
- #### ♻️ Refactoring
55
-
56
- - update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))
57
-
58
- ### [0.2.69](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-sdf@0.2.69) (2023-09-25)
59
-
60
- #### 🩹 Bug fixes
61
-
62
- - internal __sdfAttribs handling ([a86c25e](https://github.com/thi-ng/umbrella/commit/a86c25e))
63
-
64
- ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-sdf@0.2.0) (2022-06-23)
65
-
66
- #### 🚀 Features
67
-
68
- - add bounds pre-checks, update SDFAttribs, ops ([ddf0a6e](https://github.com/thi-ng/umbrella/commit/ddf0a6e))
69
- - update `SDFn` signature, add opt. min dist param
70
- - add `withBoundingCircle/Rect()` SDF wrappers
71
- - update shape fns (points2, polygon2, polyline2)
72
- - update SDF combinators (union, isec, diff etc.)
73
- - update `asSDF()` group impl
74
- - update `SDFAttribs`, allow `round` & `smooth` opts to be field based
75
- - add docstrings
76
- - major update: combinators, modifiers, shape support ([4ffbc86](https://github.com/thi-ng/umbrella/commit/4ffbc86))
77
- - support more shapes (and conversions) in asSDF()
78
- - update/extend SDFAttribs
79
- - add new SDF combinators (chamfer, round, step)
80
- - add higher order combinators defOp(), defParamOp()
81
- - add support for combinator params to be spatial
82
- - update asSDF() to support more shape types and auto-convert to poly/line
83
- - add domain modifiers, update `sample2d()` to support domain mods
84
- - update various distance functions (incl. uniform arg order, minimize allocs)
85
- - add docstrings
86
-
87
- ### [0.1.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-sdf@0.1.1) (2022-06-20)
88
-
89
- #### 🩹 Bug fixes
90
-
91
- - fix rect size handling ([cc72bab](https://github.com/thi-ng/umbrella/commit/cc72bab))
92
-
93
- ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-sdf@0.1.0) (2022-06-20)
94
-
95
- #### 🚀 Features
96
-
97
- - import as new pkg ([06dcca2](https://github.com/thi-ng/umbrella/commit/06dcca2))