@urban-toolkit/autk-grammar 0.2.0 → 0.3.0

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.
@@ -0,0 +1,2084 @@
1
+ {
2
+ "$id": "https://autarkjs.org/schema/autk-grammar/v1.json",
3
+ "$ref": "#/definitions/UrbanSpec",
4
+ "$schema": "http://json-schema.org/draft-07/schema#",
5
+ "definitions": {
6
+ "AggregateFunction": {
7
+ "description": "How joined rows are combined per feature.",
8
+ "enum": [
9
+ "sum",
10
+ "avg",
11
+ "count",
12
+ "min",
13
+ "max",
14
+ "weighted",
15
+ "collect"
16
+ ],
17
+ "type": "string"
18
+ },
19
+ "BBox": {
20
+ "anyOf": [
21
+ {
22
+ "items": {
23
+ "type": "number"
24
+ },
25
+ "maxItems": 4,
26
+ "minItems": 4,
27
+ "type": "array"
28
+ },
29
+ {
30
+ "items": {
31
+ "type": "number"
32
+ },
33
+ "maxItems": 6,
34
+ "minItems": 6,
35
+ "type": "array"
36
+ }
37
+ ],
38
+ "description": "Bounding box https://tools.ietf.org/html/rfc7946#section-5"
39
+ },
40
+ "BarPlotSpec": {
41
+ "description": "A bar chart. A transform, when given, must be `binning-1d`.",
42
+ "properties": {
43
+ "axis": {
44
+ "description": "Columns to plot, in axis order. At least one is required.",
45
+ "items": {
46
+ "type": "string"
47
+ },
48
+ "minItems": 1,
49
+ "type": "array"
50
+ },
51
+ "color": {
52
+ "type": "string"
53
+ },
54
+ "dataRef": {
55
+ "description": "Name of the table to plot.",
56
+ "type": "string"
57
+ },
58
+ "events": {
59
+ "description": "Interactions the plot emits.",
60
+ "items": {
61
+ "$ref": "#/definitions/PlotEvent"
62
+ },
63
+ "type": "array"
64
+ },
65
+ "height": {
66
+ "type": "number"
67
+ },
68
+ "mapRef": {
69
+ "description": "Layer id of a map this plot links its selection to.",
70
+ "type": "string"
71
+ },
72
+ "margins": {
73
+ "properties": {
74
+ "bottom": {
75
+ "type": "number"
76
+ },
77
+ "left": {
78
+ "type": "number"
79
+ },
80
+ "right": {
81
+ "type": "number"
82
+ },
83
+ "top": {
84
+ "type": "number"
85
+ }
86
+ },
87
+ "required": [
88
+ "left",
89
+ "right",
90
+ "top",
91
+ "bottom"
92
+ ],
93
+ "type": "object"
94
+ },
95
+ "mark": {
96
+ "const": "bar",
97
+ "type": "string"
98
+ },
99
+ "title": {
100
+ "type": "string"
101
+ },
102
+ "transform": {
103
+ "$ref": "#/definitions/PlotTransformSpec%3C%22binning-1d%22%3E"
104
+ },
105
+ "width": {
106
+ "type": "number"
107
+ }
108
+ },
109
+ "required": [
110
+ "axis",
111
+ "dataRef",
112
+ "mark"
113
+ ],
114
+ "type": "object"
115
+ },
116
+ "BoundingBox": {
117
+ "properties": {
118
+ "maxLat": {
119
+ "type": "number"
120
+ },
121
+ "maxLon": {
122
+ "type": "number"
123
+ },
124
+ "minLat": {
125
+ "type": "number"
126
+ },
127
+ "minLon": {
128
+ "type": "number"
129
+ }
130
+ },
131
+ "required": [
132
+ "minLon",
133
+ "minLat",
134
+ "maxLon",
135
+ "maxLat"
136
+ ],
137
+ "type": "object"
138
+ },
139
+ "ColorMapInterpolator": {
140
+ "description": "Color scheme for a colored map layer: `scheme*` names are categorical, `interpolate*` names are sequential or diverging.",
141
+ "enum": [
142
+ "schemeAccent",
143
+ "schemeDark2",
144
+ "schemeCategory10",
145
+ "schemeObservable10",
146
+ "schemePaired",
147
+ "schemePastel1",
148
+ "schemePastel2",
149
+ "schemeSet1",
150
+ "schemeSet2",
151
+ "schemeSet3",
152
+ "schemeTableau10",
153
+ "interpolateReds",
154
+ "interpolateBlues",
155
+ "interpolateGreens",
156
+ "interpolateGreys",
157
+ "interpolateOranges",
158
+ "interpolatePurples",
159
+ "interpolateTurbo",
160
+ "interpolateViridis",
161
+ "interpolateInferno",
162
+ "interpolateMagma",
163
+ "interpolatePlasma",
164
+ "interpolateCividis",
165
+ "interpolateWarm",
166
+ "interpolateCool",
167
+ "interpolateCubehelixDefault",
168
+ "interpolateBuGn",
169
+ "interpolateBuPu",
170
+ "interpolateGnBu",
171
+ "interpolateOrRd",
172
+ "interpolatePuBuGn",
173
+ "interpolatePuBu",
174
+ "interpolatePuRd",
175
+ "interpolateRdPu",
176
+ "interpolateYlGnBu",
177
+ "interpolateYlGn",
178
+ "interpolateYlOrBr",
179
+ "interpolateYlOrRd",
180
+ "interpolateBrBG",
181
+ "interpolatePRGn",
182
+ "interpolatePiYG",
183
+ "interpolatePuOr",
184
+ "interpolateRdBu",
185
+ "interpolateRdGy",
186
+ "interpolateRdYlBu",
187
+ "interpolateRdYlGn",
188
+ "interpolateSpectral"
189
+ ],
190
+ "type": "string"
191
+ },
192
+ "ComputeSpec": {
193
+ "anyOf": [
194
+ {
195
+ "properties": {
196
+ "attributeArrays": {
197
+ "additionalProperties": {
198
+ "type": "number"
199
+ },
200
+ "type": "object"
201
+ },
202
+ "attributeMatrices": {
203
+ "additionalProperties": {
204
+ "properties": {
205
+ "cols": {
206
+ "type": "number"
207
+ },
208
+ "rows": {
209
+ "anyOf": [
210
+ {
211
+ "type": "number"
212
+ },
213
+ {
214
+ "const": "auto",
215
+ "type": "string"
216
+ }
217
+ ]
218
+ }
219
+ },
220
+ "required": [
221
+ "rows",
222
+ "cols"
223
+ ],
224
+ "type": "object"
225
+ },
226
+ "type": "object"
227
+ },
228
+ "attributes": {
229
+ "additionalProperties": {
230
+ "type": "string"
231
+ },
232
+ "description": "Maps WGSL variable names to feature property paths.",
233
+ "type": "object"
234
+ },
235
+ "dataRef": {
236
+ "description": "Name of the table the shader runs over, one invocation per feature.",
237
+ "type": "string"
238
+ },
239
+ "outputColumnName": {
240
+ "description": "Column written when the shader returns one value.",
241
+ "type": "string"
242
+ },
243
+ "outputColumns": {
244
+ "items": {
245
+ "type": "string"
246
+ },
247
+ "minItems": 1,
248
+ "type": "array"
249
+ },
250
+ "uniformArrays": {
251
+ "additionalProperties": {
252
+ "items": {
253
+ "type": "number"
254
+ },
255
+ "type": "array"
256
+ },
257
+ "type": "object"
258
+ },
259
+ "uniformMatrices": {
260
+ "additionalProperties": {
261
+ "anyOf": [
262
+ {
263
+ "properties": {
264
+ "cols": {
265
+ "type": "number"
266
+ },
267
+ "data": {
268
+ "items": {
269
+ "items": {
270
+ "type": "number"
271
+ },
272
+ "type": "array"
273
+ },
274
+ "type": "array"
275
+ }
276
+ },
277
+ "required": [
278
+ "data",
279
+ "cols"
280
+ ],
281
+ "type": "object"
282
+ },
283
+ {
284
+ "$ref": "#/definitions/FromFeatureDirective"
285
+ }
286
+ ]
287
+ },
288
+ "description": "Matrix constants shared by every invocation, written inline or read from a feature.",
289
+ "type": "object"
290
+ },
291
+ "uniforms": {
292
+ "additionalProperties": {
293
+ "anyOf": [
294
+ {
295
+ "type": "number"
296
+ },
297
+ {
298
+ "$ref": "#/definitions/FromFeatureDirective"
299
+ }
300
+ ]
301
+ },
302
+ "description": "Scalar constants shared by every invocation, written inline or read from a feature.",
303
+ "type": "object"
304
+ },
305
+ "wglsFunction": {
306
+ "anyOf": [
307
+ {
308
+ "type": "string"
309
+ },
310
+ {
311
+ "items": {
312
+ "type": "string"
313
+ },
314
+ "type": "array"
315
+ }
316
+ ],
317
+ "description": "WGSL body of the compute function. An array is joined with newlines, which keeps long shaders readable in JSON."
318
+ }
319
+ },
320
+ "required": [
321
+ "attributes",
322
+ "dataRef",
323
+ "outputColumnName",
324
+ "wglsFunction"
325
+ ],
326
+ "type": "object"
327
+ },
328
+ {
329
+ "properties": {
330
+ "attributeArrays": {
331
+ "additionalProperties": {
332
+ "type": "number"
333
+ },
334
+ "type": "object"
335
+ },
336
+ "attributeMatrices": {
337
+ "additionalProperties": {
338
+ "properties": {
339
+ "cols": {
340
+ "type": "number"
341
+ },
342
+ "rows": {
343
+ "anyOf": [
344
+ {
345
+ "type": "number"
346
+ },
347
+ {
348
+ "const": "auto",
349
+ "type": "string"
350
+ }
351
+ ]
352
+ }
353
+ },
354
+ "required": [
355
+ "rows",
356
+ "cols"
357
+ ],
358
+ "type": "object"
359
+ },
360
+ "type": "object"
361
+ },
362
+ "attributes": {
363
+ "additionalProperties": {
364
+ "type": "string"
365
+ },
366
+ "description": "Maps WGSL variable names to feature property paths.",
367
+ "type": "object"
368
+ },
369
+ "dataRef": {
370
+ "description": "Name of the table the shader runs over, one invocation per feature.",
371
+ "type": "string"
372
+ },
373
+ "outputColumnName": {
374
+ "type": "string"
375
+ },
376
+ "outputColumns": {
377
+ "description": "Columns written when the shader returns several values, in order.",
378
+ "items": {
379
+ "type": "string"
380
+ },
381
+ "minItems": 1,
382
+ "type": "array"
383
+ },
384
+ "uniformArrays": {
385
+ "additionalProperties": {
386
+ "items": {
387
+ "type": "number"
388
+ },
389
+ "type": "array"
390
+ },
391
+ "type": "object"
392
+ },
393
+ "uniformMatrices": {
394
+ "additionalProperties": {
395
+ "anyOf": [
396
+ {
397
+ "properties": {
398
+ "cols": {
399
+ "type": "number"
400
+ },
401
+ "data": {
402
+ "items": {
403
+ "items": {
404
+ "type": "number"
405
+ },
406
+ "type": "array"
407
+ },
408
+ "type": "array"
409
+ }
410
+ },
411
+ "required": [
412
+ "data",
413
+ "cols"
414
+ ],
415
+ "type": "object"
416
+ },
417
+ {
418
+ "$ref": "#/definitions/FromFeatureDirective"
419
+ }
420
+ ]
421
+ },
422
+ "description": "Matrix constants shared by every invocation, written inline or read from a feature.",
423
+ "type": "object"
424
+ },
425
+ "uniforms": {
426
+ "additionalProperties": {
427
+ "anyOf": [
428
+ {
429
+ "type": "number"
430
+ },
431
+ {
432
+ "$ref": "#/definitions/FromFeatureDirective"
433
+ }
434
+ ]
435
+ },
436
+ "description": "Scalar constants shared by every invocation, written inline or read from a feature.",
437
+ "type": "object"
438
+ },
439
+ "wglsFunction": {
440
+ "anyOf": [
441
+ {
442
+ "type": "string"
443
+ },
444
+ {
445
+ "items": {
446
+ "type": "string"
447
+ },
448
+ "type": "array"
449
+ }
450
+ ],
451
+ "description": "WGSL body of the compute function. An array is joined with newlines, which keeps long shaders readable in JSON."
452
+ }
453
+ },
454
+ "required": [
455
+ "attributes",
456
+ "dataRef",
457
+ "outputColumns",
458
+ "wglsFunction"
459
+ ],
460
+ "type": "object"
461
+ }
462
+ ],
463
+ "description": "A GPU compute pass over a table. Results are written to `feature.properties.compute.<column>`. It needs `outputColumnName` for a single result or `outputColumns` for several."
464
+ },
465
+ "CsvDataSourceSpec": {
466
+ "description": "Loads a CSV table from exactly one of `csvFileUrl` or `csvObject`.",
467
+ "else": {
468
+ "required": [
469
+ "csvObject"
470
+ ]
471
+ },
472
+ "if": {
473
+ "required": [
474
+ "csvFileUrl"
475
+ ]
476
+ },
477
+ "properties": {
478
+ "csvFileUrl": {
479
+ "type": "string"
480
+ },
481
+ "csvObject": {
482
+ "description": "Rows as arrays; the first row holds the column names.",
483
+ "items": {
484
+ "items": {},
485
+ "type": "array"
486
+ },
487
+ "type": "array"
488
+ },
489
+ "delimiter": {
490
+ "type": "string"
491
+ },
492
+ "geometryColumns": {
493
+ "$ref": "#/definitions/GeometryColumns"
494
+ },
495
+ "outputTableName": {
496
+ "description": "Name of the table this source creates. Later sources, compute passes, maps and plots refer to it by this name.",
497
+ "type": "string"
498
+ },
499
+ "type": {
500
+ "const": "csv",
501
+ "type": "string"
502
+ }
503
+ },
504
+ "required": [
505
+ "outputTableName",
506
+ "type"
507
+ ],
508
+ "then": {
509
+ "not": {
510
+ "required": [
511
+ "csvObject"
512
+ ]
513
+ }
514
+ },
515
+ "type": "object"
516
+ },
517
+ "CustomDataSourceSpec": {
518
+ "description": "Loads a GeoJSON FeatureCollection from `geojsonFileUrl` or `geojsonObject`. When both are given, the Autark adapter reads the URL.",
519
+ "if": {
520
+ "not": {
521
+ "required": [
522
+ "geojsonFileUrl"
523
+ ]
524
+ }
525
+ },
526
+ "properties": {
527
+ "boundingBox": {
528
+ "$ref": "#/definitions/BoundingBox"
529
+ },
530
+ "coordinateFormat": {
531
+ "description": "Source coordinate reference system of the input data, expressed as an EPSG string (e.g. `'EPSG:4326'`, `'EPSG:3395'`).\n\nDefaults to `'EPSG:4326'` (WGS84) when omitted, which is the correct value for standards-compliant GeoJSON. Only set this when the source data deviates from RFC 7946.",
532
+ "type": "string"
533
+ },
534
+ "geojsonFileUrl": {
535
+ "type": "string"
536
+ },
537
+ "geojsonObject": {
538
+ "$ref": "#/definitions/InlineFeatureCollection",
539
+ "description": "GeoJSON FeatureCollection to load directly.\n\nPer RFC 7946, GeoJSON coordinates MUST be in WGS84 (EPSG:4326) longitude/latitude. This is the default assumption when `coordinateFormat` is omitted.\n\nIf your FeatureCollection is in a different CRS (e.g. a projected system such as EPSG:3395), you MUST set `coordinateFormat` explicitly to match the actual CRS of the input data. Omitting `coordinateFormat` when the data is not in EPSG:4326 will cause the spatial transform to produce invalid geometry."
540
+ },
541
+ "outputTableName": {
542
+ "description": "Name of the table this source creates. Later sources, compute passes, maps and plots refer to it by this name.",
543
+ "type": "string"
544
+ },
545
+ "type": {
546
+ "const": "geojson",
547
+ "type": "string"
548
+ }
549
+ },
550
+ "required": [
551
+ "outputTableName",
552
+ "type"
553
+ ],
554
+ "then": {
555
+ "required": [
556
+ "geojsonObject"
557
+ ]
558
+ },
559
+ "type": "object"
560
+ },
561
+ "DataSourceSpec": {
562
+ "allOf": [
563
+ {
564
+ "if": {
565
+ "properties": {
566
+ "type": {
567
+ "const": "osm",
568
+ "type": "string"
569
+ }
570
+ }
571
+ },
572
+ "then": {
573
+ "$ref": "#/definitions/OsmDataSourceSpec"
574
+ }
575
+ },
576
+ {
577
+ "if": {
578
+ "properties": {
579
+ "type": {
580
+ "const": "csv",
581
+ "type": "string"
582
+ }
583
+ }
584
+ },
585
+ "then": {
586
+ "$ref": "#/definitions/CsvDataSourceSpec"
587
+ }
588
+ },
589
+ {
590
+ "if": {
591
+ "properties": {
592
+ "type": {
593
+ "const": "json",
594
+ "type": "string"
595
+ }
596
+ }
597
+ },
598
+ "then": {
599
+ "$ref": "#/definitions/JsonDataSourceSpec"
600
+ }
601
+ },
602
+ {
603
+ "if": {
604
+ "properties": {
605
+ "type": {
606
+ "const": "geojson",
607
+ "type": "string"
608
+ }
609
+ }
610
+ },
611
+ "then": {
612
+ "$ref": "#/definitions/CustomDataSourceSpec"
613
+ }
614
+ },
615
+ {
616
+ "if": {
617
+ "properties": {
618
+ "type": {
619
+ "const": "heatmap",
620
+ "type": "string"
621
+ }
622
+ }
623
+ },
624
+ "then": {
625
+ "$ref": "#/definitions/HeatmapSourceSpec"
626
+ }
627
+ },
628
+ {
629
+ "if": {
630
+ "properties": {
631
+ "type": {
632
+ "const": "join",
633
+ "type": "string"
634
+ }
635
+ }
636
+ },
637
+ "then": {
638
+ "$ref": "#/definitions/JoinSourceSpec"
639
+ }
640
+ }
641
+ ],
642
+ "description": "One entry of `data`. The `type` field selects which fields apply.",
643
+ "properties": {
644
+ "type": {
645
+ "enum": [
646
+ "osm",
647
+ "csv",
648
+ "json",
649
+ "geojson",
650
+ "heatmap",
651
+ "join"
652
+ ]
653
+ }
654
+ },
655
+ "required": [
656
+ "type"
657
+ ],
658
+ "type": "object"
659
+ },
660
+ "FromFeatureDirective": {
661
+ "description": "Reads a uniform's value from a feature of a loaded table instead of writing it inline.",
662
+ "properties": {
663
+ "cols": {
664
+ "description": "Matrix column count, for entries in `uniformMatrices`.",
665
+ "type": "number"
666
+ },
667
+ "default": {
668
+ "anyOf": [
669
+ {
670
+ "type": "number"
671
+ },
672
+ {
673
+ "items": {
674
+ "items": {
675
+ "type": "number"
676
+ },
677
+ "type": "array"
678
+ },
679
+ "type": "array"
680
+ }
681
+ ],
682
+ "description": "Value used when `path` does not resolve. Without it the entry is dropped."
683
+ },
684
+ "fromFeature": {
685
+ "properties": {
686
+ "index": {
687
+ "description": "Feature index to read. Defaults to 0.",
688
+ "type": "number"
689
+ },
690
+ "iterate": {
691
+ "description": "Iterate over every feature of `layer`. `all` runs the shader once per feature and sums the outputs. `batched` packs every feature's value into a uniform array named after this entry (matrix entries become each feature's bounding box as four corners), adds a `num_features` uniform, and runs the shader once.",
692
+ "enum": [
693
+ "all",
694
+ "batched"
695
+ ],
696
+ "type": "string"
697
+ },
698
+ "layer": {
699
+ "description": "Table to read from.",
700
+ "type": "string"
701
+ },
702
+ "path": {
703
+ "description": "Dot path from the feature root, for example `properties.height` or `geometry.coordinates.0`.",
704
+ "type": "string"
705
+ },
706
+ "required": {
707
+ "description": "With `iterate: 'batched'`, drop features whose `path` does not resolve to a finite value.",
708
+ "type": "boolean"
709
+ }
710
+ },
711
+ "required": [
712
+ "layer",
713
+ "path"
714
+ ],
715
+ "type": "object"
716
+ }
717
+ },
718
+ "required": [
719
+ "fromFeature"
720
+ ],
721
+ "type": "object"
722
+ },
723
+ "GeoJsonProperties": {
724
+ "anyOf": [
725
+ {
726
+ "type": "object"
727
+ },
728
+ {
729
+ "type": "null"
730
+ }
731
+ ]
732
+ },
733
+ "Geometry": {
734
+ "anyOf": [
735
+ {
736
+ "$ref": "#/definitions/Point"
737
+ },
738
+ {
739
+ "$ref": "#/definitions/MultiPoint"
740
+ },
741
+ {
742
+ "$ref": "#/definitions/LineString"
743
+ },
744
+ {
745
+ "$ref": "#/definitions/MultiLineString"
746
+ },
747
+ {
748
+ "$ref": "#/definitions/Polygon"
749
+ },
750
+ {
751
+ "$ref": "#/definitions/MultiPolygon"
752
+ },
753
+ {
754
+ "$ref": "#/definitions/GeometryCollection"
755
+ }
756
+ ],
757
+ "description": "Geometry object. https://tools.ietf.org/html/rfc7946#section-3"
758
+ },
759
+ "GeometryCollection": {
760
+ "description": "Geometry Collection https://tools.ietf.org/html/rfc7946#section-3.1.8",
761
+ "properties": {
762
+ "bbox": {
763
+ "$ref": "#/definitions/BBox",
764
+ "description": "Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections. The value of the bbox member is an array of length 2*n where n is the number of dimensions represented in the contained geometries, with all axes of the most southwesterly point followed by all axes of the more northeasterly point. The axes order of a bbox follows the axes order of geometries. https://tools.ietf.org/html/rfc7946#section-5"
765
+ },
766
+ "geometries": {
767
+ "items": {
768
+ "$ref": "#/definitions/Geometry"
769
+ },
770
+ "type": "array"
771
+ },
772
+ "type": {
773
+ "const": "GeometryCollection",
774
+ "description": "Specifies the type of GeoJSON object.",
775
+ "type": "string"
776
+ }
777
+ },
778
+ "required": [
779
+ "geometries",
780
+ "type"
781
+ ],
782
+ "type": "object"
783
+ },
784
+ "GeometryColumns": {
785
+ "anyOf": [
786
+ {
787
+ "const": true,
788
+ "type": "boolean"
789
+ },
790
+ {
791
+ "$ref": "#/definitions/LatLongGeometryColumns"
792
+ },
793
+ {
794
+ "$ref": "#/definitions/WktGeometryColumns"
795
+ }
796
+ ],
797
+ "description": "How rows become features: `true` reads the `Latitude` and `Longitude` columns, or name the columns."
798
+ },
799
+ "HeatmapSourceSpec": {
800
+ "description": "Aggregates a table onto a regular grid, producing a raster heatmap table.",
801
+ "properties": {
802
+ "grid": {
803
+ "description": "Grid resolution.",
804
+ "properties": {
805
+ "columns": {
806
+ "type": "number"
807
+ },
808
+ "rows": {
809
+ "type": "number"
810
+ }
811
+ },
812
+ "required": [
813
+ "rows",
814
+ "columns"
815
+ ],
816
+ "type": "object"
817
+ },
818
+ "groupBy": {
819
+ "items": {
820
+ "properties": {
821
+ "aggregateFn": {
822
+ "$ref": "#/definitions/AggregateFunction"
823
+ },
824
+ "column": {
825
+ "type": "string"
826
+ }
827
+ },
828
+ "required": [
829
+ "column"
830
+ ],
831
+ "type": "object"
832
+ },
833
+ "type": "array"
834
+ },
835
+ "near": {
836
+ "description": "Radius around each grid cell, in workspace units, within which rows are aggregated.",
837
+ "properties": {
838
+ "distance": {
839
+ "type": "number"
840
+ }
841
+ },
842
+ "required": [
843
+ "distance"
844
+ ],
845
+ "type": "object"
846
+ },
847
+ "outputTableName": {
848
+ "description": "Name of the table this source creates. Later sources, compute passes, maps and plots refer to it by this name.",
849
+ "type": "string"
850
+ },
851
+ "tableJoinName": {
852
+ "description": "Table whose rows are aggregated onto the grid.",
853
+ "type": "string"
854
+ },
855
+ "type": {
856
+ "const": "heatmap",
857
+ "type": "string"
858
+ }
859
+ },
860
+ "required": [
861
+ "grid",
862
+ "near",
863
+ "outputTableName",
864
+ "tableJoinName",
865
+ "type"
866
+ ],
867
+ "type": "object"
868
+ },
869
+ "HeatmatrixPlotSpec": {
870
+ "description": "A heat matrix over a `binning-2d` transform, which it requires.",
871
+ "properties": {
872
+ "axis": {
873
+ "description": "Columns to plot, in axis order. At least one is required.",
874
+ "items": {
875
+ "type": "string"
876
+ },
877
+ "minItems": 1,
878
+ "type": "array"
879
+ },
880
+ "color": {
881
+ "type": "string"
882
+ },
883
+ "dataRef": {
884
+ "description": "Name of the table to plot.",
885
+ "type": "string"
886
+ },
887
+ "events": {
888
+ "description": "Interactions the plot emits.",
889
+ "items": {
890
+ "$ref": "#/definitions/PlotEvent"
891
+ },
892
+ "type": "array"
893
+ },
894
+ "height": {
895
+ "type": "number"
896
+ },
897
+ "mapRef": {
898
+ "description": "Layer id of a map this plot links its selection to.",
899
+ "type": "string"
900
+ },
901
+ "margins": {
902
+ "properties": {
903
+ "bottom": {
904
+ "type": "number"
905
+ },
906
+ "left": {
907
+ "type": "number"
908
+ },
909
+ "right": {
910
+ "type": "number"
911
+ },
912
+ "top": {
913
+ "type": "number"
914
+ }
915
+ },
916
+ "required": [
917
+ "left",
918
+ "right",
919
+ "top",
920
+ "bottom"
921
+ ],
922
+ "type": "object"
923
+ },
924
+ "mark": {
925
+ "const": "heatmatrix",
926
+ "type": "string"
927
+ },
928
+ "title": {
929
+ "type": "string"
930
+ },
931
+ "transform": {
932
+ "$ref": "#/definitions/PlotTransformSpec%3C%22binning-2d%22%3E"
933
+ },
934
+ "width": {
935
+ "type": "number"
936
+ }
937
+ },
938
+ "required": [
939
+ "axis",
940
+ "dataRef",
941
+ "mark",
942
+ "transform"
943
+ ],
944
+ "type": "object"
945
+ },
946
+ "InlineFeature": {
947
+ "description": "A GeoJSON feature as the loader accepts it: `geometry` may be null and `properties` may be omitted.",
948
+ "properties": {
949
+ "bbox": {
950
+ "$ref": "#/definitions/BBox"
951
+ },
952
+ "geometry": {
953
+ "anyOf": [
954
+ {
955
+ "$ref": "#/definitions/Geometry"
956
+ },
957
+ {
958
+ "type": "null"
959
+ }
960
+ ]
961
+ },
962
+ "id": {
963
+ "type": [
964
+ "string",
965
+ "number"
966
+ ]
967
+ },
968
+ "properties": {
969
+ "$ref": "#/definitions/GeoJsonProperties"
970
+ },
971
+ "type": {
972
+ "const": "Feature",
973
+ "type": "string"
974
+ }
975
+ },
976
+ "required": [
977
+ "type",
978
+ "geometry"
979
+ ],
980
+ "type": "object"
981
+ },
982
+ "InlineFeatureCollection": {
983
+ "description": "A GeoJSON FeatureCollection with at least one feature.",
984
+ "properties": {
985
+ "bbox": {
986
+ "$ref": "#/definitions/BBox"
987
+ },
988
+ "features": {
989
+ "items": {
990
+ "$ref": "#/definitions/InlineFeature"
991
+ },
992
+ "minItems": 1,
993
+ "type": "array"
994
+ },
995
+ "type": {
996
+ "const": "FeatureCollection",
997
+ "type": "string"
998
+ }
999
+ },
1000
+ "required": [
1001
+ "type",
1002
+ "features"
1003
+ ],
1004
+ "type": "object"
1005
+ },
1006
+ "JoinSourceSpec": {
1007
+ "description": "Spatially joins one table onto another. The result replaces the root table.",
1008
+ "properties": {
1009
+ "groupBy": {
1010
+ "description": "Aggregate the joined rows per root feature.",
1011
+ "items": {
1012
+ "properties": {
1013
+ "aggregateFn": {
1014
+ "$ref": "#/definitions/AggregateFunction"
1015
+ },
1016
+ "column": {
1017
+ "type": "string"
1018
+ },
1019
+ "normalize": {
1020
+ "type": "boolean"
1021
+ }
1022
+ },
1023
+ "required": [
1024
+ "column"
1025
+ ],
1026
+ "type": "object"
1027
+ },
1028
+ "type": "array"
1029
+ },
1030
+ "near": {
1031
+ "description": "Join rows within `distance` (in workspace units) instead of by containment.",
1032
+ "properties": {
1033
+ "distance": {
1034
+ "type": "number"
1035
+ },
1036
+ "useCentroid": {
1037
+ "type": "boolean"
1038
+ }
1039
+ },
1040
+ "required": [
1041
+ "distance"
1042
+ ],
1043
+ "type": "object"
1044
+ },
1045
+ "tableJoinName": {
1046
+ "description": "Table whose rows are joined onto the root table.",
1047
+ "type": "string"
1048
+ },
1049
+ "tableRootName": {
1050
+ "description": "Table that receives the joined columns.",
1051
+ "type": "string"
1052
+ },
1053
+ "type": {
1054
+ "const": "join",
1055
+ "type": "string"
1056
+ }
1057
+ },
1058
+ "required": [
1059
+ "type",
1060
+ "tableRootName",
1061
+ "tableJoinName"
1062
+ ],
1063
+ "type": "object"
1064
+ },
1065
+ "JsonDataSourceSpec": {
1066
+ "description": "Loads a JSON table from exactly one of `jsonFileUrl` or `jsonObject`.",
1067
+ "else": {
1068
+ "required": [
1069
+ "jsonObject"
1070
+ ]
1071
+ },
1072
+ "if": {
1073
+ "required": [
1074
+ "jsonFileUrl"
1075
+ ]
1076
+ },
1077
+ "properties": {
1078
+ "geometryColumns": {
1079
+ "$ref": "#/definitions/GeometryColumns"
1080
+ },
1081
+ "jsonFileUrl": {
1082
+ "type": "string"
1083
+ },
1084
+ "jsonObject": {
1085
+ "items": {},
1086
+ "type": "array"
1087
+ },
1088
+ "outputTableName": {
1089
+ "description": "Name of the table this source creates. Later sources, compute passes, maps and plots refer to it by this name.",
1090
+ "type": "string"
1091
+ },
1092
+ "type": {
1093
+ "const": "json",
1094
+ "type": "string"
1095
+ }
1096
+ },
1097
+ "required": [
1098
+ "outputTableName",
1099
+ "type"
1100
+ ],
1101
+ "then": {
1102
+ "not": {
1103
+ "required": [
1104
+ "jsonObject"
1105
+ ]
1106
+ }
1107
+ },
1108
+ "type": "object"
1109
+ },
1110
+ "LatLongGeometryColumns": {
1111
+ "description": "Point geometry from two columns holding latitude and longitude.",
1112
+ "properties": {
1113
+ "coordinateFormat": {
1114
+ "description": "CRS of the coordinates, as an EPSG string. Defaults to `'EPSG:4326'`.",
1115
+ "type": "string"
1116
+ },
1117
+ "latColumnName": {
1118
+ "type": "string"
1119
+ },
1120
+ "longColumnName": {
1121
+ "type": "string"
1122
+ }
1123
+ },
1124
+ "required": [
1125
+ "latColumnName",
1126
+ "longColumnName"
1127
+ ],
1128
+ "type": "object"
1129
+ },
1130
+ "LayerType": {
1131
+ "description": "OSM layer a data source can split out, or a generic geometry layer.",
1132
+ "enum": [
1133
+ "surface",
1134
+ "water",
1135
+ "parks",
1136
+ "roads",
1137
+ "buildings",
1138
+ "points",
1139
+ "polygons",
1140
+ "polylines",
1141
+ "raster"
1142
+ ],
1143
+ "type": "string"
1144
+ },
1145
+ "LinePlotSpec": {
1146
+ "description": "A line chart over a `reduce-series` or `binning-events` transform, which it requires.",
1147
+ "properties": {
1148
+ "axis": {
1149
+ "description": "Columns to plot, in axis order. At least one is required.",
1150
+ "items": {
1151
+ "type": "string"
1152
+ },
1153
+ "minItems": 1,
1154
+ "type": "array"
1155
+ },
1156
+ "color": {
1157
+ "type": "string"
1158
+ },
1159
+ "dataRef": {
1160
+ "description": "Name of the table to plot.",
1161
+ "type": "string"
1162
+ },
1163
+ "events": {
1164
+ "description": "Interactions the plot emits.",
1165
+ "items": {
1166
+ "$ref": "#/definitions/PlotEvent"
1167
+ },
1168
+ "type": "array"
1169
+ },
1170
+ "height": {
1171
+ "type": "number"
1172
+ },
1173
+ "mapRef": {
1174
+ "description": "Layer id of a map this plot links its selection to.",
1175
+ "type": "string"
1176
+ },
1177
+ "margins": {
1178
+ "properties": {
1179
+ "bottom": {
1180
+ "type": "number"
1181
+ },
1182
+ "left": {
1183
+ "type": "number"
1184
+ },
1185
+ "right": {
1186
+ "type": "number"
1187
+ },
1188
+ "top": {
1189
+ "type": "number"
1190
+ }
1191
+ },
1192
+ "required": [
1193
+ "left",
1194
+ "right",
1195
+ "top",
1196
+ "bottom"
1197
+ ],
1198
+ "type": "object"
1199
+ },
1200
+ "mark": {
1201
+ "enum": [
1202
+ "line",
1203
+ "linechart"
1204
+ ],
1205
+ "type": "string"
1206
+ },
1207
+ "title": {
1208
+ "type": "string"
1209
+ },
1210
+ "transform": {
1211
+ "$ref": "#/definitions/PlotTransformSpec%3C(%22reduce-series%22%7C%22binning-events%22)%3E"
1212
+ },
1213
+ "width": {
1214
+ "type": "number"
1215
+ }
1216
+ },
1217
+ "required": [
1218
+ "axis",
1219
+ "dataRef",
1220
+ "mark",
1221
+ "transform"
1222
+ ],
1223
+ "type": "object"
1224
+ },
1225
+ "LineString": {
1226
+ "description": "LineString geometry object. https://tools.ietf.org/html/rfc7946#section-3.1.4",
1227
+ "properties": {
1228
+ "bbox": {
1229
+ "$ref": "#/definitions/BBox",
1230
+ "description": "Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections. The value of the bbox member is an array of length 2*n where n is the number of dimensions represented in the contained geometries, with all axes of the most southwesterly point followed by all axes of the more northeasterly point. The axes order of a bbox follows the axes order of geometries. https://tools.ietf.org/html/rfc7946#section-5"
1231
+ },
1232
+ "coordinates": {
1233
+ "items": {
1234
+ "$ref": "#/definitions/Position"
1235
+ },
1236
+ "type": "array"
1237
+ },
1238
+ "type": {
1239
+ "const": "LineString",
1240
+ "description": "Specifies the type of GeoJSON object.",
1241
+ "type": "string"
1242
+ }
1243
+ },
1244
+ "required": [
1245
+ "coordinates",
1246
+ "type"
1247
+ ],
1248
+ "type": "object"
1249
+ },
1250
+ "MapLayerSpec": {
1251
+ "description": "One layer drawn by a map.",
1252
+ "properties": {
1253
+ "catchAllCategory": {
1254
+ "type": "string"
1255
+ },
1256
+ "colorMapDomain": {
1257
+ "description": "Allowed category values; anything else is drawn as the catch-all category. Only used when `getFnvType` is `categorical`.",
1258
+ "items": {
1259
+ "type": "string"
1260
+ },
1261
+ "type": "array"
1262
+ },
1263
+ "colorMapInterpolator": {
1264
+ "$ref": "#/definitions/ColorMapInterpolator",
1265
+ "description": "Color scheme used when `isColorMap` is set."
1266
+ },
1267
+ "colorMapLabels": {
1268
+ "description": "Legend labels. Read by the deck.gl adapter; the Autark adapter ignores it.",
1269
+ "items": {
1270
+ "type": "string"
1271
+ },
1272
+ "type": "array"
1273
+ },
1274
+ "dataRef": {
1275
+ "description": "Name of the table to draw, as produced by a data source or a compute pass.",
1276
+ "type": "string"
1277
+ },
1278
+ "defaultFnv": {
1279
+ "description": "Value used for features where `getFnv` resolves to nothing. Read by the deck.gl adapter; the Autark adapter ignores it.",
1280
+ "type": [
1281
+ "string",
1282
+ "number"
1283
+ ]
1284
+ },
1285
+ "getFnv": {
1286
+ "description": "Dot path to the thematic value, relative to `feature.properties` (for example `tags.highway` or `compute.result`).",
1287
+ "type": "string"
1288
+ },
1289
+ "getFnvType": {
1290
+ "description": "`categorical` reads the value as a string for discrete palettes; `quantitative` reads it as a number for continuous scales. Read by the deck.gl adapter; the Autark adapter ignores it.",
1291
+ "enum": [
1292
+ "categorical",
1293
+ "quantitative"
1294
+ ],
1295
+ "type": "string"
1296
+ },
1297
+ "isColorMap": {
1298
+ "description": "Color the layer by the value read with `getFnv`.",
1299
+ "type": "boolean"
1300
+ },
1301
+ "isPick": {
1302
+ "description": "Allow picking features on this layer.",
1303
+ "type": "boolean"
1304
+ },
1305
+ "isSkip": {
1306
+ "description": "Load the layer without drawing it.",
1307
+ "type": "boolean"
1308
+ },
1309
+ "normalization": {
1310
+ "description": "How values are rescaled before coloring.",
1311
+ "properties": {
1312
+ "lowerPercentile": {
1313
+ "type": "number"
1314
+ },
1315
+ "mode": {
1316
+ "$ref": "#/definitions/NormalizationMode"
1317
+ },
1318
+ "upperPercentile": {
1319
+ "type": "number"
1320
+ }
1321
+ },
1322
+ "required": [
1323
+ "mode"
1324
+ ],
1325
+ "type": "object"
1326
+ },
1327
+ "opacity": {
1328
+ "description": "Layer opacity, from 0 to 1.",
1329
+ "type": "number"
1330
+ },
1331
+ "pickedComps": {
1332
+ "description": "Feature ids drawn as picked. Read by the deck.gl adapter; the Autark adapter ignores it.",
1333
+ "items": {
1334
+ "type": "number"
1335
+ },
1336
+ "type": "array"
1337
+ }
1338
+ },
1339
+ "required": [
1340
+ "dataRef"
1341
+ ],
1342
+ "type": "object"
1343
+ },
1344
+ "MapSpec": {
1345
+ "description": "A map view.",
1346
+ "properties": {
1347
+ "layerRefs": {
1348
+ "description": "Layers to draw, bottom first. Each names a table with `dataRef`.",
1349
+ "items": {
1350
+ "$ref": "#/definitions/MapLayerSpec"
1351
+ },
1352
+ "type": "array"
1353
+ },
1354
+ "style": {
1355
+ "description": "Map style.",
1356
+ "type": "string"
1357
+ }
1358
+ },
1359
+ "required": [
1360
+ "layerRefs"
1361
+ ],
1362
+ "type": "object"
1363
+ },
1364
+ "MultiLineString": {
1365
+ "description": "MultiLineString geometry object. https://tools.ietf.org/html/rfc7946#section-3.1.5",
1366
+ "properties": {
1367
+ "bbox": {
1368
+ "$ref": "#/definitions/BBox",
1369
+ "description": "Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections. The value of the bbox member is an array of length 2*n where n is the number of dimensions represented in the contained geometries, with all axes of the most southwesterly point followed by all axes of the more northeasterly point. The axes order of a bbox follows the axes order of geometries. https://tools.ietf.org/html/rfc7946#section-5"
1370
+ },
1371
+ "coordinates": {
1372
+ "items": {
1373
+ "items": {
1374
+ "$ref": "#/definitions/Position"
1375
+ },
1376
+ "type": "array"
1377
+ },
1378
+ "type": "array"
1379
+ },
1380
+ "type": {
1381
+ "const": "MultiLineString",
1382
+ "description": "Specifies the type of GeoJSON object.",
1383
+ "type": "string"
1384
+ }
1385
+ },
1386
+ "required": [
1387
+ "coordinates",
1388
+ "type"
1389
+ ],
1390
+ "type": "object"
1391
+ },
1392
+ "MultiPoint": {
1393
+ "description": "MultiPoint geometry object. https://tools.ietf.org/html/rfc7946#section-3.1.3",
1394
+ "properties": {
1395
+ "bbox": {
1396
+ "$ref": "#/definitions/BBox",
1397
+ "description": "Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections. The value of the bbox member is an array of length 2*n where n is the number of dimensions represented in the contained geometries, with all axes of the most southwesterly point followed by all axes of the more northeasterly point. The axes order of a bbox follows the axes order of geometries. https://tools.ietf.org/html/rfc7946#section-5"
1398
+ },
1399
+ "coordinates": {
1400
+ "items": {
1401
+ "$ref": "#/definitions/Position"
1402
+ },
1403
+ "type": "array"
1404
+ },
1405
+ "type": {
1406
+ "const": "MultiPoint",
1407
+ "description": "Specifies the type of GeoJSON object.",
1408
+ "type": "string"
1409
+ }
1410
+ },
1411
+ "required": [
1412
+ "coordinates",
1413
+ "type"
1414
+ ],
1415
+ "type": "object"
1416
+ },
1417
+ "MultiPolygon": {
1418
+ "description": "MultiPolygon geometry object. https://tools.ietf.org/html/rfc7946#section-3.1.7",
1419
+ "properties": {
1420
+ "bbox": {
1421
+ "$ref": "#/definitions/BBox",
1422
+ "description": "Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections. The value of the bbox member is an array of length 2*n where n is the number of dimensions represented in the contained geometries, with all axes of the most southwesterly point followed by all axes of the more northeasterly point. The axes order of a bbox follows the axes order of geometries. https://tools.ietf.org/html/rfc7946#section-5"
1423
+ },
1424
+ "coordinates": {
1425
+ "items": {
1426
+ "items": {
1427
+ "items": {
1428
+ "$ref": "#/definitions/Position"
1429
+ },
1430
+ "type": "array"
1431
+ },
1432
+ "type": "array"
1433
+ },
1434
+ "type": "array"
1435
+ },
1436
+ "type": {
1437
+ "const": "MultiPolygon",
1438
+ "description": "Specifies the type of GeoJSON object.",
1439
+ "type": "string"
1440
+ }
1441
+ },
1442
+ "required": [
1443
+ "coordinates",
1444
+ "type"
1445
+ ],
1446
+ "type": "object"
1447
+ },
1448
+ "NormalizationMode": {
1449
+ "description": "How values are rescaled before coloring.",
1450
+ "enum": [
1451
+ "minMax",
1452
+ "percentile"
1453
+ ],
1454
+ "type": "string"
1455
+ },
1456
+ "OsmDataSourceSpec": {
1457
+ "description": "Loads OpenStreetMap data for a named area, from Overpass or from a PBF extract.",
1458
+ "properties": {
1459
+ "autoLoadLayers": {
1460
+ "description": "Split the raw OSM table into one table per layer, named `<outputTableName>_<layer>`.",
1461
+ "properties": {
1462
+ "dropOsmTable": {
1463
+ "description": "Currently ignored by both adapters.",
1464
+ "type": "boolean"
1465
+ },
1466
+ "layers": {
1467
+ "items": {
1468
+ "$ref": "#/definitions/LayerType"
1469
+ },
1470
+ "type": "array"
1471
+ }
1472
+ },
1473
+ "required": [
1474
+ "layers"
1475
+ ],
1476
+ "type": "object"
1477
+ },
1478
+ "outputTableName": {
1479
+ "description": "Name of the table this source creates. Later sources, compute passes, maps and plots refer to it by this name.",
1480
+ "type": "string"
1481
+ },
1482
+ "pbfFileUrl": {
1483
+ "description": "URL of a local or remote `.osm.pbf` extract to read instead of querying Overpass.",
1484
+ "type": "string"
1485
+ },
1486
+ "queryArea": {
1487
+ "description": "Area to load: the named sub-areas inside a geocoded region.",
1488
+ "properties": {
1489
+ "areas": {
1490
+ "description": "Sub-areas inside the region, for example neighborhood names.",
1491
+ "items": {
1492
+ "type": "string"
1493
+ },
1494
+ "type": "array"
1495
+ },
1496
+ "geocodeArea": {
1497
+ "description": "Region to geocode, for example a city name.",
1498
+ "type": "string"
1499
+ }
1500
+ },
1501
+ "required": [
1502
+ "geocodeArea",
1503
+ "areas"
1504
+ ],
1505
+ "type": "object"
1506
+ },
1507
+ "type": {
1508
+ "const": "osm",
1509
+ "type": "string"
1510
+ }
1511
+ },
1512
+ "required": [
1513
+ "outputTableName",
1514
+ "queryArea",
1515
+ "type"
1516
+ ],
1517
+ "type": "object"
1518
+ },
1519
+ "ParallelCoordinatesPlotSpec": {
1520
+ "description": "Parallel coordinates over the plotted columns.",
1521
+ "properties": {
1522
+ "axis": {
1523
+ "description": "Columns to plot, in axis order. At least one is required.",
1524
+ "items": {
1525
+ "type": "string"
1526
+ },
1527
+ "minItems": 1,
1528
+ "type": "array"
1529
+ },
1530
+ "color": {
1531
+ "type": "string"
1532
+ },
1533
+ "dataRef": {
1534
+ "description": "Name of the table to plot.",
1535
+ "type": "string"
1536
+ },
1537
+ "events": {
1538
+ "description": "Interactions the plot emits.",
1539
+ "items": {
1540
+ "$ref": "#/definitions/PlotEvent"
1541
+ },
1542
+ "type": "array"
1543
+ },
1544
+ "height": {
1545
+ "type": "number"
1546
+ },
1547
+ "mapRef": {
1548
+ "description": "Layer id of a map this plot links its selection to.",
1549
+ "type": "string"
1550
+ },
1551
+ "margins": {
1552
+ "properties": {
1553
+ "bottom": {
1554
+ "type": "number"
1555
+ },
1556
+ "left": {
1557
+ "type": "number"
1558
+ },
1559
+ "right": {
1560
+ "type": "number"
1561
+ },
1562
+ "top": {
1563
+ "type": "number"
1564
+ }
1565
+ },
1566
+ "required": [
1567
+ "left",
1568
+ "right",
1569
+ "top",
1570
+ "bottom"
1571
+ ],
1572
+ "type": "object"
1573
+ },
1574
+ "mark": {
1575
+ "const": "parallel-coordinates",
1576
+ "type": "string"
1577
+ },
1578
+ "title": {
1579
+ "type": "string"
1580
+ },
1581
+ "transform": {
1582
+ "$ref": "#/definitions/PlotTransformSpec"
1583
+ },
1584
+ "width": {
1585
+ "type": "number"
1586
+ }
1587
+ },
1588
+ "required": [
1589
+ "axis",
1590
+ "dataRef",
1591
+ "mark"
1592
+ ],
1593
+ "type": "object"
1594
+ },
1595
+ "PlotEvent": {
1596
+ "description": "Interaction a plot emits.",
1597
+ "enum": [
1598
+ "click",
1599
+ "brush",
1600
+ "brushY",
1601
+ "brushX"
1602
+ ],
1603
+ "type": "string"
1604
+ },
1605
+ "PlotSpec": {
1606
+ "allOf": [
1607
+ {
1608
+ "if": {
1609
+ "properties": {
1610
+ "mark": {
1611
+ "const": "scatter",
1612
+ "type": "string"
1613
+ }
1614
+ }
1615
+ },
1616
+ "then": {
1617
+ "$ref": "#/definitions/ScatterPlotSpec"
1618
+ }
1619
+ },
1620
+ {
1621
+ "if": {
1622
+ "properties": {
1623
+ "mark": {
1624
+ "const": "bar",
1625
+ "type": "string"
1626
+ }
1627
+ }
1628
+ },
1629
+ "then": {
1630
+ "$ref": "#/definitions/BarPlotSpec"
1631
+ }
1632
+ },
1633
+ {
1634
+ "if": {
1635
+ "properties": {
1636
+ "mark": {
1637
+ "enum": [
1638
+ "line",
1639
+ "linechart"
1640
+ ],
1641
+ "type": "string"
1642
+ }
1643
+ }
1644
+ },
1645
+ "then": {
1646
+ "$ref": "#/definitions/LinePlotSpec"
1647
+ }
1648
+ },
1649
+ {
1650
+ "if": {
1651
+ "properties": {
1652
+ "mark": {
1653
+ "const": "parallel-coordinates",
1654
+ "type": "string"
1655
+ }
1656
+ }
1657
+ },
1658
+ "then": {
1659
+ "$ref": "#/definitions/ParallelCoordinatesPlotSpec"
1660
+ }
1661
+ },
1662
+ {
1663
+ "if": {
1664
+ "properties": {
1665
+ "mark": {
1666
+ "const": "table",
1667
+ "type": "string"
1668
+ }
1669
+ }
1670
+ },
1671
+ "then": {
1672
+ "$ref": "#/definitions/TablePlotSpec"
1673
+ }
1674
+ },
1675
+ {
1676
+ "if": {
1677
+ "properties": {
1678
+ "mark": {
1679
+ "const": "heatmatrix",
1680
+ "type": "string"
1681
+ }
1682
+ }
1683
+ },
1684
+ "then": {
1685
+ "$ref": "#/definitions/HeatmatrixPlotSpec"
1686
+ }
1687
+ }
1688
+ ],
1689
+ "description": "A plot view. The `mark` field selects which transforms apply.",
1690
+ "properties": {
1691
+ "mark": {
1692
+ "enum": [
1693
+ "scatter",
1694
+ "bar",
1695
+ "line",
1696
+ "linechart",
1697
+ "parallel-coordinates",
1698
+ "table",
1699
+ "heatmatrix"
1700
+ ]
1701
+ }
1702
+ },
1703
+ "required": [
1704
+ "mark"
1705
+ ],
1706
+ "type": "object"
1707
+ },
1708
+ "PlotTransformPreset": {
1709
+ "description": "Transform presets a plot accepts.",
1710
+ "enum": [
1711
+ "binning-1d",
1712
+ "binning-2d",
1713
+ "binning-events",
1714
+ "reduce-series",
1715
+ "sort"
1716
+ ],
1717
+ "type": "string"
1718
+ },
1719
+ "PlotTransformSpec": {
1720
+ "description": "Reshapes the table before plotting.",
1721
+ "properties": {
1722
+ "options": {
1723
+ "additionalProperties": {},
1724
+ "type": "object"
1725
+ },
1726
+ "preset": {
1727
+ "$ref": "#/definitions/PlotTransformPreset"
1728
+ }
1729
+ },
1730
+ "required": [
1731
+ "preset"
1732
+ ],
1733
+ "type": "object"
1734
+ },
1735
+ "PlotTransformSpec<\"binning-1d\">": {
1736
+ "description": "Reshapes the table before plotting.",
1737
+ "properties": {
1738
+ "options": {
1739
+ "additionalProperties": {},
1740
+ "type": "object"
1741
+ },
1742
+ "preset": {
1743
+ "const": "binning-1d",
1744
+ "type": "string"
1745
+ }
1746
+ },
1747
+ "required": [
1748
+ "preset"
1749
+ ],
1750
+ "type": "object"
1751
+ },
1752
+ "PlotTransformSpec<\"binning-2d\">": {
1753
+ "description": "Reshapes the table before plotting.",
1754
+ "properties": {
1755
+ "options": {
1756
+ "additionalProperties": {},
1757
+ "type": "object"
1758
+ },
1759
+ "preset": {
1760
+ "const": "binning-2d",
1761
+ "type": "string"
1762
+ }
1763
+ },
1764
+ "required": [
1765
+ "preset"
1766
+ ],
1767
+ "type": "object"
1768
+ },
1769
+ "PlotTransformSpec<\"sort\">": {
1770
+ "description": "Reshapes the table before plotting.",
1771
+ "properties": {
1772
+ "options": {
1773
+ "additionalProperties": {},
1774
+ "type": "object"
1775
+ },
1776
+ "preset": {
1777
+ "const": "sort",
1778
+ "type": "string"
1779
+ }
1780
+ },
1781
+ "required": [
1782
+ "preset"
1783
+ ],
1784
+ "type": "object"
1785
+ },
1786
+ "PlotTransformSpec<(\"reduce-series\"|\"binning-events\")>": {
1787
+ "description": "Reshapes the table before plotting.",
1788
+ "properties": {
1789
+ "options": {
1790
+ "additionalProperties": {},
1791
+ "type": "object"
1792
+ },
1793
+ "preset": {
1794
+ "enum": [
1795
+ "reduce-series",
1796
+ "binning-events"
1797
+ ],
1798
+ "type": "string"
1799
+ }
1800
+ },
1801
+ "required": [
1802
+ "preset"
1803
+ ],
1804
+ "type": "object"
1805
+ },
1806
+ "Point": {
1807
+ "description": "Point geometry object. https://tools.ietf.org/html/rfc7946#section-3.1.2",
1808
+ "properties": {
1809
+ "bbox": {
1810
+ "$ref": "#/definitions/BBox",
1811
+ "description": "Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections. The value of the bbox member is an array of length 2*n where n is the number of dimensions represented in the contained geometries, with all axes of the most southwesterly point followed by all axes of the more northeasterly point. The axes order of a bbox follows the axes order of geometries. https://tools.ietf.org/html/rfc7946#section-5"
1812
+ },
1813
+ "coordinates": {
1814
+ "$ref": "#/definitions/Position"
1815
+ },
1816
+ "type": {
1817
+ "const": "Point",
1818
+ "description": "Specifies the type of GeoJSON object.",
1819
+ "type": "string"
1820
+ }
1821
+ },
1822
+ "required": [
1823
+ "coordinates",
1824
+ "type"
1825
+ ],
1826
+ "type": "object"
1827
+ },
1828
+ "Polygon": {
1829
+ "description": "Polygon geometry object. https://tools.ietf.org/html/rfc7946#section-3.1.6",
1830
+ "properties": {
1831
+ "bbox": {
1832
+ "$ref": "#/definitions/BBox",
1833
+ "description": "Bounding box of the coordinate range of the object's Geometries, Features, or Feature Collections. The value of the bbox member is an array of length 2*n where n is the number of dimensions represented in the contained geometries, with all axes of the most southwesterly point followed by all axes of the more northeasterly point. The axes order of a bbox follows the axes order of geometries. https://tools.ietf.org/html/rfc7946#section-5"
1834
+ },
1835
+ "coordinates": {
1836
+ "items": {
1837
+ "items": {
1838
+ "$ref": "#/definitions/Position"
1839
+ },
1840
+ "type": "array"
1841
+ },
1842
+ "type": "array"
1843
+ },
1844
+ "type": {
1845
+ "const": "Polygon",
1846
+ "description": "Specifies the type of GeoJSON object.",
1847
+ "type": "string"
1848
+ }
1849
+ },
1850
+ "required": [
1851
+ "coordinates",
1852
+ "type"
1853
+ ],
1854
+ "type": "object"
1855
+ },
1856
+ "Position": {
1857
+ "description": "A Position is an array of coordinates. https://tools.ietf.org/html/rfc7946#section-3.1.1 Array should contain between two and three elements. The previous GeoJSON specification allowed more elements (e.g., which could be used to represent M values), but the current specification only allows X, Y, and (optionally) Z to be defined.\n\nNote: the type will not be narrowed down to `[number, number] | [number, number, number]` due to marginal benefits and the large impact of breaking change.\n\nSee previous discussions on the type narrowing:\n- {@link https://github.com/DefinitelyTyped/DefinitelyTyped/pull/21590 Nov 2017 } \n- {@link https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/67773 Dec 2023 } \n- {@link https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/71441 Dec 2024 } \n\nOne can use a {@link https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates user-defined type guard that returns a type predicate } to determine if a position is a 2D or 3D position.",
1858
+ "items": {
1859
+ "type": "number"
1860
+ },
1861
+ "type": "array"
1862
+ },
1863
+ "ScatterPlotSpec": {
1864
+ "description": "A scatterplot of two or more columns.",
1865
+ "properties": {
1866
+ "axis": {
1867
+ "description": "Columns to plot, in axis order. At least two are required.",
1868
+ "items": {
1869
+ "type": "string"
1870
+ },
1871
+ "minItems": 2,
1872
+ "type": "array"
1873
+ },
1874
+ "color": {
1875
+ "type": "string"
1876
+ },
1877
+ "dataRef": {
1878
+ "description": "Name of the table to plot.",
1879
+ "type": "string"
1880
+ },
1881
+ "events": {
1882
+ "description": "Interactions the plot emits.",
1883
+ "items": {
1884
+ "$ref": "#/definitions/PlotEvent"
1885
+ },
1886
+ "type": "array"
1887
+ },
1888
+ "height": {
1889
+ "type": "number"
1890
+ },
1891
+ "mapRef": {
1892
+ "description": "Layer id of a map this plot links its selection to.",
1893
+ "type": "string"
1894
+ },
1895
+ "margins": {
1896
+ "properties": {
1897
+ "bottom": {
1898
+ "type": "number"
1899
+ },
1900
+ "left": {
1901
+ "type": "number"
1902
+ },
1903
+ "right": {
1904
+ "type": "number"
1905
+ },
1906
+ "top": {
1907
+ "type": "number"
1908
+ }
1909
+ },
1910
+ "required": [
1911
+ "left",
1912
+ "right",
1913
+ "top",
1914
+ "bottom"
1915
+ ],
1916
+ "type": "object"
1917
+ },
1918
+ "mark": {
1919
+ "const": "scatter",
1920
+ "type": "string"
1921
+ },
1922
+ "title": {
1923
+ "type": "string"
1924
+ },
1925
+ "transform": {
1926
+ "$ref": "#/definitions/PlotTransformSpec"
1927
+ },
1928
+ "width": {
1929
+ "type": "number"
1930
+ }
1931
+ },
1932
+ "required": [
1933
+ "axis",
1934
+ "dataRef",
1935
+ "mark"
1936
+ ],
1937
+ "type": "object"
1938
+ },
1939
+ "TablePlotSpec": {
1940
+ "description": "A table. A transform, when given, must be `sort`.",
1941
+ "properties": {
1942
+ "axis": {
1943
+ "description": "Columns to plot, in axis order. At least one is required.",
1944
+ "items": {
1945
+ "type": "string"
1946
+ },
1947
+ "minItems": 1,
1948
+ "type": "array"
1949
+ },
1950
+ "color": {
1951
+ "type": "string"
1952
+ },
1953
+ "dataRef": {
1954
+ "description": "Name of the table to plot.",
1955
+ "type": "string"
1956
+ },
1957
+ "events": {
1958
+ "description": "Interactions the plot emits.",
1959
+ "items": {
1960
+ "$ref": "#/definitions/PlotEvent"
1961
+ },
1962
+ "type": "array"
1963
+ },
1964
+ "height": {
1965
+ "type": "number"
1966
+ },
1967
+ "mapRef": {
1968
+ "description": "Layer id of a map this plot links its selection to.",
1969
+ "type": "string"
1970
+ },
1971
+ "margins": {
1972
+ "properties": {
1973
+ "bottom": {
1974
+ "type": "number"
1975
+ },
1976
+ "left": {
1977
+ "type": "number"
1978
+ },
1979
+ "right": {
1980
+ "type": "number"
1981
+ },
1982
+ "top": {
1983
+ "type": "number"
1984
+ }
1985
+ },
1986
+ "required": [
1987
+ "left",
1988
+ "right",
1989
+ "top",
1990
+ "bottom"
1991
+ ],
1992
+ "type": "object"
1993
+ },
1994
+ "mark": {
1995
+ "const": "table",
1996
+ "type": "string"
1997
+ },
1998
+ "title": {
1999
+ "type": "string"
2000
+ },
2001
+ "transform": {
2002
+ "$ref": "#/definitions/PlotTransformSpec%3C%22sort%22%3E"
2003
+ },
2004
+ "width": {
2005
+ "type": "number"
2006
+ }
2007
+ },
2008
+ "required": [
2009
+ "axis",
2010
+ "dataRef",
2011
+ "mark"
2012
+ ],
2013
+ "type": "object"
2014
+ },
2015
+ "UrbanSpec": {
2016
+ "description": "An Autark grammar specification. It names at least one of `data`, `compute`, `map` or `plot`.",
2017
+ "properties": {
2018
+ "$schema": {
2019
+ "description": "URL of the JSON Schema this specification follows.",
2020
+ "type": "string"
2021
+ },
2022
+ "compute": {
2023
+ "description": "Compute passes, run in order after the data is loaded.",
2024
+ "items": {
2025
+ "$ref": "#/definitions/ComputeSpec"
2026
+ },
2027
+ "type": "array"
2028
+ },
2029
+ "data": {
2030
+ "description": "Tables to load, in order.",
2031
+ "items": {
2032
+ "$ref": "#/definitions/DataSourceSpec"
2033
+ },
2034
+ "type": "array"
2035
+ },
2036
+ "map": {
2037
+ "anyOf": [
2038
+ {
2039
+ "items": {
2040
+ "$ref": "#/definitions/MapSpec"
2041
+ },
2042
+ "type": "array"
2043
+ },
2044
+ {
2045
+ "$ref": "#/definitions/MapSpec"
2046
+ }
2047
+ ],
2048
+ "description": "One map, or several."
2049
+ },
2050
+ "plot": {
2051
+ "anyOf": [
2052
+ {
2053
+ "items": {
2054
+ "$ref": "#/definitions/PlotSpec"
2055
+ },
2056
+ "type": "array"
2057
+ },
2058
+ {
2059
+ "$ref": "#/definitions/PlotSpec"
2060
+ }
2061
+ ],
2062
+ "description": "One plot, or several."
2063
+ }
2064
+ },
2065
+ "type": "object"
2066
+ },
2067
+ "WktGeometryColumns": {
2068
+ "description": "Geometry from one column holding WKT text such as `POLYGON((...))`. Read by the Autark adapter only.",
2069
+ "properties": {
2070
+ "coordinateFormat": {
2071
+ "description": "CRS of the geometry, as an EPSG string. Defaults to `'EPSG:4326'`.",
2072
+ "type": "string"
2073
+ },
2074
+ "wktColumnName": {
2075
+ "type": "string"
2076
+ }
2077
+ },
2078
+ "required": [
2079
+ "wktColumnName"
2080
+ ],
2081
+ "type": "object"
2082
+ }
2083
+ }
2084
+ }