@bendyline/molen-tooling 0.0.10 → 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.
@@ -291,6 +291,73 @@ Label-keyed deterministic prop placement (density, clustering, slope and clearan
291
291
  "minimum": 0,
292
292
  "description": "Minimum spacing hint in meters."
293
293
  },
294
+ "rows": {
295
+ "type": "object",
296
+ "properties": {
297
+ "headland": {
298
+ "type": "number",
299
+ "minimum": 0,
300
+ "maximum": 30
301
+ },
302
+ "spacing": {
303
+ "type": "number",
304
+ "minimum": 0.5,
305
+ "maximum": 100,
306
+ "description": "Distance between cultivation rows, meters."
307
+ },
308
+ "interval": {
309
+ "type": "number",
310
+ "minimum": 0.5,
311
+ "maximum": 100,
312
+ "description": "Distance between plants along a row, meters."
313
+ },
314
+ "angle": {
315
+ "default": 0,
316
+ "type": "number",
317
+ "minimum": 0,
318
+ "maximum": 180,
319
+ "description": "Grid rotation in degrees from world X."
320
+ },
321
+ "jitter": {
322
+ "default": 0.04,
323
+ "type": "number",
324
+ "minimum": 0,
325
+ "maximum": 0.2,
326
+ "description": "Fractional cell jitter; 0 gives exact rows."
327
+ }
328
+ },
329
+ "required": [
330
+ "spacing",
331
+ "interval"
332
+ ],
333
+ "additionalProperties": false,
334
+ "description": "Optional world-anchored cultivation grid. Density may thin it, but cannot overfill it."
335
+ },
336
+ "nearWater": {
337
+ "type": "object",
338
+ "properties": {
339
+ "maxDistance": {
340
+ "type": "number",
341
+ "exclusiveMinimum": 0,
342
+ "maximum": 500,
343
+ "description": "Maximum horizontal distance from mapped water edges, meters."
344
+ },
345
+ "classes": {
346
+ "minItems": 1,
347
+ "type": "array",
348
+ "items": {
349
+ "type": "string",
350
+ "minLength": 1
351
+ },
352
+ "description": "Optional water labels; omitted accepts any mapped water."
353
+ }
354
+ },
355
+ "required": [
356
+ "maxDistance"
357
+ ],
358
+ "additionalProperties": false,
359
+ "description": "Require mapped water nearby, at the exclusion raster resolution. Water itself remains excluded."
360
+ },
294
361
  "clustering": {
295
362
  "type": "object",
296
363
  "properties": {
@@ -318,6 +385,17 @@ Label-keyed deterministic prop placement (density, clustering, slope and clearan
318
385
  "minimum": -9007199254740991,
319
386
  "maximum": 9007199254740991,
320
387
  "description": "Decorrelates rules sharing a class."
388
+ },
389
+ "sharedSeed": {
390
+ "type": "integer",
391
+ "minimum": -9007199254740991,
392
+ "maximum": 9007199254740991,
393
+ "description": "Shared density field across layers; does not change placement seeds."
394
+ },
395
+ "detailScale": {
396
+ "type": "number",
397
+ "exclusiveMinimum": 0,
398
+ "description": "Wavelength of smaller clumps inside density patches, meters."
321
399
  }
322
400
  },
323
401
  "required": [
@@ -331,9 +409,11 @@ Label-keyed deterministic prop placement (density, clustering, slope and clearan
331
409
  "type": "string",
332
410
  "enum": [
333
411
  "canopy",
334
- "groundcover"
412
+ "understory",
413
+ "groundcover",
414
+ "agriculture"
335
415
  ],
336
- "description": "Budget pool: canopy (trees, shrubs, rocks) shares the batch instance and model caps; groundcover (knee-high near detail such as tussocks and ferns) has its own, so it never thins the canopy."
416
+ "description": "Budget pool: canopy uses the batch instance and model caps; understory (shrubs and thickets) and groundcover (low patches) have independent caps and never thin canopy trees."
337
417
  },
338
418
  "slopeMax": {
339
419
  "type": "number",
@@ -391,6 +471,31 @@ Label-keyed deterministic prop placement (density, clustering, slope and clearan
391
471
  "maximum": 1000,
392
472
  "description": "Relative weight among sibling entries; 0 disables the entry."
393
473
  },
474
+ "variants": {
475
+ "minItems": 1,
476
+ "maxItems": 16,
477
+ "type": "array",
478
+ "items": {
479
+ "type": "object",
480
+ "properties": {
481
+ "model": {
482
+ "type": "string",
483
+ "pattern": "^(builtin:[a-z][a-z0-9_.]*|[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+)$"
484
+ },
485
+ "weight": {
486
+ "type": "number",
487
+ "exclusiveMinimum": 0,
488
+ "maximum": 1000
489
+ }
490
+ },
491
+ "required": [
492
+ "model",
493
+ "weight"
494
+ ],
495
+ "additionalProperties": false
496
+ },
497
+ "description": "Interchangeable model forms sampled independently of species. Unretained forms fall back to model under the model budget; all must share habitat and scale bounds."
498
+ },
394
499
  "scale": {
395
500
  "type": "object",
396
501
  "properties": {
@@ -432,9 +537,10 @@ Label-keyed deterministic prop placement (density, clustering, slope and clearan
432
537
  "type": "string",
433
538
  "enum": [
434
539
  "random",
435
- "none"
540
+ "none",
541
+ "rows"
436
542
  ],
437
- "description": "Random heading or fixed."
543
+ "description": "Random, fixed, or aligned with cultivation rows."
438
544
  },
439
545
  "align": {
440
546
  "default": "up",
@@ -128,6 +128,47 @@ Installable tiled-world package: coordinate space, elevation, optional semantic
128
128
  "minLength": 1,
129
129
  "description": "Package name."
130
130
  },
131
+ "agriculture": {
132
+ "type": "object",
133
+ "properties": {
134
+ "urlTemplate": {
135
+ "type": "string",
136
+ "minLength": 1,
137
+ "description": "Versioned agricultural JSON tile URL, relative to this package or absolute; {z}/{x}/{y} placeholders."
138
+ },
139
+ "level": {
140
+ "type": "integer",
141
+ "minimum": 0,
142
+ "maximum": 20,
143
+ "description": "Single stored XYZ level; finer views use the corresponding parent grid."
144
+ },
145
+ "source": {
146
+ "type": "string",
147
+ "minLength": 1,
148
+ "description": "Pinned dataset identity, checked against every tile."
149
+ },
150
+ "year": {
151
+ "type": "integer",
152
+ "minimum": 1900,
153
+ "maximum": 2200,
154
+ "description": "Observation year, not the current growing season."
155
+ },
156
+ "maxTileBytes": {
157
+ "type": "integer",
158
+ "minimum": 1024,
159
+ "maximum": 1048576,
160
+ "description": "Uncompressed download bound; default 131072 bytes."
161
+ }
162
+ },
163
+ "required": [
164
+ "urlTemplate",
165
+ "level",
166
+ "source",
167
+ "year"
168
+ ],
169
+ "additionalProperties": false,
170
+ "description": "Optional global or regional agricultural retrieval dataset; missing tiles retain basemap/fallback crops. Include its license in attribution."
171
+ },
131
172
  "version": {
132
173
  "type": "string",
133
174
  "minLength": 1,
@@ -0,0 +1,251 @@
1
+ # Wildlife country range limits (`molen/wildlife-ranges@1`)
2
+
3
+ Attributed coarse country membership for supported taxa. Combine with ecology and mapped habitat; not occurrence data.
4
+
5
+ ## Example
6
+
7
+ ```json
8
+ {
9
+ "format": "molen/wildlife-ranges@1",
10
+ "id": "example.ranges",
11
+ "version": 1,
12
+ "title": "Range example",
13
+ "cellDegrees": 10,
14
+ "countries": [],
15
+ "rows": [
16
+ [
17
+ 36,
18
+ 0
19
+ ],
20
+ [
21
+ 36,
22
+ 0
23
+ ],
24
+ [
25
+ 36,
26
+ 0
27
+ ],
28
+ [
29
+ 36,
30
+ 0
31
+ ],
32
+ [
33
+ 36,
34
+ 0
35
+ ],
36
+ [
37
+ 36,
38
+ 0
39
+ ],
40
+ [
41
+ 36,
42
+ 0
43
+ ],
44
+ [
45
+ 36,
46
+ 0
47
+ ],
48
+ [
49
+ 36,
50
+ 0
51
+ ],
52
+ [
53
+ 36,
54
+ 0
55
+ ],
56
+ [
57
+ 36,
58
+ 0
59
+ ],
60
+ [
61
+ 36,
62
+ 0
63
+ ],
64
+ [
65
+ 36,
66
+ 0
67
+ ],
68
+ [
69
+ 36,
70
+ 0
71
+ ],
72
+ [
73
+ 36,
74
+ 0
75
+ ],
76
+ [
77
+ 36,
78
+ 0
79
+ ],
80
+ [
81
+ 36,
82
+ 0
83
+ ],
84
+ [
85
+ 36,
86
+ 0
87
+ ]
88
+ ],
89
+ "taxa": [],
90
+ "sources": [
91
+ {
92
+ "title": "Example source",
93
+ "url": "https://example.com",
94
+ "license": "CC0-1.0",
95
+ "sha256": "sha256:0000000000000000000000000000000000000000000000000000000000000000",
96
+ "interpretation": "Example only."
97
+ }
98
+ ]
99
+ }
100
+ ```
101
+
102
+ ## JSON Schema
103
+
104
+ ```json
105
+ {
106
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
107
+ "type": "object",
108
+ "properties": {
109
+ "format": {
110
+ "type": "string",
111
+ "const": "molen/wildlife-ranges@1"
112
+ },
113
+ "id": {
114
+ "type": "string",
115
+ "minLength": 1
116
+ },
117
+ "version": {
118
+ "type": "integer",
119
+ "exclusiveMinimum": 0,
120
+ "maximum": 9007199254740991
121
+ },
122
+ "title": {
123
+ "type": "string",
124
+ "minLength": 1
125
+ },
126
+ "cellDegrees": {
127
+ "type": "number",
128
+ "minimum": 0.05,
129
+ "maximum": 10
130
+ },
131
+ "countries": {
132
+ "maxItems": 65534,
133
+ "type": "array",
134
+ "items": {
135
+ "type": "object",
136
+ "properties": {
137
+ "code": {
138
+ "type": "string",
139
+ "minLength": 2,
140
+ "maxLength": 3
141
+ },
142
+ "name": {
143
+ "type": "string",
144
+ "minLength": 1
145
+ }
146
+ },
147
+ "required": [
148
+ "code",
149
+ "name"
150
+ ],
151
+ "additionalProperties": false
152
+ }
153
+ },
154
+ "rows": {
155
+ "type": "array",
156
+ "items": {
157
+ "type": "array",
158
+ "items": {
159
+ "type": "integer",
160
+ "minimum": 0,
161
+ "maximum": 9007199254740991
162
+ }
163
+ }
164
+ },
165
+ "taxa": {
166
+ "type": "array",
167
+ "items": {
168
+ "type": "object",
169
+ "properties": {
170
+ "id": {
171
+ "type": "string",
172
+ "minLength": 1
173
+ },
174
+ "sourceId": {
175
+ "type": "string",
176
+ "minLength": 1
177
+ },
178
+ "name": {
179
+ "type": "string",
180
+ "minLength": 1
181
+ },
182
+ "countries": {
183
+ "type": "array",
184
+ "items": {
185
+ "type": "string",
186
+ "minLength": 2,
187
+ "maxLength": 3
188
+ }
189
+ }
190
+ },
191
+ "required": [
192
+ "id",
193
+ "sourceId",
194
+ "name",
195
+ "countries"
196
+ ],
197
+ "additionalProperties": false
198
+ }
199
+ },
200
+ "sources": {
201
+ "minItems": 1,
202
+ "type": "array",
203
+ "items": {
204
+ "type": "object",
205
+ "properties": {
206
+ "title": {
207
+ "type": "string",
208
+ "minLength": 1
209
+ },
210
+ "url": {
211
+ "type": "string",
212
+ "format": "uri"
213
+ },
214
+ "license": {
215
+ "type": "string",
216
+ "minLength": 1
217
+ },
218
+ "sha256": {
219
+ "type": "string",
220
+ "pattern": "^sha256:[a-f0-9]{64}$"
221
+ },
222
+ "interpretation": {
223
+ "type": "string",
224
+ "minLength": 1
225
+ }
226
+ },
227
+ "required": [
228
+ "title",
229
+ "url",
230
+ "license",
231
+ "sha256",
232
+ "interpretation"
233
+ ],
234
+ "additionalProperties": false
235
+ }
236
+ }
237
+ },
238
+ "required": [
239
+ "format",
240
+ "id",
241
+ "version",
242
+ "title",
243
+ "cellDegrees",
244
+ "countries",
245
+ "rows",
246
+ "taxa",
247
+ "sources"
248
+ ],
249
+ "additionalProperties": false
250
+ }
251
+ ```
@@ -408,6 +408,23 @@ A serialized generation request: labeled building outlines, optional labeled pol
408
408
  },
409
409
  "description": "Open ring of [x, z] points (no repeated closing point)."
410
410
  },
411
+ "holes": {
412
+ "type": "array",
413
+ "items": {
414
+ "minItems": 3,
415
+ "type": "array",
416
+ "items": {
417
+ "minItems": 2,
418
+ "maxItems": 2,
419
+ "type": "array",
420
+ "items": {
421
+ "type": "number"
422
+ },
423
+ "description": "[x, z] in local meters."
424
+ },
425
+ "description": "Open ring of [x, z] points (no repeated closing point)."
426
+ }
427
+ },
411
428
  "polyline": {
412
429
  "minItems": 2,
413
430
  "type": "array",
@@ -421,6 +438,10 @@ A serialized generation request: labeled building outlines, optional labeled pol
421
438
  "description": "[x, z] in local meters."
422
439
  }
423
440
  },
441
+ "label": {
442
+ "type": "string",
443
+ "minLength": 1
444
+ },
424
445
  "width": {
425
446
  "type": "number",
426
447
  "minimum": 0,
@@ -208,11 +208,11 @@
208
208
  }
209
209
  ],
210
210
  "versions": {
211
- "@bendyline/molen-ambient": "0.0.10",
211
+ "@bendyline/molen-ambient": "0.0.11",
212
212
  "@bendyline/molen-client": "0.0.9",
213
213
  "@bendyline/molen-dioramas": "0.0.2",
214
- "@bendyline/molen-earth": "0.0.10",
215
- "@bendyline/molen-entities": "0.0.9",
214
+ "@bendyline/molen-earth": "0.0.11",
215
+ "@bendyline/molen-entities": "0.0.10",
216
216
  "@bendyline/molen-figures": "0.0.9",
217
217
  "@bendyline/molen-input-react": "0.0.9",
218
218
  "@bendyline/molen-kernel": "0.0.7",
@@ -221,9 +221,9 @@
221
221
  "@bendyline/molen-pathfinding": "0.0.7",
222
222
  "@bendyline/molen-physics-rapier": "0.0.7",
223
223
  "@bendyline/molen-schema": "0.0.7",
224
- "@bendyline/molen-terrain": "0.0.10",
225
- "@bendyline/molen-tooling": "0.0.10",
226
- "@bendyline/molen-worldgen": "0.0.9",
227
- "@bendyline/molen-worldgen-earth": "0.0.10"
224
+ "@bendyline/molen-terrain": "0.0.11",
225
+ "@bendyline/molen-tooling": "0.0.11",
226
+ "@bendyline/molen-worldgen": "0.0.10",
227
+ "@bendyline/molen-worldgen-earth": "0.0.11"
228
228
  }
229
229
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bendyline/molen-tooling",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -63,17 +63,17 @@
63
63
  "quickhull3d": "3.1.1",
64
64
  "sharp": "0.35.5",
65
65
  "zod": "^4.6.5",
66
- "@bendyline/molen-ambient": "0.0.10",
66
+ "@bendyline/molen-ambient": "0.0.11",
67
67
  "@bendyline/molen-client": "0.0.9",
68
+ "@bendyline/molen-kernel": "0.0.7",
68
69
  "@bendyline/molen-figures": "0.0.9",
69
70
  "@bendyline/molen-materials": "0.0.8",
70
71
  "@bendyline/molen-pack": "0.0.8",
71
- "@bendyline/molen-kernel": "0.0.7",
72
72
  "@bendyline/molen-physics-rapier": "0.0.7",
73
+ "@bendyline/molen-terrain": "0.0.11",
73
74
  "@bendyline/molen-schema": "0.0.7",
74
- "@bendyline/molen-terrain": "0.0.10",
75
- "@bendyline/molen-worldgen": "0.0.9",
76
- "@bendyline/molen-worldgen-earth": "0.0.10"
75
+ "@bendyline/molen-worldgen": "0.0.10",
76
+ "@bendyline/molen-worldgen-earth": "0.0.11"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@biomejs/biome": "^2.5.0",