@thi.ng/geom-tessellate 3.0.91 → 3.0.92
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/README.md +40 -39
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
|
-
<!-- Please see: https://
|
|
3
|
-
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/geom-tessellate)
|
|
6
6
|

|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
10
|
> This is one of 214 standalone projects, maintained as part
|
|
11
|
-
> of the [@thi.ng/umbrella](https://
|
|
11
|
+
> of the [@thi.ng/umbrella](https://codeberg.org/thi.ng/umbrella/) ecosystem
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
14
|
-
> 🚀 Please help me to work full-time on these projects by [sponsoring
|
|
15
|
-
>
|
|
14
|
+
> 🚀 Please help me to work full-time on these projects by [sponsoring
|
|
15
|
+
> me](https://codeberg.org/thi.ng/umbrella/src/branch/develop/CONTRIBUTING.md#donations).
|
|
16
|
+
> Thank you! ❤️
|
|
16
17
|
|
|
17
18
|
- [About](#about)
|
|
18
19
|
- [Tessellators](#tessellators)
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
|
|
37
38
|
## About
|
|
38
39
|
|
|
39
|
-
2D/3D convex polygon tessellators. This is a support package for [@thi.ng/geom](https://
|
|
40
|
+
2D/3D convex polygon tessellators. This is a support package for [@thi.ng/geom](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom).
|
|
40
41
|
|
|
41
42
|
### Tessellators
|
|
42
43
|
|
|
@@ -48,13 +49,13 @@ triangle, square, hexagon and octagon.
|
|
|
48
49
|
|
|
49
50
|
#### Ear cut
|
|
50
51
|
|
|
51
|
-

|
|
52
53
|
|
|
53
|
-
- [earCut](https://
|
|
54
|
+
- [earCut](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom-tessellate/src/earcut.ts)
|
|
54
55
|
|
|
55
56
|
##### Complex polygons
|
|
56
57
|
|
|
57
|
-
- [earCutComplex](https://
|
|
58
|
+
- [earCutComplex](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom-tessellate/src/earcut-complex.ts)
|
|
58
59
|
|
|
59
60
|
Higher order tessellator for concave polygons and/or polygons with holes...
|
|
60
61
|
|
|
@@ -62,48 +63,48 @@ TODO add comments, credits & example
|
|
|
62
63
|
|
|
63
64
|
#### Edge split
|
|
64
65
|
|
|
65
|
-

|
|
66
67
|
|
|
67
|
-
- [edgeSplit](https://
|
|
68
|
+
- [edgeSplit](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom-tessellate/src/edge-split.ts)
|
|
68
69
|
|
|
69
70
|
#### Inset
|
|
70
71
|
|
|
71
|
-

|
|
72
73
|
|
|
73
|
-
- [inset](https://
|
|
74
|
+
- [inset](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom-tessellate/src/inset.ts)
|
|
74
75
|
|
|
75
76
|
Higher order tessellator with configurable inset distance (normalized) toward
|
|
76
77
|
centroid and option to keep center polygon (empty by default).
|
|
77
78
|
|
|
78
79
|
#### Quad fan
|
|
79
80
|
|
|
80
|
-

|
|
81
82
|
|
|
82
|
-
- [quadFan](https://
|
|
83
|
+
- [quadFan](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom-tessellate/src/quad-fan.ts)
|
|
83
84
|
|
|
84
85
|
#### Rim triangles
|
|
85
86
|
|
|
86
|
-

|
|
87
88
|
|
|
88
|
-
- [rimTris](https://
|
|
89
|
+
- [rimTris](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom-tessellate/src/rim-tris.ts)
|
|
89
90
|
|
|
90
91
|
#### Tri fan (with boundary point)
|
|
91
92
|
|
|
92
|
-

|
|
93
94
|
|
|
94
|
-
- [triFanBoundary](https://
|
|
95
|
+
- [triFanBoundary](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom-tessellate/src/tri-fan-boundary.ts)
|
|
95
96
|
|
|
96
97
|
#### Tri fan (with centroid)
|
|
97
98
|
|
|
98
|
-

|
|
99
100
|
|
|
100
|
-
- [triFan](https://
|
|
101
|
+
- [triFan](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom-tessellate/src/tri-fan.ts)
|
|
101
102
|
|
|
102
103
|
#### Tri fan (with edge splitting)
|
|
103
104
|
|
|
104
|
-

|
|
105
106
|
|
|
106
|
-
- [triFanSplit](https://
|
|
107
|
+
- [triFanSplit](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom-tessellate/src/tri-fan-split.ts)
|
|
107
108
|
|
|
108
109
|
### The `ITessellation` interface & implementation
|
|
109
110
|
|
|
@@ -125,7 +126,7 @@ Currently, there're two implementations available:
|
|
|
125
126
|
|
|
126
127
|
**STABLE** - used in production
|
|
127
128
|
|
|
128
|
-
[Search or submit any issues for this package](https://
|
|
129
|
+
[Search or submit any issues for this package](https://codeberg.org/thi.ng/umbrella/issues?q=%5Bgeom-tessellate%5D)
|
|
129
130
|
|
|
130
131
|
## Installation
|
|
131
132
|
|
|
@@ -157,29 +158,29 @@ Package sizes (brotli'd, pre-treeshake): ESM: 3.32 KB
|
|
|
157
158
|
|
|
158
159
|
## Dependencies
|
|
159
160
|
|
|
160
|
-
- [@thi.ng/api](https://
|
|
161
|
-
- [@thi.ng/checks](https://
|
|
162
|
-
- [@thi.ng/geom-accel](https://
|
|
163
|
-
- [@thi.ng/geom-isec](https://
|
|
164
|
-
- [@thi.ng/geom-poly-utils](https://
|
|
165
|
-
- [@thi.ng/math](https://
|
|
166
|
-
- [@thi.ng/morton](https://
|
|
167
|
-
- [@thi.ng/transducers](https://
|
|
168
|
-
- [@thi.ng/vectors](https://
|
|
161
|
+
- [@thi.ng/api](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/api)
|
|
162
|
+
- [@thi.ng/checks](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/checks)
|
|
163
|
+
- [@thi.ng/geom-accel](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom-accel)
|
|
164
|
+
- [@thi.ng/geom-isec](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom-isec)
|
|
165
|
+
- [@thi.ng/geom-poly-utils](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom-poly-utils)
|
|
166
|
+
- [@thi.ng/math](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/math)
|
|
167
|
+
- [@thi.ng/morton](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/morton)
|
|
168
|
+
- [@thi.ng/transducers](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/transducers)
|
|
169
|
+
- [@thi.ng/vectors](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/vectors)
|
|
169
170
|
|
|
170
171
|
Note: @thi.ng/api is in _most_ cases a type-only import (not used at runtime)
|
|
171
172
|
|
|
172
173
|
## Usage examples
|
|
173
174
|
|
|
174
175
|
Three projects in this repo's
|
|
175
|
-
[/examples](https://
|
|
176
|
+
[/examples](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples)
|
|
176
177
|
directory are using this package:
|
|
177
178
|
|
|
178
|
-
| Screenshot | Description | Live demo | Source
|
|
179
|
-
|
|
180
|
-
| <img src="https://
|
|
181
|
-
| <img src="https://
|
|
182
|
-
| <img src="https://
|
|
179
|
+
| Screenshot | Description | Live demo | Source |
|
|
180
|
+
|:----------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------|:-----------------------------------------------------|:------------------------------------------------------------------------------------------|
|
|
181
|
+
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/geom-hexgrid.png" width="240"/> | Hex grid generation & tessellations | [Demo](https://demo.thi.ng/umbrella/geom-hexgrid/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/geom-hexgrid) |
|
|
182
|
+
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/geom/tessel.png" width="240"/> | Animated, recursive polygon tessellations | [Demo](https://demo.thi.ng/umbrella/geom-tessel/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/geom-tessel) |
|
|
183
|
+
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/pointfree-geom.jpg" width="240"/> | Live coding playground for 2D geometry generation using @thi.ng/pointfree-lang | [Demo](https://demo.thi.ng/umbrella/pointfree-geom/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/pointfree-geom) |
|
|
183
184
|
|
|
184
185
|
## API
|
|
185
186
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/geom-tessellate",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.92",
|
|
4
4
|
"description": "2D/3D convex polygon tessellators",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://
|
|
11
|
+
"url": "git+https://codeberg.org/thi.ng/umbrella.git",
|
|
12
12
|
"directory": "packages/geom-tessellate"
|
|
13
13
|
},
|
|
14
14
|
"homepage": "https://thi.ng/geom-tessellate",
|
|
@@ -41,15 +41,15 @@
|
|
|
41
41
|
"tool:viz": "bun tools/visualize.ts"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@thi.ng/api": "^8.12.
|
|
45
|
-
"@thi.ng/checks": "^3.8.
|
|
46
|
-
"@thi.ng/geom-accel": "^4.1.
|
|
47
|
-
"@thi.ng/geom-isec": "^4.0.
|
|
48
|
-
"@thi.ng/geom-poly-utils": "^3.1.
|
|
49
|
-
"@thi.ng/math": "^5.15.
|
|
50
|
-
"@thi.ng/morton": "^3.1.
|
|
51
|
-
"@thi.ng/transducers": "^9.6.
|
|
52
|
-
"@thi.ng/vectors": "^8.6.
|
|
44
|
+
"@thi.ng/api": "^8.12.18",
|
|
45
|
+
"@thi.ng/checks": "^3.8.8",
|
|
46
|
+
"@thi.ng/geom-accel": "^4.1.85",
|
|
47
|
+
"@thi.ng/geom-isec": "^4.0.82",
|
|
48
|
+
"@thi.ng/geom-poly-utils": "^3.1.19",
|
|
49
|
+
"@thi.ng/math": "^5.15.7",
|
|
50
|
+
"@thi.ng/morton": "^3.1.141",
|
|
51
|
+
"@thi.ng/transducers": "^9.6.31",
|
|
52
|
+
"@thi.ng/vectors": "^8.6.26"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"esbuild": "^0.27.2",
|
|
@@ -124,5 +124,5 @@
|
|
|
124
124
|
"tag": "tessellation",
|
|
125
125
|
"year": 2013
|
|
126
126
|
},
|
|
127
|
-
"gitHead": "
|
|
127
|
+
"gitHead": "8ddf86ea0a1e658ddbf19cc645b29d0c176e29c4\n"
|
|
128
128
|
}
|