@bendyline/molen-tooling 0.0.9 → 0.0.11
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/dist/capture/harness.js +261 -240
- package/dist/capture/worldgen-preview.js +309 -309
- package/dist/cli.mjs +6 -5
- package/dist/docs-src/guide/3d-model-assets.md +13 -0
- package/dist/docs-src/guide/adaptive-performance.md +5 -2
- package/dist/docs-src/guide/aircraft.md +113 -40
- package/dist/docs-src/guide/ambient-life.md +100 -11
- package/dist/docs-src/guide/audio.md +1 -1
- package/dist/docs-src/guide/boats.md +99 -0
- package/dist/docs-src/guide/determinism.md +1 -1
- package/dist/docs-src/guide/dioramas.md +167 -0
- package/dist/docs-src/guide/earth-view.md +241 -3
- package/dist/docs-src/guide/entities.md +32 -1
- package/dist/docs-src/guide/figures.md +7 -1
- package/dist/docs-src/guide/graphics-performance.md +16 -3
- package/dist/docs-src/guide/medium-fi.md +15 -6
- package/dist/docs-src/guide/regional-world.md +387 -0
- package/dist/docs-src/guide/sky.md +3 -2
- package/dist/docs-src/guide/surface-rendering.md +4 -1
- package/dist/docs-src/guide/vehicle-interiors.md +40 -2
- package/dist/docs-src/guide/vehicles.md +121 -19
- package/dist/docs-src/guide/weather.md +45 -3
- package/dist/docs-src/guide/worldgen.md +15 -1
- package/dist/docs-src/llms.txt +7 -4
- package/dist/docs-src/schemas/README.md +3 -0
- package/dist/docs-src/schemas/archstyle.md +144 -0
- package/dist/docs-src/schemas/components.md +1589 -137
- package/dist/docs-src/schemas/ecology-atlas.md +236 -0
- package/dist/docs-src/schemas/region-atlas.md +6 -0
- package/dist/docs-src/schemas/regional-catalog.md +1436 -0
- package/dist/docs-src/schemas/scatter.md +110 -4
- package/dist/docs-src/schemas/scene.md +6 -3
- package/dist/docs-src/schemas/terrain-package.md +41 -0
- package/dist/docs-src/schemas/transport-network.md +4 -2
- package/dist/docs-src/schemas/wildlife-ranges.md +251 -0
- package/dist/docs-src/schemas/worldgen-batch.md +21 -0
- package/dist/index.mjs +1 -1
- package/dist/{mcp-BbHk4ibu.mjs → mcp-BbxqqnD1.mjs} +3 -2
- package/dist/{ops-CErtZh2t.mjs → ops-b4Pag8U-.mjs} +7 -5
- package/dist/templates/city-courier/README.md +18 -0
- package/dist/templates/city-courier/gen/molen-types.ts +217 -15
- package/dist/templates/city-courier/index.html +1 -1
- package/dist/templates/city-courier/scripts/molen-scripts.d.ts +219 -17
- package/dist/templates/city-courier/src/audio.ts +26 -4
- package/dist/templates/city-courier/src/game-shell.css +7 -3
- package/dist/templates/city-courier/src/main.ts +25 -3
- package/dist/templates/city-courier/src/shared/accessibility.css +325 -0
- package/dist/templates/city-courier/src/shared/game-controls.ts +406 -0
- package/dist/templates/city-courier/src/shared/game-descriptions.ts +143 -0
- package/dist/templates/city-courier/src/shared/playback.ts +146 -0
- package/dist/templates/city-courier/src/worker.ts +5 -1
- package/dist/templates/cubes/index.html +6 -1
- package/dist/templates/cubes/src/main.ts +25 -2
- package/dist/templates/cubes/src/shared/accessibility.css +325 -0
- package/dist/templates/cubes/src/shared/playback.ts +146 -0
- package/dist/templates/cubes/src/vite-env.d.ts +1 -0
- package/dist/templates/cubes/src/worker.ts +1 -0
- package/dist/templates/data-viz/README.md +4 -0
- package/dist/templates/data-viz/index.html +6 -1
- package/dist/templates/data-viz/src/main.ts +53 -11
- package/dist/templates/data-viz/src/shared/accessibility.css +325 -0
- package/dist/templates/data-viz/src/shared/playback.ts +146 -0
- package/dist/templates/data-viz/src/vite-env.d.ts +1 -0
- package/dist/templates/data-viz/src/worker.ts +1 -0
- package/dist/templates/figures-gallery/index.html +6 -1
- package/dist/templates/figures-gallery/src/main.ts +21 -2
- package/dist/templates/figures-gallery/src/shared/accessibility.css +325 -0
- package/dist/templates/figures-gallery/src/shared/playback.ts +146 -0
- package/dist/templates/figures-gallery/src/vite-env.d.ts +1 -0
- package/dist/templates/figures-gallery/src/worker.ts +1 -0
- package/dist/templates/index.json +36 -16
- package/dist/templates/skybound/README.md +18 -0
- package/dist/templates/skybound/gen/molen-types.ts +217 -15
- package/dist/templates/skybound/index.html +1 -1
- package/dist/templates/skybound/scripts/molen-scripts.d.ts +219 -17
- package/dist/templates/skybound/src/audio.ts +26 -4
- package/dist/templates/skybound/src/game-shell.css +7 -3
- package/dist/templates/skybound/src/main.ts +25 -3
- package/dist/templates/skybound/src/shared/accessibility.css +325 -0
- package/dist/templates/skybound/src/shared/game-controls.ts +406 -0
- package/dist/templates/skybound/src/shared/game-descriptions.ts +143 -0
- package/dist/templates/skybound/src/shared/playback.ts +146 -0
- package/dist/templates/skybound/src/worker.ts +1 -1
- package/dist/templates/terrain-flyover/README.md +5 -1
- package/dist/templates/terrain-flyover/index.html +4 -1
- package/dist/templates/terrain-flyover/src/main.ts +40 -39
- package/dist/templates/top-down-arena/index.html +6 -1
- package/dist/templates/top-down-arena/scripts/molen-scripts.d.ts +219 -17
- package/dist/templates/top-down-arena/src/audio.ts +26 -4
- package/dist/templates/top-down-arena/src/gen/molen-types.ts +217 -15
- package/dist/templates/top-down-arena/src/main.ts +31 -5
- package/dist/templates/top-down-arena/src/shared/accessibility.css +325 -0
- package/dist/templates/top-down-arena/src/shared/playback.ts +146 -0
- package/dist/templates/top-down-arena/src/worker.ts +1 -1
- package/package.json +12 -12
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
# Ecological geography atlas (`molen/ecology-atlas@1`)
|
|
2
|
+
|
|
3
|
+
Compact global ecological geography with attributed source and run-length encoded rows.
|
|
4
|
+
|
|
5
|
+
## Example
|
|
6
|
+
|
|
7
|
+
```json
|
|
8
|
+
{
|
|
9
|
+
"format": "molen/ecology-atlas@1",
|
|
10
|
+
"id": "example.ecology",
|
|
11
|
+
"version": 1,
|
|
12
|
+
"title": "Coarse habitat geography",
|
|
13
|
+
"cellDegrees": 10,
|
|
14
|
+
"regions": [
|
|
15
|
+
{
|
|
16
|
+
"id": 1,
|
|
17
|
+
"name": "Example forest",
|
|
18
|
+
"biome": 4,
|
|
19
|
+
"realm": "Palearctic"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"rows": [
|
|
23
|
+
[
|
|
24
|
+
36,
|
|
25
|
+
0
|
|
26
|
+
],
|
|
27
|
+
[
|
|
28
|
+
36,
|
|
29
|
+
0
|
|
30
|
+
],
|
|
31
|
+
[
|
|
32
|
+
36,
|
|
33
|
+
0
|
|
34
|
+
],
|
|
35
|
+
[
|
|
36
|
+
36,
|
|
37
|
+
0
|
|
38
|
+
],
|
|
39
|
+
[
|
|
40
|
+
36,
|
|
41
|
+
1
|
|
42
|
+
],
|
|
43
|
+
[
|
|
44
|
+
36,
|
|
45
|
+
0
|
|
46
|
+
],
|
|
47
|
+
[
|
|
48
|
+
36,
|
|
49
|
+
0
|
|
50
|
+
],
|
|
51
|
+
[
|
|
52
|
+
36,
|
|
53
|
+
0
|
|
54
|
+
],
|
|
55
|
+
[
|
|
56
|
+
36,
|
|
57
|
+
0
|
|
58
|
+
],
|
|
59
|
+
[
|
|
60
|
+
36,
|
|
61
|
+
0
|
|
62
|
+
],
|
|
63
|
+
[
|
|
64
|
+
36,
|
|
65
|
+
0
|
|
66
|
+
],
|
|
67
|
+
[
|
|
68
|
+
36,
|
|
69
|
+
0
|
|
70
|
+
],
|
|
71
|
+
[
|
|
72
|
+
36,
|
|
73
|
+
0
|
|
74
|
+
],
|
|
75
|
+
[
|
|
76
|
+
36,
|
|
77
|
+
0
|
|
78
|
+
],
|
|
79
|
+
[
|
|
80
|
+
36,
|
|
81
|
+
0
|
|
82
|
+
],
|
|
83
|
+
[
|
|
84
|
+
36,
|
|
85
|
+
0
|
|
86
|
+
],
|
|
87
|
+
[
|
|
88
|
+
36,
|
|
89
|
+
0
|
|
90
|
+
],
|
|
91
|
+
[
|
|
92
|
+
36,
|
|
93
|
+
0
|
|
94
|
+
]
|
|
95
|
+
],
|
|
96
|
+
"source": {
|
|
97
|
+
"title": "Synthetic schema example",
|
|
98
|
+
"url": "https://example.com/ecology",
|
|
99
|
+
"license": "MIT",
|
|
100
|
+
"citation": "Molen schema example",
|
|
101
|
+
"sha256": "sha256:0000000000000000000000000000000000000000000000000000000000000000",
|
|
102
|
+
"interpretation": "Synthetic geography for format demonstration only."
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## JSON Schema
|
|
108
|
+
|
|
109
|
+
```json
|
|
110
|
+
{
|
|
111
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
112
|
+
"type": "object",
|
|
113
|
+
"properties": {
|
|
114
|
+
"format": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"const": "molen/ecology-atlas@1"
|
|
117
|
+
},
|
|
118
|
+
"id": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"
|
|
121
|
+
},
|
|
122
|
+
"version": {
|
|
123
|
+
"type": "integer",
|
|
124
|
+
"exclusiveMinimum": 0,
|
|
125
|
+
"maximum": 9007199254740991
|
|
126
|
+
},
|
|
127
|
+
"title": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"minLength": 1
|
|
130
|
+
},
|
|
131
|
+
"cellDegrees": {
|
|
132
|
+
"type": "number",
|
|
133
|
+
"minimum": 0.05,
|
|
134
|
+
"maximum": 10,
|
|
135
|
+
"description": "Global equal-angle cell size in degrees."
|
|
136
|
+
},
|
|
137
|
+
"regions": {
|
|
138
|
+
"maxItems": 65534,
|
|
139
|
+
"type": "array",
|
|
140
|
+
"items": {
|
|
141
|
+
"type": "object",
|
|
142
|
+
"properties": {
|
|
143
|
+
"id": {
|
|
144
|
+
"type": "integer",
|
|
145
|
+
"minimum": 0,
|
|
146
|
+
"maximum": 9007199254740991
|
|
147
|
+
},
|
|
148
|
+
"name": {
|
|
149
|
+
"type": "string",
|
|
150
|
+
"minLength": 1
|
|
151
|
+
},
|
|
152
|
+
"biome": {
|
|
153
|
+
"type": "integer",
|
|
154
|
+
"minimum": 0,
|
|
155
|
+
"maximum": 14
|
|
156
|
+
},
|
|
157
|
+
"realm": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"minLength": 1
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"required": [
|
|
163
|
+
"id",
|
|
164
|
+
"name",
|
|
165
|
+
"biome",
|
|
166
|
+
"realm"
|
|
167
|
+
],
|
|
168
|
+
"additionalProperties": false
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"rows": {
|
|
172
|
+
"maxItems": 3600,
|
|
173
|
+
"type": "array",
|
|
174
|
+
"items": {
|
|
175
|
+
"maxItems": 14400,
|
|
176
|
+
"type": "array",
|
|
177
|
+
"items": {
|
|
178
|
+
"type": "integer",
|
|
179
|
+
"minimum": 0,
|
|
180
|
+
"maximum": 9007199254740991
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"description": "North-to-south rows: alternating run length and 1-based region index; 0 is uncovered."
|
|
184
|
+
},
|
|
185
|
+
"source": {
|
|
186
|
+
"type": "object",
|
|
187
|
+
"properties": {
|
|
188
|
+
"title": {
|
|
189
|
+
"type": "string",
|
|
190
|
+
"minLength": 1
|
|
191
|
+
},
|
|
192
|
+
"url": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"format": "uri"
|
|
195
|
+
},
|
|
196
|
+
"license": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"minLength": 1
|
|
199
|
+
},
|
|
200
|
+
"citation": {
|
|
201
|
+
"type": "string",
|
|
202
|
+
"minLength": 1
|
|
203
|
+
},
|
|
204
|
+
"sha256": {
|
|
205
|
+
"type": "string",
|
|
206
|
+
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
207
|
+
},
|
|
208
|
+
"interpretation": {
|
|
209
|
+
"type": "string",
|
|
210
|
+
"minLength": 1
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"required": [
|
|
214
|
+
"title",
|
|
215
|
+
"url",
|
|
216
|
+
"license",
|
|
217
|
+
"citation",
|
|
218
|
+
"sha256",
|
|
219
|
+
"interpretation"
|
|
220
|
+
],
|
|
221
|
+
"additionalProperties": false
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"required": [
|
|
225
|
+
"format",
|
|
226
|
+
"id",
|
|
227
|
+
"version",
|
|
228
|
+
"title",
|
|
229
|
+
"cellDegrees",
|
|
230
|
+
"regions",
|
|
231
|
+
"rows",
|
|
232
|
+
"source"
|
|
233
|
+
],
|
|
234
|
+
"additionalProperties": false
|
|
235
|
+
}
|
|
236
|
+
```
|
|
@@ -172,6 +172,12 @@ Binds archstyles and scatter rule sets to places on Earth: prioritized lon/lat r
|
|
|
172
172
|
"maximum": 9007199254740991,
|
|
173
173
|
"description": "Bump when bindings change on purpose."
|
|
174
174
|
},
|
|
175
|
+
"fallbackDistanceMeters": {
|
|
176
|
+
"type": "number",
|
|
177
|
+
"minimum": 0,
|
|
178
|
+
"maximum": 5000,
|
|
179
|
+
"description": "Optional nearest-outline fallback in local world meters, used only when no region contains the point. Compensates for coarse coastlines; default 0."
|
|
180
|
+
},
|
|
175
181
|
"regions": {
|
|
176
182
|
"default": [],
|
|
177
183
|
"type": "array",
|