@thi.ng/geom-tessellate 3.0.69 → 3.0.73
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/package.json +126 -126
- package/CHANGELOG.md +0 -64
package/package.json
CHANGED
|
@@ -1,127 +1,127 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
2
|
+
"name": "@thi.ng/geom-tessellate",
|
|
3
|
+
"version": "3.0.73",
|
|
4
|
+
"description": "2D/3D convex polygon tessellators",
|
|
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-tessellate",
|
|
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
|
+
"tool:viz": "bun tools/visualize.ts"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@thi.ng/api": "^8.12.6",
|
|
44
|
+
"@thi.ng/checks": "^3.7.22",
|
|
45
|
+
"@thi.ng/geom-accel": "^4.1.66",
|
|
46
|
+
"@thi.ng/geom-isec": "^4.0.66",
|
|
47
|
+
"@thi.ng/geom-poly-utils": "^3.1.3",
|
|
48
|
+
"@thi.ng/math": "^5.13.3",
|
|
49
|
+
"@thi.ng/morton": "^3.1.128",
|
|
50
|
+
"@thi.ng/transducers": "^9.6.14",
|
|
51
|
+
"@thi.ng/vectors": "^8.6.10"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"esbuild": "^0.25.11",
|
|
55
|
+
"typedoc": "^0.28.14",
|
|
56
|
+
"typescript": "^5.9.3"
|
|
57
|
+
},
|
|
58
|
+
"keywords": [
|
|
59
|
+
"2d",
|
|
60
|
+
"3d",
|
|
61
|
+
"convex",
|
|
62
|
+
"geometry",
|
|
63
|
+
"polygon",
|
|
64
|
+
"recursion",
|
|
65
|
+
"shape",
|
|
66
|
+
"subdivision",
|
|
67
|
+
"tessellation",
|
|
68
|
+
"typescript"
|
|
69
|
+
],
|
|
70
|
+
"publishConfig": {
|
|
71
|
+
"access": "public"
|
|
72
|
+
},
|
|
73
|
+
"engines": {
|
|
74
|
+
"node": ">=18"
|
|
75
|
+
},
|
|
76
|
+
"files": [
|
|
77
|
+
"./*.js",
|
|
78
|
+
"./*.d.ts"
|
|
79
|
+
],
|
|
80
|
+
"exports": {
|
|
81
|
+
".": {
|
|
82
|
+
"default": "./index.js"
|
|
83
|
+
},
|
|
84
|
+
"./api": {
|
|
85
|
+
"default": "./api.js"
|
|
86
|
+
},
|
|
87
|
+
"./earcut-complex": {
|
|
88
|
+
"default": "./earcut-complex.js"
|
|
89
|
+
},
|
|
90
|
+
"./earcut": {
|
|
91
|
+
"default": "./earcut.js"
|
|
92
|
+
},
|
|
93
|
+
"./edge-split": {
|
|
94
|
+
"default": "./edge-split.js"
|
|
95
|
+
},
|
|
96
|
+
"./inset": {
|
|
97
|
+
"default": "./inset.js"
|
|
98
|
+
},
|
|
99
|
+
"./quad-fan": {
|
|
100
|
+
"default": "./quad-fan.js"
|
|
101
|
+
},
|
|
102
|
+
"./rim-tris": {
|
|
103
|
+
"default": "./rim-tris.js"
|
|
104
|
+
},
|
|
105
|
+
"./tessellate": {
|
|
106
|
+
"default": "./tessellate.js"
|
|
107
|
+
},
|
|
108
|
+
"./tessellation": {
|
|
109
|
+
"default": "./tessellation.js"
|
|
110
|
+
},
|
|
111
|
+
"./tri-fan-boundary": {
|
|
112
|
+
"default": "./tri-fan-boundary.js"
|
|
113
|
+
},
|
|
114
|
+
"./tri-fan-split": {
|
|
115
|
+
"default": "./tri-fan-split.js"
|
|
116
|
+
},
|
|
117
|
+
"./tri-fan": {
|
|
118
|
+
"default": "./tri-fan.js"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"thi.ng": {
|
|
122
|
+
"parent": "@thi.ng/geom",
|
|
123
|
+
"tag": "tessellation",
|
|
124
|
+
"year": 2013
|
|
125
|
+
},
|
|
126
|
+
"gitHead": "136a5e5ef0b69e82329db00d806c3c4e8f1aa063\n"
|
|
127
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,64 +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
|
-
# [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-tessellate@3.0.0) (2024-06-21)
|
|
15
|
-
|
|
16
|
-
#### 🛑 Breaking changes
|
|
17
|
-
|
|
18
|
-
- update/rewrite tessellate() & all tessellator impls ([97f1f66](https://github.com/thi-ng/umbrella/commit/97f1f66))
|
|
19
|
-
- BREAKING CHANGE: update tessellate() & all tessellator implementations
|
|
20
|
-
- `Tessellator`s now collect/append results to a `Tessellation` object, consisting of
|
|
21
|
-
a single point array and an array of face vertex IDs
|
|
22
|
-
- add `tessellatedPoints()` and `indexedPoints()` to produce face/point arrays from a result `Tessellation`
|
|
23
|
-
- remove again `edgeSplitWithThreshold()` & `triFanSplitWithThreshold()`,
|
|
24
|
-
to be replaced with a more general alternative approach
|
|
25
|
-
- migrate types from [@thi.ng/geom-api](https://github.com/thi-ng/umbrella/tree/main/packages/geom-api) ([72cff99](https://github.com/thi-ng/umbrella/commit/72cff99))
|
|
26
|
-
- BREAKING CHANGE: migrate/internalize types from [@thi.ng/geom-api](https://github.com/thi-ng/umbrella/tree/main/packages/geom-api)
|
|
27
|
-
- add/migrate Tessellator, Tessellation
|
|
28
|
-
- update imports
|
|
29
|
-
- update deps
|
|
30
|
-
- add/update tessellation types & handling ([c0fb454](https://github.com/thi-ng/umbrella/commit/c0fb454))
|
|
31
|
-
- BREAKING CHANGE: add `ITessellation` interface & impls, update tessellators & `tessellate()`
|
|
32
|
-
- rename/expand `Tessellation` => `ITessellation`
|
|
33
|
-
- add `BasicTessellation` class
|
|
34
|
-
- add `MeshTessellation` class
|
|
35
|
-
- update `Tessellator` signature/return type, now returning list of new faces only
|
|
36
|
-
- update all existing tessellators
|
|
37
|
-
- add `tessellateWith()`
|
|
38
|
-
- rename `tessellateQueue()` => `tessellateFaces()`
|
|
39
|
-
- update `tessellate()`, now only syntax sugar for `tessellateWith()`
|
|
40
|
-
- update `Tessellator` signature ([c2ec98b](https://github.com/thi-ng/umbrella/commit/c2ec98b))
|
|
41
|
-
- BREAKING CHANGE: update `Tessellator` signature, add array arg for collecting tessellated faces
|
|
42
|
-
- update `tessellateFaces()` to avoid concatenating
|
|
43
|
-
- update all tessellators
|
|
44
|
-
|
|
45
|
-
#### 🚀 Features
|
|
46
|
-
|
|
47
|
-
- add edgeSplitWithThreshold() tessellator ([91480c7](https://github.com/thi-ng/umbrella/commit/91480c7))
|
|
48
|
-
- add docstrings
|
|
49
|
-
- add triFanSplit/triFanSplitWithThreshold() tessellators ([417123c](https://github.com/thi-ng/umbrella/commit/417123c))
|
|
50
|
-
- add doc strings
|
|
51
|
-
- initial integration of earCutComplex ([307cb3d](https://github.com/thi-ng/umbrella/commit/307cb3d))
|
|
52
|
-
- add triFanBoundary() tessellator ([a8fc397](https://github.com/thi-ng/umbrella/commit/a8fc397))
|
|
53
|
-
|
|
54
|
-
#### ♻️ Refactoring
|
|
55
|
-
|
|
56
|
-
- update/simplify earCutComplex() internals, add docs ([0b479eb](https://github.com/thi-ng/umbrella/commit/0b479eb))
|
|
57
|
-
- enforce uniform naming convention of internal functions ([56992b2](https://github.com/thi-ng/umbrella/commit/56992b2))
|
|
58
|
-
- minor updates earCutComplex() ([a2d5ec4](https://github.com/thi-ng/umbrella/commit/a2d5ec4))
|
|
59
|
-
|
|
60
|
-
### [2.1.87](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-tessellate@2.1.87) (2023-11-09)
|
|
61
|
-
|
|
62
|
-
#### ♻️ Refactoring
|
|
63
|
-
|
|
64
|
-
- update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))
|