@genome-spy/core 0.15.0 → 0.16.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.
- package/LICENSE +7 -7
- package/README.md +16 -0
- package/dist/genome-spy-schema.json +816 -624
- package/dist/index.js +42 -42
- package/dist/style.css +1 -1
- package/package.json +3 -2
- package/src/data/sources/dataUtils.js +50 -3
- package/src/data/sources/dynamicCallbackSource.js +2 -1
- package/src/data/sources/dynamicSource.js +2 -1
- package/src/data/sources/inlineSource.js +3 -5
- package/src/data/sources/namedSource.js +3 -7
- package/src/data/sources/urlSource.js +1 -1
- package/src/data/transforms/aggregate.js +1 -0
- package/src/data/transforms/flattenDelimited.js +6 -0
- package/src/data/transforms/regexFold.js +1 -1
- package/src/data/transforms/stack.js +3 -3
- package/src/embedApi.d.ts +59 -0
- package/src/encoder/accessor.js +6 -6
- package/src/encoder/encoder.js +47 -22
- package/src/genome/scaleIndex.d.ts +38 -0
- package/src/genome/scaleIndex.js +18 -52
- package/src/genome/scaleLocus.d.ts +11 -0
- package/src/genome/scaleLocus.js +12 -16
- package/src/genomeSpy.js +1 -1
- package/src/gl/dataToVertices.js +14 -6
- package/src/gl/includes/fp64-utils.js +10 -0
- package/src/gl/includes/scales.glsl +2 -0
- package/src/gl/webGLHelper.js +3 -1
- package/src/index.js +6 -28
- package/src/marks/link.js +1 -12
- package/src/marks/mark.js +27 -5
- package/src/marks/markUtils.js +41 -25
- package/src/marks/pointMark.js +5 -2
- package/src/marks/rule.js +11 -2
- package/src/scale/glslScaleGenerator.js +16 -29
- package/src/scale/scale.js +10 -0
- package/src/scale/ticks.js +11 -6
- package/src/spec/channel.d.ts +343 -43
- package/src/spec/data.d.ts +14 -3
- package/src/spec/scale.d.ts +18 -1
- package/src/spec/view.d.ts +12 -6
- package/src/tooltip/refseqGeneTooltipHandler.js +1 -0
- package/src/types/filetypes.d.ts +10 -0
- package/src/types/internmap.d.ts +22 -0
- package/src/types/vega-loader.d.ts +1 -0
- package/src/utils/arrayUtils.js +12 -6
- package/src/utils/cloner.js +5 -3
- package/src/utils/concatIterables.js +2 -2
- package/src/utils/domainArray.js +0 -8
- package/src/utils/propertyCoalescer.js +9 -4
- package/src/view/axisResolution.js +11 -6
- package/src/view/axisView.js +8 -5
- package/src/view/decoratorView.js +6 -3
- package/src/view/facetView.js +3 -0
- package/src/view/flowBuilder.js +2 -1
- package/src/view/renderingContext/svgViewRenderingContext.js +7 -3
- package/src/view/scaleResolution.js +52 -32
- package/src/view/testUtils.js +7 -4
- package/src/view/unitView.js +15 -9
- package/src/view/view.js +10 -8
- package/src/view/viewFactory.js +2 -0
- package/src/view/viewUtils.js +4 -4
- package/src/options.d.ts +0 -15
- package/src/utils/fisheye.js +0 -60
- package/src/utils/html.js +0 -23
- package/src/utils/html.test.js +0 -13
- package/src/view/channel.js +0 -5
|
@@ -244,9 +244,6 @@
|
|
|
244
244
|
{
|
|
245
245
|
"$ref": "#/definitions/PositionalChannel"
|
|
246
246
|
},
|
|
247
|
-
{
|
|
248
|
-
"$ref": "#/definitions/SecondaryPositionalChannel"
|
|
249
|
-
},
|
|
250
247
|
{
|
|
251
248
|
"const": "color",
|
|
252
249
|
"type": "string"
|
|
@@ -287,14 +284,6 @@
|
|
|
287
284
|
"const": "text",
|
|
288
285
|
"type": "string"
|
|
289
286
|
},
|
|
290
|
-
{
|
|
291
|
-
"const": "size2",
|
|
292
|
-
"type": "string"
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
"const": "color2",
|
|
296
|
-
"type": "string"
|
|
297
|
-
},
|
|
298
287
|
{
|
|
299
288
|
"const": "angle",
|
|
300
289
|
"type": "string"
|
|
@@ -329,28 +318,6 @@
|
|
|
329
318
|
}
|
|
330
319
|
]
|
|
331
320
|
},
|
|
332
|
-
"ChannelDef": {
|
|
333
|
-
"anyOf": [
|
|
334
|
-
{
|
|
335
|
-
"$ref": "#/definitions/FieldDef"
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
"$ref": "#/definitions/DatumDef"
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
"$ref": "#/definitions/ValueDef"
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
"$ref": "#/definitions/ExprDef"
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
"$ref": "#/definitions/ChromPosDef"
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
"$ref": "#/definitions/FacetFieldDef"
|
|
351
|
-
}
|
|
352
|
-
]
|
|
353
|
-
},
|
|
354
321
|
"ChromPosDef": {
|
|
355
322
|
"additionalProperties": false,
|
|
356
323
|
"properties": {
|
|
@@ -362,23 +329,19 @@
|
|
|
362
329
|
{
|
|
363
330
|
"type": "null"
|
|
364
331
|
}
|
|
365
|
-
]
|
|
332
|
+
],
|
|
333
|
+
"description": "An object defining properties of axis's gridlines, ticks and labels. If `null`, the axis for the encoding channel will be removed.\n\n__Default value:__ If undefined, default [axis properties](https://vega.github.io/vega-lite/docs/axis.html) are applied.\n\n__See also:__ [`axis`](https://vega.github.io/vega-lite/docs/axis.html) documentation."
|
|
366
334
|
},
|
|
367
335
|
"band": {
|
|
368
|
-
"description": "
|
|
336
|
+
"description": "Relative position on band scale. For example, the marks will be positioned at the beginning of the band if set to `0`, and at the middle of the band if set to `0.5`.",
|
|
337
|
+
"maximum": 1,
|
|
338
|
+
"minimum": 0,
|
|
369
339
|
"type": "number"
|
|
370
340
|
},
|
|
371
341
|
"chrom": {
|
|
372
342
|
"$ref": "#/definitions/FieldName",
|
|
373
343
|
"description": "The field having the chromosome or contig."
|
|
374
344
|
},
|
|
375
|
-
"format": {
|
|
376
|
-
"type": "string"
|
|
377
|
-
},
|
|
378
|
-
"fp64": {
|
|
379
|
-
"description": "Use emulated 64 bit floating points to increase precision of scales computed on the GPU. By default, 32 bit floats are used.",
|
|
380
|
-
"type": "boolean"
|
|
381
|
-
},
|
|
382
345
|
"offset": {
|
|
383
346
|
"description": "An offset or offsets that allow for adjusting the numbering base. The offset is subtracted from the positions.\n\nGenomeSpy uses internally zero-based indexing with half-open intervals. UCSC-based formats (BED, etc.) generally use this scheme. However, for example, VCF files use one-based indexing and must be adjusted by setting the offset to `1`.\n\n**Default:** `0`",
|
|
384
347
|
"type": "number"
|
|
@@ -389,12 +352,21 @@
|
|
|
389
352
|
},
|
|
390
353
|
"resolutionChannel": {
|
|
391
354
|
"$ref": "#/definitions/Channel",
|
|
392
|
-
"description": "
|
|
355
|
+
"description": "An alternative channel for scale resolution.\n\nThis is mainly for internal use and allows using `color` channel to resolve `fill` and `stroke` channels under certain circumstances."
|
|
393
356
|
},
|
|
394
357
|
"scale": {
|
|
395
|
-
"
|
|
358
|
+
"anyOf": [
|
|
359
|
+
{
|
|
360
|
+
"$ref": "#/definitions/Scale"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"type": "null"
|
|
364
|
+
}
|
|
365
|
+
],
|
|
366
|
+
"description": "An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels.\n\nIf `null`, the scale will be [disabled and the data value will be directly encoded](https://vega.github.io/vega-lite/docs/scale.html#disable).\n\n__Default value:__ If undefined, default [scale properties](https://vega.github.io/vega-lite/docs/scale.html) are applied.\n\n__See also:__ [`scale`](https://vega.github.io/vega-lite/docs/scale.html) documentation."
|
|
396
367
|
},
|
|
397
368
|
"title": {
|
|
369
|
+
"description": "A title for the field. If `null`, the title will be removed.",
|
|
398
370
|
"type": [
|
|
399
371
|
"string",
|
|
400
372
|
"null"
|
|
@@ -453,6 +425,9 @@
|
|
|
453
425
|
],
|
|
454
426
|
"type": "object"
|
|
455
427
|
},
|
|
428
|
+
"ColorDef<string>": {
|
|
429
|
+
"$ref": "#/definitions/MarkPropDef%3Cstring%2C(string%7Cnull)%3E"
|
|
430
|
+
},
|
|
456
431
|
"CompareParams": {
|
|
457
432
|
"additionalProperties": false,
|
|
458
433
|
"properties": {
|
|
@@ -728,6 +703,9 @@
|
|
|
728
703
|
},
|
|
729
704
|
{
|
|
730
705
|
"$ref": "#/definitions/JsonDataFormat"
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
"$ref": "#/definitions/OtherDataFormat"
|
|
731
709
|
}
|
|
732
710
|
]
|
|
733
711
|
},
|
|
@@ -750,57 +728,6 @@
|
|
|
750
728
|
}
|
|
751
729
|
]
|
|
752
730
|
},
|
|
753
|
-
"DatumDef": {
|
|
754
|
-
"additionalProperties": false,
|
|
755
|
-
"properties": {
|
|
756
|
-
"axis": {
|
|
757
|
-
"anyOf": [
|
|
758
|
-
{
|
|
759
|
-
"$ref": "#/definitions/Axis"
|
|
760
|
-
},
|
|
761
|
-
{
|
|
762
|
-
"type": "null"
|
|
763
|
-
}
|
|
764
|
-
]
|
|
765
|
-
},
|
|
766
|
-
"band": {
|
|
767
|
-
"description": "Offset within a band of a band scale, [0, 1]\n\nTODO: rename to bandPosition: https://github.com/vega/vega-lite/pull/7190",
|
|
768
|
-
"type": "number"
|
|
769
|
-
},
|
|
770
|
-
"datum": {
|
|
771
|
-
"$ref": "#/definitions/Scalar",
|
|
772
|
-
"description": "A constant value on the data domain"
|
|
773
|
-
},
|
|
774
|
-
"format": {
|
|
775
|
-
"type": "string"
|
|
776
|
-
},
|
|
777
|
-
"fp64": {
|
|
778
|
-
"description": "Use emulated 64 bit floating points to increase precision of scales computed on the GPU. By default, 32 bit floats are used.",
|
|
779
|
-
"type": "boolean"
|
|
780
|
-
},
|
|
781
|
-
"resolutionChannel": {
|
|
782
|
-
"$ref": "#/definitions/Channel",
|
|
783
|
-
"description": "Use an alternative channel for scale resolution.\n\nThis is mainly for internal use and allows using `color` channel to resolve `fill` and `stroke` channels under certain circumstances."
|
|
784
|
-
},
|
|
785
|
-
"scale": {
|
|
786
|
-
"$ref": "#/definitions/Scale"
|
|
787
|
-
},
|
|
788
|
-
"title": {
|
|
789
|
-
"type": [
|
|
790
|
-
"string",
|
|
791
|
-
"null"
|
|
792
|
-
]
|
|
793
|
-
},
|
|
794
|
-
"type": {
|
|
795
|
-
"type": "string"
|
|
796
|
-
}
|
|
797
|
-
},
|
|
798
|
-
"required": [
|
|
799
|
-
"datum",
|
|
800
|
-
"type"
|
|
801
|
-
],
|
|
802
|
-
"type": "object"
|
|
803
|
-
},
|
|
804
731
|
"DsvDataFormat": {
|
|
805
732
|
"additionalProperties": false,
|
|
806
733
|
"properties": {
|
|
@@ -879,7 +806,7 @@
|
|
|
879
806
|
"description": "DynamicOpacity specifies a zoom-dependent behavior for view opacity. The opacity is interpolated between the specified stops.",
|
|
880
807
|
"properties": {
|
|
881
808
|
"channel": {
|
|
882
|
-
"$ref": "#/definitions/
|
|
809
|
+
"$ref": "#/definitions/PrimaryPositionalChannel"
|
|
883
810
|
},
|
|
884
811
|
"unitsPerPixel": {
|
|
885
812
|
"description": "Stops expressed as units (base pairs, for example) per pixel.",
|
|
@@ -903,505 +830,114 @@
|
|
|
903
830
|
"type": "object"
|
|
904
831
|
},
|
|
905
832
|
"Encoding": {
|
|
906
|
-
"additionalProperties":
|
|
907
|
-
"anyOf": [
|
|
908
|
-
{
|
|
909
|
-
"$ref": "#/definitions/ChannelDef"
|
|
910
|
-
},
|
|
911
|
-
{
|
|
912
|
-
"type": "null"
|
|
913
|
-
}
|
|
914
|
-
]
|
|
915
|
-
},
|
|
833
|
+
"additionalProperties": false,
|
|
916
834
|
"properties": {
|
|
917
835
|
"angle": {
|
|
918
|
-
"
|
|
919
|
-
|
|
920
|
-
"$ref": "#/definitions/ChannelDef"
|
|
921
|
-
},
|
|
922
|
-
{
|
|
923
|
-
"type": "null"
|
|
924
|
-
}
|
|
925
|
-
]
|
|
836
|
+
"$ref": "#/definitions/NumericMarkPropDef%3Cstring%3E",
|
|
837
|
+
"description": "Rotation angle of point and text marks."
|
|
926
838
|
},
|
|
927
839
|
"color": {
|
|
928
|
-
"
|
|
929
|
-
|
|
930
|
-
"$ref": "#/definitions/ChannelDef"
|
|
931
|
-
},
|
|
932
|
-
{
|
|
933
|
-
"type": "null"
|
|
934
|
-
}
|
|
935
|
-
]
|
|
936
|
-
},
|
|
937
|
-
"color2": {
|
|
938
|
-
"anyOf": [
|
|
939
|
-
{
|
|
940
|
-
"$ref": "#/definitions/ChannelDef"
|
|
941
|
-
},
|
|
942
|
-
{
|
|
943
|
-
"type": "null"
|
|
944
|
-
}
|
|
945
|
-
]
|
|
840
|
+
"$ref": "#/definitions/ColorDef%3Cstring%3E",
|
|
841
|
+
"description": "Color of the marks – either fill or stroke color based on the `filled` property of mark definition.\n\n_Note:_ 1) For fine-grained control over both fill and stroke colors of the marks, please use the `fill` and `stroke` channels. The `fill` or `stroke` encodings have higher precedence than `color`, thus may override the `color` encoding if conflicting encodings are specified. 2) See the scale documentation for more information about customizing [color scheme](https://vega.github.io/vega-lite/docs/scale.html#scheme)."
|
|
946
842
|
},
|
|
947
843
|
"dx": {
|
|
948
|
-
"
|
|
949
|
-
{
|
|
950
|
-
"$ref": "#/definitions/ChannelDef"
|
|
951
|
-
},
|
|
952
|
-
{
|
|
953
|
-
"type": "null"
|
|
954
|
-
}
|
|
955
|
-
]
|
|
844
|
+
"$ref": "#/definitions/NumericMarkPropDef%3Cstring%3E"
|
|
956
845
|
},
|
|
957
846
|
"dy": {
|
|
958
|
-
"
|
|
959
|
-
{
|
|
960
|
-
"$ref": "#/definitions/ChannelDef"
|
|
961
|
-
},
|
|
962
|
-
{
|
|
963
|
-
"type": "null"
|
|
964
|
-
}
|
|
965
|
-
]
|
|
847
|
+
"$ref": "#/definitions/NumericMarkPropDef%3Cstring%3E"
|
|
966
848
|
},
|
|
967
849
|
"facetIndex": {
|
|
968
|
-
"
|
|
969
|
-
|
|
970
|
-
"$ref": "#/definitions/ChannelDef"
|
|
971
|
-
},
|
|
972
|
-
{
|
|
973
|
-
"type": "null"
|
|
974
|
-
}
|
|
975
|
-
]
|
|
850
|
+
"$ref": "#/definitions/FieldDefWithoutScale%3Cstring%3E",
|
|
851
|
+
"description": "For internal use"
|
|
976
852
|
},
|
|
977
853
|
"fill": {
|
|
978
|
-
"
|
|
979
|
-
|
|
980
|
-
"$ref": "#/definitions/ChannelDef"
|
|
981
|
-
},
|
|
982
|
-
{
|
|
983
|
-
"type": "null"
|
|
984
|
-
}
|
|
985
|
-
]
|
|
854
|
+
"$ref": "#/definitions/ColorDef%3Cstring%3E",
|
|
855
|
+
"description": "Fill color of the marks.\n\n_Note:_ The `fill` encoding has higher precedence than `color`, thus may override the `color` encoding if conflicting encodings are specified."
|
|
986
856
|
},
|
|
987
857
|
"fillOpacity": {
|
|
988
|
-
"
|
|
989
|
-
|
|
990
|
-
"$ref": "#/definitions/ChannelDef"
|
|
991
|
-
},
|
|
992
|
-
{
|
|
993
|
-
"type": "null"
|
|
994
|
-
}
|
|
995
|
-
]
|
|
858
|
+
"$ref": "#/definitions/NumericMarkPropDef%3Cstring%3E",
|
|
859
|
+
"description": "Fill opacity of the marks."
|
|
996
860
|
},
|
|
997
861
|
"opacity": {
|
|
998
|
-
"
|
|
999
|
-
|
|
1000
|
-
"$ref": "#/definitions/ChannelDef"
|
|
1001
|
-
},
|
|
1002
|
-
{
|
|
1003
|
-
"type": "null"
|
|
1004
|
-
}
|
|
1005
|
-
]
|
|
862
|
+
"$ref": "#/definitions/NumericMarkPropDef%3Cstring%3E",
|
|
863
|
+
"description": "Opacity of the marks."
|
|
1006
864
|
},
|
|
1007
865
|
"sample": {
|
|
1008
|
-
"
|
|
1009
|
-
|
|
1010
|
-
"$ref": "#/definitions/ChannelDef"
|
|
1011
|
-
},
|
|
1012
|
-
{
|
|
1013
|
-
"type": "null"
|
|
1014
|
-
}
|
|
1015
|
-
]
|
|
866
|
+
"$ref": "#/definitions/FieldDefWithoutScale%3Cstring%3E",
|
|
867
|
+
"description": "Facet identifier for interactive filtering, sorting, and grouping in the App."
|
|
1016
868
|
},
|
|
1017
869
|
"search": {
|
|
1018
|
-
"
|
|
1019
|
-
{
|
|
1020
|
-
"$ref": "#/definitions/ChannelDef"
|
|
1021
|
-
},
|
|
1022
|
-
{
|
|
1023
|
-
"type": "null"
|
|
1024
|
-
}
|
|
1025
|
-
]
|
|
870
|
+
"$ref": "#/definitions/FieldDefWithoutScale%3Cstring%3E"
|
|
1026
871
|
},
|
|
1027
872
|
"semanticScore": {
|
|
1028
|
-
"
|
|
1029
|
-
{
|
|
1030
|
-
"$ref": "#/definitions/ChannelDef"
|
|
1031
|
-
},
|
|
1032
|
-
{
|
|
1033
|
-
"type": "null"
|
|
1034
|
-
}
|
|
1035
|
-
]
|
|
873
|
+
"$ref": "#/definitions/FieldDefWithoutScale%3Cstring%3E"
|
|
1036
874
|
},
|
|
1037
875
|
"shape": {
|
|
1038
|
-
"
|
|
1039
|
-
|
|
1040
|
-
"$ref": "#/definitions/ChannelDef"
|
|
1041
|
-
},
|
|
1042
|
-
{
|
|
1043
|
-
"type": "null"
|
|
1044
|
-
}
|
|
1045
|
-
]
|
|
876
|
+
"$ref": "#/definitions/ShapeDef%3Cstring%3E",
|
|
877
|
+
"description": "Shape of the mark.\n\nFor `point` marks the supported values include:\n- plotting shapes: `\"circle\"`, `\"square\"`, `\"cross\"`, `\"diamond\"`, `\"triangle-up\"`, `\"triangle-down\"`, `\"triangle-right\"`, or `\"triangle-left\"`.\n- centered directional shape `\"triangle\"`"
|
|
1046
878
|
},
|
|
1047
879
|
"size": {
|
|
1048
|
-
"
|
|
1049
|
-
|
|
1050
|
-
"$ref": "#/definitions/ChannelDef"
|
|
1051
|
-
},
|
|
1052
|
-
{
|
|
1053
|
-
"type": "null"
|
|
1054
|
-
}
|
|
1055
|
-
]
|
|
1056
|
-
},
|
|
1057
|
-
"size2": {
|
|
1058
|
-
"anyOf": [
|
|
1059
|
-
{
|
|
1060
|
-
"$ref": "#/definitions/ChannelDef"
|
|
1061
|
-
},
|
|
1062
|
-
{
|
|
1063
|
-
"type": "null"
|
|
1064
|
-
}
|
|
1065
|
-
]
|
|
880
|
+
"$ref": "#/definitions/NumericMarkPropDef%3Cstring%3E",
|
|
881
|
+
"description": "Size of the mark.\n- For `\"point\"` – the symbol size, or pixel area of the mark.\n- For `\"text\"` – the text's font size."
|
|
1066
882
|
},
|
|
1067
883
|
"stroke": {
|
|
1068
|
-
"
|
|
1069
|
-
|
|
1070
|
-
"$ref": "#/definitions/ChannelDef"
|
|
1071
|
-
},
|
|
1072
|
-
{
|
|
1073
|
-
"type": "null"
|
|
1074
|
-
}
|
|
1075
|
-
]
|
|
884
|
+
"$ref": "#/definitions/ColorDef%3Cstring%3E",
|
|
885
|
+
"description": "Stroke color of the marks.\n\n_Note:_ The `stroke` encoding has higher precedence than `color`, thus may override the `color` encoding if conflicting encodings are specified."
|
|
1076
886
|
},
|
|
1077
887
|
"strokeOpacity": {
|
|
1078
|
-
"
|
|
1079
|
-
|
|
1080
|
-
"$ref": "#/definitions/ChannelDef"
|
|
1081
|
-
},
|
|
1082
|
-
{
|
|
1083
|
-
"type": "null"
|
|
1084
|
-
}
|
|
1085
|
-
]
|
|
888
|
+
"$ref": "#/definitions/NumericMarkPropDef%3Cstring%3E",
|
|
889
|
+
"description": "Stroke opacity of the marks."
|
|
1086
890
|
},
|
|
1087
891
|
"strokeWidth": {
|
|
1088
|
-
"
|
|
1089
|
-
|
|
1090
|
-
"$ref": "#/definitions/ChannelDef"
|
|
1091
|
-
},
|
|
1092
|
-
{
|
|
1093
|
-
"type": "null"
|
|
1094
|
-
}
|
|
1095
|
-
]
|
|
892
|
+
"$ref": "#/definitions/NumericMarkPropDef%3Cstring%3E",
|
|
893
|
+
"description": "Stroke width of the marks."
|
|
1096
894
|
},
|
|
1097
895
|
"text": {
|
|
1098
|
-
"
|
|
1099
|
-
|
|
1100
|
-
"$ref": "#/definitions/ChannelDef"
|
|
1101
|
-
},
|
|
1102
|
-
{
|
|
1103
|
-
"type": "null"
|
|
1104
|
-
}
|
|
1105
|
-
]
|
|
896
|
+
"$ref": "#/definitions/TextDef%3Cstring%3E",
|
|
897
|
+
"description": "Text of the `text` mark."
|
|
1106
898
|
},
|
|
1107
899
|
"uniqueId": {
|
|
1108
|
-
"
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
900
|
+
"$ref": "#/definitions/FieldDefWithoutScale%3Cstring%3E",
|
|
901
|
+
"description": "For internal use"
|
|
902
|
+
},
|
|
903
|
+
"x": {
|
|
904
|
+
"$ref": "#/definitions/PositionDef%3Cstring%3E",
|
|
905
|
+
"description": "X coordinates of the marks.\n\nThe `value` of this channel can be a number between zero and one."
|
|
906
|
+
},
|
|
907
|
+
"x2": {
|
|
908
|
+
"$ref": "#/definitions/Position2Def%3Cstring%3E",
|
|
909
|
+
"description": "X2 coordinates of the marks.\n\nThe `value` of this channel can be a number between zero and one."
|
|
910
|
+
},
|
|
911
|
+
"y": {
|
|
912
|
+
"$ref": "#/definitions/PositionDef%3Cstring%3E",
|
|
913
|
+
"description": "Y coordinates of the marks.\n\nThe `value` of this channel can be a number between zero and one."
|
|
914
|
+
},
|
|
915
|
+
"y2": {
|
|
916
|
+
"$ref": "#/definitions/Position2Def%3Cstring%3E",
|
|
917
|
+
"description": "Y2 coordinates of the marks.\n\nThe `value` of this channel can be a number between zero and one."
|
|
1116
918
|
}
|
|
1117
919
|
},
|
|
1118
920
|
"type": "object"
|
|
1119
921
|
},
|
|
1120
|
-
"
|
|
922
|
+
"Field": {
|
|
923
|
+
"description": "The name of the field or a JavaScript expression for accessing nested properties. Dots and brackets in the field name must be escaped.",
|
|
924
|
+
"type": "string"
|
|
925
|
+
},
|
|
926
|
+
"FieldDefWithoutScale<string>": {
|
|
1121
927
|
"additionalProperties": false,
|
|
1122
928
|
"properties": {
|
|
1123
|
-
"axis": {
|
|
1124
|
-
"anyOf": [
|
|
1125
|
-
{
|
|
1126
|
-
"$ref": "#/definitions/Axis"
|
|
1127
|
-
},
|
|
1128
|
-
{
|
|
1129
|
-
"type": "null"
|
|
1130
|
-
}
|
|
1131
|
-
]
|
|
1132
|
-
},
|
|
1133
|
-
"band": {
|
|
1134
|
-
"description": "Offset within a band of a band scale, [0, 1]\n\nTODO: rename to bandPosition: https://github.com/vega/vega-lite/pull/7190",
|
|
1135
|
-
"type": "number"
|
|
1136
|
-
},
|
|
1137
|
-
"expr": {
|
|
1138
|
-
"description": "An expression. Properties of the data can be accessed through the `datum` object.",
|
|
1139
|
-
"type": "string"
|
|
1140
|
-
},
|
|
1141
|
-
"format": {
|
|
1142
|
-
"type": "string"
|
|
1143
|
-
},
|
|
1144
|
-
"fp64": {
|
|
1145
|
-
"description": "Use emulated 64 bit floating points to increase precision of scales computed on the GPU. By default, 32 bit floats are used.",
|
|
1146
|
-
"type": "boolean"
|
|
1147
|
-
},
|
|
1148
|
-
"resolutionChannel": {
|
|
1149
|
-
"$ref": "#/definitions/Channel",
|
|
1150
|
-
"description": "Use an alternative channel for scale resolution.\n\nThis is mainly for internal use and allows using `color` channel to resolve `fill` and `stroke` channels under certain circumstances."
|
|
1151
|
-
},
|
|
1152
|
-
"scale": {
|
|
1153
|
-
"$ref": "#/definitions/Scale"
|
|
1154
|
-
},
|
|
1155
|
-
"title": {
|
|
1156
|
-
"type": [
|
|
1157
|
-
"string",
|
|
1158
|
-
"null"
|
|
1159
|
-
]
|
|
1160
|
-
},
|
|
1161
|
-
"type": {
|
|
1162
|
-
"type": "string"
|
|
1163
|
-
}
|
|
1164
|
-
},
|
|
1165
|
-
"required": [
|
|
1166
|
-
"expr",
|
|
1167
|
-
"type"
|
|
1168
|
-
],
|
|
1169
|
-
"type": "object"
|
|
1170
|
-
},
|
|
1171
|
-
"FacetFieldDef": {
|
|
1172
|
-
"additionalProperties": false,
|
|
1173
|
-
"properties": {
|
|
1174
|
-
"field": {
|
|
1175
|
-
"$ref": "#/definitions/FieldName"
|
|
1176
|
-
},
|
|
1177
|
-
"spacing": {
|
|
1178
|
-
"type": "number"
|
|
1179
|
-
},
|
|
1180
|
-
"title": {
|
|
1181
|
-
"type": [
|
|
1182
|
-
"string",
|
|
1183
|
-
"null"
|
|
1184
|
-
]
|
|
1185
|
-
}
|
|
1186
|
-
},
|
|
1187
|
-
"required": [
|
|
1188
|
-
"field"
|
|
1189
|
-
],
|
|
1190
|
-
"type": "object"
|
|
1191
|
-
},
|
|
1192
|
-
"FacetMapping": {
|
|
1193
|
-
"additionalProperties": false,
|
|
1194
|
-
"properties": {
|
|
1195
|
-
"column": {
|
|
1196
|
-
"$ref": "#/definitions/FacetFieldDef"
|
|
1197
|
-
},
|
|
1198
|
-
"row": {
|
|
1199
|
-
"$ref": "#/definitions/FacetFieldDef"
|
|
1200
|
-
}
|
|
1201
|
-
},
|
|
1202
|
-
"type": "object"
|
|
1203
|
-
},
|
|
1204
|
-
"FacetSpec": {
|
|
1205
|
-
"additionalProperties": false,
|
|
1206
|
-
"properties": {
|
|
1207
|
-
"baseUrl": {
|
|
1208
|
-
"type": "string"
|
|
1209
|
-
},
|
|
1210
|
-
"columns": {
|
|
1211
|
-
"type": "number"
|
|
1212
|
-
},
|
|
1213
|
-
"configurableVisibility": {
|
|
1214
|
-
"description": "Is the visibility configurable interactively from the App. Configurability requires that the view has an explicitly specified name that is *unique* in within the view specification.\n\n**Default:** `false` for children of `layer`, `true` for others.",
|
|
1215
|
-
"type": "boolean"
|
|
1216
|
-
},
|
|
1217
|
-
"data": {
|
|
1218
|
-
"$ref": "#/definitions/Data"
|
|
1219
|
-
},
|
|
1220
|
-
"description": {
|
|
1221
|
-
"anyOf": [
|
|
1222
|
-
{
|
|
1223
|
-
"type": "string"
|
|
1224
|
-
},
|
|
1225
|
-
{
|
|
1226
|
-
"items": {
|
|
1227
|
-
"type": "string"
|
|
1228
|
-
},
|
|
1229
|
-
"type": "array"
|
|
1230
|
-
}
|
|
1231
|
-
],
|
|
1232
|
-
"description": "A description of the view. Multiple lines can be provided as an array."
|
|
1233
|
-
},
|
|
1234
|
-
"encoding": {
|
|
1235
|
-
"$ref": "#/definitions/Encoding"
|
|
1236
|
-
},
|
|
1237
|
-
"facet": {
|
|
1238
|
-
"anyOf": [
|
|
1239
|
-
{
|
|
1240
|
-
"$ref": "#/definitions/FacetFieldDef"
|
|
1241
|
-
},
|
|
1242
|
-
{
|
|
1243
|
-
"$ref": "#/definitions/FacetMapping"
|
|
1244
|
-
}
|
|
1245
|
-
]
|
|
1246
|
-
},
|
|
1247
|
-
"height": {
|
|
1248
|
-
"anyOf": [
|
|
1249
|
-
{
|
|
1250
|
-
"$ref": "#/definitions/SizeDef"
|
|
1251
|
-
},
|
|
1252
|
-
{
|
|
1253
|
-
"type": "number"
|
|
1254
|
-
},
|
|
1255
|
-
{
|
|
1256
|
-
"$ref": "#/definitions/Step"
|
|
1257
|
-
},
|
|
1258
|
-
{
|
|
1259
|
-
"const": "container",
|
|
1260
|
-
"type": "string"
|
|
1261
|
-
}
|
|
1262
|
-
]
|
|
1263
|
-
},
|
|
1264
|
-
"name": {
|
|
1265
|
-
"type": "string"
|
|
1266
|
-
},
|
|
1267
|
-
"opacity": {
|
|
1268
|
-
"$ref": "#/definitions/ViewOpacityDef",
|
|
1269
|
-
"description": "Opacity of the view and all its children.\n\n**Default:* `1.0`"
|
|
1270
|
-
},
|
|
1271
|
-
"padding": {
|
|
1272
|
-
"$ref": "#/definitions/PaddingConfig",
|
|
1273
|
-
"description": "Padding in pixels.\n\n**Default:* `0`"
|
|
1274
|
-
},
|
|
1275
|
-
"resolve": {
|
|
1276
|
-
"additionalProperties": false,
|
|
1277
|
-
"properties": {
|
|
1278
|
-
"axis": {
|
|
1279
|
-
"additionalProperties": {
|
|
1280
|
-
"$ref": "#/definitions/ResolutionBehavior"
|
|
1281
|
-
},
|
|
1282
|
-
"properties": {
|
|
1283
|
-
"default": {
|
|
1284
|
-
"$ref": "#/definitions/ResolutionBehavior"
|
|
1285
|
-
}
|
|
1286
|
-
},
|
|
1287
|
-
"type": "object"
|
|
1288
|
-
},
|
|
1289
|
-
"scale": {
|
|
1290
|
-
"additionalProperties": {
|
|
1291
|
-
"$ref": "#/definitions/ResolutionBehavior"
|
|
1292
|
-
},
|
|
1293
|
-
"properties": {
|
|
1294
|
-
"default": {
|
|
1295
|
-
"$ref": "#/definitions/ResolutionBehavior"
|
|
1296
|
-
}
|
|
1297
|
-
},
|
|
1298
|
-
"type": "object"
|
|
1299
|
-
}
|
|
1300
|
-
},
|
|
1301
|
-
"type": "object"
|
|
1302
|
-
},
|
|
1303
|
-
"spacing": {
|
|
1304
|
-
"type": "number"
|
|
1305
|
-
},
|
|
1306
|
-
"spec": {
|
|
1307
|
-
"anyOf": [
|
|
1308
|
-
{
|
|
1309
|
-
"$ref": "#/definitions/LayerSpec"
|
|
1310
|
-
},
|
|
1311
|
-
{
|
|
1312
|
-
"$ref": "#/definitions/UnitSpec"
|
|
1313
|
-
}
|
|
1314
|
-
]
|
|
1315
|
-
},
|
|
1316
|
-
"title": {
|
|
1317
|
-
"type": "string"
|
|
1318
|
-
},
|
|
1319
|
-
"transform": {
|
|
1320
|
-
"items": {
|
|
1321
|
-
"$ref": "#/definitions/TransformParams"
|
|
1322
|
-
},
|
|
1323
|
-
"type": "array"
|
|
1324
|
-
},
|
|
1325
|
-
"visible": {
|
|
1326
|
-
"description": "Visibility of the view. An invisible view is removed from the layout and not rendered.\n\n**Default:** `true`",
|
|
1327
|
-
"type": "boolean"
|
|
1328
|
-
},
|
|
1329
|
-
"width": {
|
|
1330
|
-
"anyOf": [
|
|
1331
|
-
{
|
|
1332
|
-
"$ref": "#/definitions/SizeDef"
|
|
1333
|
-
},
|
|
1334
|
-
{
|
|
1335
|
-
"type": "number"
|
|
1336
|
-
},
|
|
1337
|
-
{
|
|
1338
|
-
"$ref": "#/definitions/Step"
|
|
1339
|
-
},
|
|
1340
|
-
{
|
|
1341
|
-
"const": "container",
|
|
1342
|
-
"type": "string"
|
|
1343
|
-
}
|
|
1344
|
-
]
|
|
1345
|
-
}
|
|
1346
|
-
},
|
|
1347
|
-
"required": [
|
|
1348
|
-
"facet",
|
|
1349
|
-
"spec"
|
|
1350
|
-
],
|
|
1351
|
-
"type": "object"
|
|
1352
|
-
},
|
|
1353
|
-
"Field": {
|
|
1354
|
-
"description": "The name of the field or a JavaScript expression for accessing nested properties. Dots and brackets in the field name must be escaped.",
|
|
1355
|
-
"type": "string"
|
|
1356
|
-
},
|
|
1357
|
-
"FieldDef": {
|
|
1358
|
-
"additionalProperties": false,
|
|
1359
|
-
"properties": {
|
|
1360
|
-
"axis": {
|
|
1361
|
-
"anyOf": [
|
|
1362
|
-
{
|
|
1363
|
-
"$ref": "#/definitions/Axis"
|
|
1364
|
-
},
|
|
1365
|
-
{
|
|
1366
|
-
"type": "null"
|
|
1367
|
-
}
|
|
1368
|
-
]
|
|
1369
|
-
},
|
|
1370
|
-
"band": {
|
|
1371
|
-
"description": "Offset within a band of a band scale, [0, 1]\n\nTODO: rename to bandPosition: https://github.com/vega/vega-lite/pull/7190",
|
|
1372
|
-
"type": "number"
|
|
1373
|
-
},
|
|
1374
929
|
"field": {
|
|
1375
|
-
"
|
|
1376
|
-
},
|
|
1377
|
-
"format": {
|
|
930
|
+
"description": "__Required.__ A string defining the name of the field from which to pull a data value or an object defining iterated values from the [`repeat`](https://vega.github.io/vega-lite/docs/repeat.html) operator.\n\n__See also:__ [`field`](https://vega.github.io/vega-lite/docs/field.html) documentation.\n\n__Notes:__ 1) Dots (`.`) and brackets (`[` and `]`) can be used to access nested objects (e.g., `\"field\": \"foo.bar\"` and `\"field\": \"foo['bar']\"`). If field names contain dots or brackets but are not nested, you can use `\\\\` to escape dots and brackets (e.g., `\"a\\\\.b\"` and `\"a\\\\[0\\\\]\"`). See more details about escaping in the [field documentation](https://vega.github.io/vega-lite/docs/field.html). 2) `field` is not required if `aggregate` is `count`.",
|
|
1378
931
|
"type": "string"
|
|
1379
932
|
},
|
|
1380
|
-
"fp64": {
|
|
1381
|
-
"description": "Use emulated 64 bit floating points to increase precision of scales computed on the GPU. By default, 32 bit floats are used.",
|
|
1382
|
-
"type": "boolean"
|
|
1383
|
-
},
|
|
1384
|
-
"resolutionChannel": {
|
|
1385
|
-
"$ref": "#/definitions/Channel",
|
|
1386
|
-
"description": "Use an alternative channel for scale resolution.\n\nThis is mainly for internal use and allows using `color` channel to resolve `fill` and `stroke` channels under certain circumstances."
|
|
1387
|
-
},
|
|
1388
|
-
"scale": {
|
|
1389
|
-
"$ref": "#/definitions/Scale"
|
|
1390
|
-
},
|
|
1391
933
|
"title": {
|
|
934
|
+
"description": "A title for the field. If `null`, the title will be removed.",
|
|
1392
935
|
"type": [
|
|
1393
936
|
"string",
|
|
1394
937
|
"null"
|
|
1395
938
|
]
|
|
1396
|
-
},
|
|
1397
|
-
"type": {
|
|
1398
|
-
"type": "string"
|
|
1399
939
|
}
|
|
1400
940
|
},
|
|
1401
|
-
"required": [
|
|
1402
|
-
"field",
|
|
1403
|
-
"type"
|
|
1404
|
-
],
|
|
1405
941
|
"type": "object"
|
|
1406
942
|
},
|
|
1407
943
|
"FieldName": {
|
|
@@ -2426,15 +1962,257 @@
|
|
|
2426
1962
|
],
|
|
2427
1963
|
"type": "object"
|
|
2428
1964
|
},
|
|
2429
|
-
"
|
|
2430
|
-
"
|
|
2431
|
-
|
|
2432
|
-
"
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
1965
|
+
"MarkPropDatumDef<Type>": {
|
|
1966
|
+
"additionalProperties": false,
|
|
1967
|
+
"properties": {
|
|
1968
|
+
"datum": {
|
|
1969
|
+
"$ref": "#/definitions/Scalar",
|
|
1970
|
+
"description": "A constant value in data domain."
|
|
1971
|
+
},
|
|
1972
|
+
"resolutionChannel": {
|
|
1973
|
+
"$ref": "#/definitions/Channel",
|
|
1974
|
+
"description": "An alternative channel for scale resolution.\n\nThis is mainly for internal use and allows using `color` channel to resolve `fill` and `stroke` channels under certain circumstances."
|
|
1975
|
+
},
|
|
1976
|
+
"scale": {
|
|
1977
|
+
"anyOf": [
|
|
1978
|
+
{
|
|
1979
|
+
"$ref": "#/definitions/Scale"
|
|
1980
|
+
},
|
|
1981
|
+
{
|
|
1982
|
+
"type": "null"
|
|
1983
|
+
}
|
|
1984
|
+
],
|
|
1985
|
+
"description": "An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels.\n\nIf `null`, the scale will be [disabled and the data value will be directly encoded](https://vega.github.io/vega-lite/docs/scale.html#disable).\n\n__Default value:__ If undefined, default [scale properties](https://vega.github.io/vega-lite/docs/scale.html) are applied.\n\n__See also:__ [`scale`](https://vega.github.io/vega-lite/docs/scale.html) documentation."
|
|
1986
|
+
},
|
|
1987
|
+
"title": {
|
|
1988
|
+
"description": "A title for the field. If `null`, the title will be removed.",
|
|
1989
|
+
"type": [
|
|
1990
|
+
"string",
|
|
1991
|
+
"null"
|
|
1992
|
+
]
|
|
1993
|
+
},
|
|
1994
|
+
"type": {
|
|
1995
|
+
"$ref": "#/definitions/Type"
|
|
1996
|
+
}
|
|
1997
|
+
},
|
|
1998
|
+
"required": [
|
|
1999
|
+
"type"
|
|
2000
|
+
],
|
|
2001
|
+
"type": "object"
|
|
2002
|
+
},
|
|
2003
|
+
"MarkPropDatumDef<TypeForShape>": {
|
|
2004
|
+
"additionalProperties": false,
|
|
2005
|
+
"properties": {
|
|
2006
|
+
"datum": {
|
|
2007
|
+
"$ref": "#/definitions/Scalar",
|
|
2008
|
+
"description": "A constant value in data domain."
|
|
2009
|
+
},
|
|
2010
|
+
"resolutionChannel": {
|
|
2011
|
+
"$ref": "#/definitions/Channel",
|
|
2012
|
+
"description": "An alternative channel for scale resolution.\n\nThis is mainly for internal use and allows using `color` channel to resolve `fill` and `stroke` channels under certain circumstances."
|
|
2013
|
+
},
|
|
2014
|
+
"scale": {
|
|
2015
|
+
"anyOf": [
|
|
2016
|
+
{
|
|
2017
|
+
"$ref": "#/definitions/Scale"
|
|
2018
|
+
},
|
|
2019
|
+
{
|
|
2020
|
+
"type": "null"
|
|
2021
|
+
}
|
|
2022
|
+
],
|
|
2023
|
+
"description": "An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels.\n\nIf `null`, the scale will be [disabled and the data value will be directly encoded](https://vega.github.io/vega-lite/docs/scale.html#disable).\n\n__Default value:__ If undefined, default [scale properties](https://vega.github.io/vega-lite/docs/scale.html) are applied.\n\n__See also:__ [`scale`](https://vega.github.io/vega-lite/docs/scale.html) documentation."
|
|
2024
|
+
},
|
|
2025
|
+
"title": {
|
|
2026
|
+
"description": "A title for the field. If `null`, the title will be removed.",
|
|
2027
|
+
"type": [
|
|
2028
|
+
"string",
|
|
2029
|
+
"null"
|
|
2030
|
+
]
|
|
2031
|
+
},
|
|
2032
|
+
"type": {
|
|
2033
|
+
"$ref": "#/definitions/TypeForShape"
|
|
2034
|
+
}
|
|
2035
|
+
},
|
|
2036
|
+
"required": [
|
|
2037
|
+
"type"
|
|
2038
|
+
],
|
|
2039
|
+
"type": "object"
|
|
2040
|
+
},
|
|
2041
|
+
"MarkPropDef<string,(string|null),TypeForShape>": {
|
|
2042
|
+
"anyOf": [
|
|
2043
|
+
{
|
|
2044
|
+
"$ref": "#/definitions/MarkPropFieldOrDatumOrExprDef%3Cstring%2CTypeForShape%3E"
|
|
2045
|
+
},
|
|
2046
|
+
{
|
|
2047
|
+
"$ref": "#/definitions/ValueDef%3C(string%7Cnull)%3E"
|
|
2048
|
+
}
|
|
2049
|
+
]
|
|
2050
|
+
},
|
|
2051
|
+
"MarkPropDef<string,(string|null)>": {
|
|
2052
|
+
"anyOf": [
|
|
2053
|
+
{
|
|
2054
|
+
"$ref": "#/definitions/MarkPropFieldOrDatumOrExprDef%3Cstring%2CType%3E"
|
|
2055
|
+
},
|
|
2056
|
+
{
|
|
2057
|
+
"$ref": "#/definitions/ValueDef%3C(string%7Cnull)%3E"
|
|
2058
|
+
}
|
|
2059
|
+
]
|
|
2060
|
+
},
|
|
2061
|
+
"MarkPropDef<string,number>": {
|
|
2062
|
+
"anyOf": [
|
|
2063
|
+
{
|
|
2064
|
+
"$ref": "#/definitions/MarkPropFieldOrDatumOrExprDef%3Cstring%2CType%3E"
|
|
2065
|
+
},
|
|
2066
|
+
{
|
|
2067
|
+
"$ref": "#/definitions/ValueDef%3Cnumber%3E"
|
|
2068
|
+
}
|
|
2069
|
+
]
|
|
2070
|
+
},
|
|
2071
|
+
"MarkPropExprDef": {
|
|
2072
|
+
"additionalProperties": false,
|
|
2073
|
+
"properties": {
|
|
2074
|
+
"expr": {
|
|
2075
|
+
"description": "An expression. Properties of the data can be accessed through the `datum` object.",
|
|
2076
|
+
"type": "string"
|
|
2077
|
+
},
|
|
2078
|
+
"resolutionChannel": {
|
|
2079
|
+
"$ref": "#/definitions/Channel",
|
|
2080
|
+
"description": "An alternative channel for scale resolution.\n\nThis is mainly for internal use and allows using `color` channel to resolve `fill` and `stroke` channels under certain circumstances."
|
|
2081
|
+
},
|
|
2082
|
+
"scale": {
|
|
2083
|
+
"anyOf": [
|
|
2084
|
+
{
|
|
2085
|
+
"$ref": "#/definitions/Scale"
|
|
2086
|
+
},
|
|
2087
|
+
{
|
|
2088
|
+
"type": "null"
|
|
2089
|
+
}
|
|
2090
|
+
],
|
|
2091
|
+
"description": "An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels.\n\nIf `null`, the scale will be [disabled and the data value will be directly encoded](https://vega.github.io/vega-lite/docs/scale.html#disable).\n\n__Default value:__ If undefined, default [scale properties](https://vega.github.io/vega-lite/docs/scale.html) are applied.\n\n__See also:__ [`scale`](https://vega.github.io/vega-lite/docs/scale.html) documentation."
|
|
2092
|
+
},
|
|
2093
|
+
"type": {
|
|
2094
|
+
"$ref": "#/definitions/Type"
|
|
2095
|
+
}
|
|
2096
|
+
},
|
|
2097
|
+
"required": [
|
|
2098
|
+
"expr",
|
|
2099
|
+
"type"
|
|
2100
|
+
],
|
|
2101
|
+
"type": "object"
|
|
2102
|
+
},
|
|
2103
|
+
"MarkPropFieldDef<string,Type>": {
|
|
2104
|
+
"additionalProperties": false,
|
|
2105
|
+
"description": "Field definition of a mark property, which can contain a legend.",
|
|
2106
|
+
"properties": {
|
|
2107
|
+
"field": {
|
|
2108
|
+
"description": "__Required.__ A string defining the name of the field from which to pull a data value or an object defining iterated values from the [`repeat`](https://vega.github.io/vega-lite/docs/repeat.html) operator.\n\n__See also:__ [`field`](https://vega.github.io/vega-lite/docs/field.html) documentation.\n\n__Notes:__ 1) Dots (`.`) and brackets (`[` and `]`) can be used to access nested objects (e.g., `\"field\": \"foo.bar\"` and `\"field\": \"foo['bar']\"`). If field names contain dots or brackets but are not nested, you can use `\\\\` to escape dots and brackets (e.g., `\"a\\\\.b\"` and `\"a\\\\[0\\\\]\"`). See more details about escaping in the [field documentation](https://vega.github.io/vega-lite/docs/field.html). 2) `field` is not required if `aggregate` is `count`.",
|
|
2109
|
+
"type": "string"
|
|
2110
|
+
},
|
|
2111
|
+
"resolutionChannel": {
|
|
2112
|
+
"$ref": "#/definitions/Channel",
|
|
2113
|
+
"description": "An alternative channel for scale resolution.\n\nThis is mainly for internal use and allows using `color` channel to resolve `fill` and `stroke` channels under certain circumstances."
|
|
2114
|
+
},
|
|
2115
|
+
"scale": {
|
|
2116
|
+
"anyOf": [
|
|
2117
|
+
{
|
|
2118
|
+
"$ref": "#/definitions/Scale"
|
|
2119
|
+
},
|
|
2120
|
+
{
|
|
2121
|
+
"type": "null"
|
|
2122
|
+
}
|
|
2123
|
+
],
|
|
2124
|
+
"description": "An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels.\n\nIf `null`, the scale will be [disabled and the data value will be directly encoded](https://vega.github.io/vega-lite/docs/scale.html#disable).\n\n__Default value:__ If undefined, default [scale properties](https://vega.github.io/vega-lite/docs/scale.html) are applied.\n\n__See also:__ [`scale`](https://vega.github.io/vega-lite/docs/scale.html) documentation."
|
|
2125
|
+
},
|
|
2126
|
+
"title": {
|
|
2127
|
+
"description": "A title for the field. If `null`, the title will be removed.",
|
|
2128
|
+
"type": [
|
|
2129
|
+
"string",
|
|
2130
|
+
"null"
|
|
2131
|
+
]
|
|
2132
|
+
},
|
|
2133
|
+
"type": {
|
|
2134
|
+
"$ref": "#/definitions/Type"
|
|
2135
|
+
}
|
|
2136
|
+
},
|
|
2137
|
+
"required": [
|
|
2138
|
+
"type"
|
|
2139
|
+
],
|
|
2140
|
+
"type": "object"
|
|
2141
|
+
},
|
|
2142
|
+
"MarkPropFieldDef<string,TypeForShape>": {
|
|
2143
|
+
"additionalProperties": false,
|
|
2144
|
+
"description": "Field definition of a mark property, which can contain a legend.",
|
|
2145
|
+
"properties": {
|
|
2146
|
+
"field": {
|
|
2147
|
+
"description": "__Required.__ A string defining the name of the field from which to pull a data value or an object defining iterated values from the [`repeat`](https://vega.github.io/vega-lite/docs/repeat.html) operator.\n\n__See also:__ [`field`](https://vega.github.io/vega-lite/docs/field.html) documentation.\n\n__Notes:__ 1) Dots (`.`) and brackets (`[` and `]`) can be used to access nested objects (e.g., `\"field\": \"foo.bar\"` and `\"field\": \"foo['bar']\"`). If field names contain dots or brackets but are not nested, you can use `\\\\` to escape dots and brackets (e.g., `\"a\\\\.b\"` and `\"a\\\\[0\\\\]\"`). See more details about escaping in the [field documentation](https://vega.github.io/vega-lite/docs/field.html). 2) `field` is not required if `aggregate` is `count`.",
|
|
2148
|
+
"type": "string"
|
|
2149
|
+
},
|
|
2150
|
+
"resolutionChannel": {
|
|
2151
|
+
"$ref": "#/definitions/Channel",
|
|
2152
|
+
"description": "An alternative channel for scale resolution.\n\nThis is mainly for internal use and allows using `color` channel to resolve `fill` and `stroke` channels under certain circumstances."
|
|
2153
|
+
},
|
|
2154
|
+
"scale": {
|
|
2155
|
+
"anyOf": [
|
|
2156
|
+
{
|
|
2157
|
+
"$ref": "#/definitions/Scale"
|
|
2158
|
+
},
|
|
2159
|
+
{
|
|
2160
|
+
"type": "null"
|
|
2161
|
+
}
|
|
2162
|
+
],
|
|
2163
|
+
"description": "An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels.\n\nIf `null`, the scale will be [disabled and the data value will be directly encoded](https://vega.github.io/vega-lite/docs/scale.html#disable).\n\n__Default value:__ If undefined, default [scale properties](https://vega.github.io/vega-lite/docs/scale.html) are applied.\n\n__See also:__ [`scale`](https://vega.github.io/vega-lite/docs/scale.html) documentation."
|
|
2164
|
+
},
|
|
2165
|
+
"title": {
|
|
2166
|
+
"description": "A title for the field. If `null`, the title will be removed.",
|
|
2167
|
+
"type": [
|
|
2168
|
+
"string",
|
|
2169
|
+
"null"
|
|
2170
|
+
]
|
|
2171
|
+
},
|
|
2172
|
+
"type": {
|
|
2173
|
+
"$ref": "#/definitions/TypeForShape"
|
|
2174
|
+
}
|
|
2175
|
+
},
|
|
2176
|
+
"required": [
|
|
2177
|
+
"type"
|
|
2178
|
+
],
|
|
2179
|
+
"type": "object"
|
|
2180
|
+
},
|
|
2181
|
+
"MarkPropFieldOrDatumOrExprDef<string,Type>": {
|
|
2182
|
+
"anyOf": [
|
|
2183
|
+
{
|
|
2184
|
+
"$ref": "#/definitions/MarkPropFieldDef%3Cstring%2CType%3E"
|
|
2185
|
+
},
|
|
2186
|
+
{
|
|
2187
|
+
"$ref": "#/definitions/MarkPropDatumDef%3CType%3E"
|
|
2188
|
+
},
|
|
2189
|
+
{
|
|
2190
|
+
"$ref": "#/definitions/MarkPropExprDef"
|
|
2191
|
+
}
|
|
2192
|
+
]
|
|
2193
|
+
},
|
|
2194
|
+
"MarkPropFieldOrDatumOrExprDef<string,TypeForShape>": {
|
|
2195
|
+
"anyOf": [
|
|
2196
|
+
{
|
|
2197
|
+
"$ref": "#/definitions/MarkPropFieldDef%3Cstring%2CTypeForShape%3E"
|
|
2198
|
+
},
|
|
2199
|
+
{
|
|
2200
|
+
"$ref": "#/definitions/MarkPropDatumDef%3CTypeForShape%3E"
|
|
2201
|
+
},
|
|
2202
|
+
{
|
|
2203
|
+
"$ref": "#/definitions/MarkPropExprDef"
|
|
2204
|
+
}
|
|
2205
|
+
]
|
|
2206
|
+
},
|
|
2207
|
+
"MarkType": {
|
|
2208
|
+
"enum": [
|
|
2209
|
+
"rect",
|
|
2210
|
+
"point",
|
|
2211
|
+
"rule",
|
|
2212
|
+
"text",
|
|
2213
|
+
"link"
|
|
2214
|
+
],
|
|
2215
|
+
"type": "string"
|
|
2438
2216
|
},
|
|
2439
2217
|
"MeasureTextParams": {
|
|
2440
2218
|
"additionalProperties": false,
|
|
@@ -2499,6 +2277,25 @@
|
|
|
2499
2277
|
},
|
|
2500
2278
|
"type": "array"
|
|
2501
2279
|
},
|
|
2280
|
+
"NumericMarkPropDef<string>": {
|
|
2281
|
+
"$ref": "#/definitions/MarkPropDef%3Cstring%2Cnumber%3E"
|
|
2282
|
+
},
|
|
2283
|
+
"NumericValueDef": {
|
|
2284
|
+
"$ref": "#/definitions/ValueDef%3Cnumber%3E"
|
|
2285
|
+
},
|
|
2286
|
+
"OtherDataFormat": {
|
|
2287
|
+
"additionalProperties": false,
|
|
2288
|
+
"description": "Other data format, such as `\"fasta\"`",
|
|
2289
|
+
"properties": {
|
|
2290
|
+
"type": {
|
|
2291
|
+
"type": "string"
|
|
2292
|
+
}
|
|
2293
|
+
},
|
|
2294
|
+
"required": [
|
|
2295
|
+
"type"
|
|
2296
|
+
],
|
|
2297
|
+
"type": "object"
|
|
2298
|
+
},
|
|
2502
2299
|
"PaddingConfig": {
|
|
2503
2300
|
"anyOf": [
|
|
2504
2301
|
{
|
|
@@ -2515,110 +2312,361 @@
|
|
|
2515
2312
|
"bottom": {
|
|
2516
2313
|
"type": "number"
|
|
2517
2314
|
},
|
|
2518
|
-
"left": {
|
|
2519
|
-
"type": "number"
|
|
2315
|
+
"left": {
|
|
2316
|
+
"type": "number"
|
|
2317
|
+
},
|
|
2318
|
+
"right": {
|
|
2319
|
+
"type": "number"
|
|
2320
|
+
},
|
|
2321
|
+
"top": {
|
|
2322
|
+
"type": "number"
|
|
2323
|
+
}
|
|
2324
|
+
},
|
|
2325
|
+
"type": "object"
|
|
2326
|
+
},
|
|
2327
|
+
"Parse": {
|
|
2328
|
+
"additionalProperties": {
|
|
2329
|
+
"$ref": "#/definitions/ParseValue"
|
|
2330
|
+
},
|
|
2331
|
+
"type": "object"
|
|
2332
|
+
},
|
|
2333
|
+
"ParseValue": {
|
|
2334
|
+
"anyOf": [
|
|
2335
|
+
{
|
|
2336
|
+
"type": "null"
|
|
2337
|
+
},
|
|
2338
|
+
{
|
|
2339
|
+
"type": "string"
|
|
2340
|
+
},
|
|
2341
|
+
{
|
|
2342
|
+
"const": "string",
|
|
2343
|
+
"type": "string"
|
|
2344
|
+
},
|
|
2345
|
+
{
|
|
2346
|
+
"const": "boolean",
|
|
2347
|
+
"type": "string"
|
|
2348
|
+
},
|
|
2349
|
+
{
|
|
2350
|
+
"const": "date",
|
|
2351
|
+
"type": "string"
|
|
2352
|
+
},
|
|
2353
|
+
{
|
|
2354
|
+
"const": "number",
|
|
2355
|
+
"type": "string"
|
|
2356
|
+
}
|
|
2357
|
+
]
|
|
2358
|
+
},
|
|
2359
|
+
"PileupParams": {
|
|
2360
|
+
"additionalProperties": false,
|
|
2361
|
+
"properties": {
|
|
2362
|
+
"as": {
|
|
2363
|
+
"description": "The output field name for the computed lane.\n\n**Default:** `\"lane\"`.",
|
|
2364
|
+
"type": "string"
|
|
2365
|
+
},
|
|
2366
|
+
"end": {
|
|
2367
|
+
"$ref": "#/definitions/Field",
|
|
2368
|
+
"description": "The field representing the end coordinate of the segment (exclusive)."
|
|
2369
|
+
},
|
|
2370
|
+
"preference": {
|
|
2371
|
+
"$ref": "#/definitions/Field",
|
|
2372
|
+
"description": "An optional field indicating the preferred lane. Use together with the `preferredOrder` property."
|
|
2373
|
+
},
|
|
2374
|
+
"preferredOrder": {
|
|
2375
|
+
"anyOf": [
|
|
2376
|
+
{
|
|
2377
|
+
"items": {
|
|
2378
|
+
"type": "string"
|
|
2379
|
+
},
|
|
2380
|
+
"type": "array"
|
|
2381
|
+
},
|
|
2382
|
+
{
|
|
2383
|
+
"items": {
|
|
2384
|
+
"type": "number"
|
|
2385
|
+
},
|
|
2386
|
+
"type": "array"
|
|
2387
|
+
},
|
|
2388
|
+
{
|
|
2389
|
+
"items": {
|
|
2390
|
+
"type": "boolean"
|
|
2391
|
+
},
|
|
2392
|
+
"type": "array"
|
|
2393
|
+
}
|
|
2394
|
+
],
|
|
2395
|
+
"description": "The order of the lane preferences. The first element contains the value that should place the segment on the first lane and so forth. If the preferred lane is occupied, the first available lane is taken."
|
|
2396
|
+
},
|
|
2397
|
+
"spacing": {
|
|
2398
|
+
"description": "The spacing between adjacent segments on the same lane in coordinate units.\n\n**Default:** `1`.",
|
|
2399
|
+
"type": "number"
|
|
2400
|
+
},
|
|
2401
|
+
"start": {
|
|
2402
|
+
"$ref": "#/definitions/Field",
|
|
2403
|
+
"description": "The field representing the start coordinate of the segment (inclusive)."
|
|
2404
|
+
},
|
|
2405
|
+
"type": {
|
|
2406
|
+
"const": "pileup",
|
|
2407
|
+
"description": "The type of the transform to be applied",
|
|
2408
|
+
"type": "string"
|
|
2409
|
+
}
|
|
2410
|
+
},
|
|
2411
|
+
"required": [
|
|
2412
|
+
"end",
|
|
2413
|
+
"start",
|
|
2414
|
+
"type"
|
|
2415
|
+
],
|
|
2416
|
+
"type": "object"
|
|
2417
|
+
},
|
|
2418
|
+
"Position2Def<string>": {
|
|
2419
|
+
"anyOf": [
|
|
2420
|
+
{
|
|
2421
|
+
"additionalProperties": false,
|
|
2422
|
+
"properties": {
|
|
2423
|
+
"band": {
|
|
2424
|
+
"description": "Relative position on band scale. For example, the marks will be positioned at the beginning of the band if set to `0`, and at the middle of the band if set to `0.5`.",
|
|
2425
|
+
"maximum": 1,
|
|
2426
|
+
"minimum": 0,
|
|
2427
|
+
"type": "number"
|
|
2428
|
+
},
|
|
2429
|
+
"field": {
|
|
2430
|
+
"description": "__Required.__ A string defining the name of the field from which to pull a data value or an object defining iterated values from the [`repeat`](https://vega.github.io/vega-lite/docs/repeat.html) operator.\n\n__See also:__ [`field`](https://vega.github.io/vega-lite/docs/field.html) documentation.\n\n__Notes:__ 1) Dots (`.`) and brackets (`[` and `]`) can be used to access nested objects (e.g., `\"field\": \"foo.bar\"` and `\"field\": \"foo['bar']\"`). If field names contain dots or brackets but are not nested, you can use `\\\\` to escape dots and brackets (e.g., `\"a\\\\.b\"` and `\"a\\\\[0\\\\]\"`). See more details about escaping in the [field documentation](https://vega.github.io/vega-lite/docs/field.html). 2) `field` is not required if `aggregate` is `count`.",
|
|
2431
|
+
"type": "string"
|
|
2432
|
+
},
|
|
2433
|
+
"title": {
|
|
2434
|
+
"description": "A title for the field. If `null`, the title will be removed.",
|
|
2435
|
+
"type": [
|
|
2436
|
+
"string",
|
|
2437
|
+
"null"
|
|
2438
|
+
]
|
|
2439
|
+
}
|
|
2440
|
+
},
|
|
2441
|
+
"type": "object"
|
|
2442
|
+
},
|
|
2443
|
+
{
|
|
2444
|
+
"$ref": "#/definitions/SecondaryChromPosDef"
|
|
2445
|
+
},
|
|
2446
|
+
{
|
|
2447
|
+
"additionalProperties": false,
|
|
2448
|
+
"properties": {
|
|
2449
|
+
"band": {
|
|
2450
|
+
"description": "Relative position on band scale. For example, the marks will be positioned at the beginning of the band if set to `0`, and at the middle of the band if set to `0.5`.",
|
|
2451
|
+
"maximum": 1,
|
|
2452
|
+
"minimum": 0,
|
|
2453
|
+
"type": "number"
|
|
2454
|
+
},
|
|
2455
|
+
"datum": {
|
|
2456
|
+
"$ref": "#/definitions/Scalar",
|
|
2457
|
+
"description": "A constant value in data domain."
|
|
2458
|
+
},
|
|
2459
|
+
"title": {
|
|
2460
|
+
"description": "A title for the field. If `null`, the title will be removed.",
|
|
2461
|
+
"type": [
|
|
2462
|
+
"string",
|
|
2463
|
+
"null"
|
|
2464
|
+
]
|
|
2465
|
+
}
|
|
2466
|
+
},
|
|
2467
|
+
"type": "object"
|
|
2468
|
+
},
|
|
2469
|
+
{
|
|
2470
|
+
"additionalProperties": false,
|
|
2471
|
+
"properties": {
|
|
2472
|
+
"band": {
|
|
2473
|
+
"description": "Relative position on band scale. For example, the marks will be positioned at the beginning of the band if set to `0`, and at the middle of the band if set to `0.5`.",
|
|
2474
|
+
"maximum": 1,
|
|
2475
|
+
"minimum": 0,
|
|
2476
|
+
"type": "number"
|
|
2477
|
+
},
|
|
2478
|
+
"expr": {
|
|
2479
|
+
"description": "An expression. Properties of the data can be accessed through the `datum` object.",
|
|
2480
|
+
"type": "string"
|
|
2481
|
+
}
|
|
2482
|
+
},
|
|
2483
|
+
"required": [
|
|
2484
|
+
"expr"
|
|
2485
|
+
],
|
|
2486
|
+
"type": "object"
|
|
2487
|
+
},
|
|
2488
|
+
{
|
|
2489
|
+
"$ref": "#/definitions/PositionValueDef"
|
|
2490
|
+
}
|
|
2491
|
+
]
|
|
2492
|
+
},
|
|
2493
|
+
"PositionDatumDef": {
|
|
2494
|
+
"additionalProperties": false,
|
|
2495
|
+
"properties": {
|
|
2496
|
+
"axis": {
|
|
2497
|
+
"anyOf": [
|
|
2498
|
+
{
|
|
2499
|
+
"$ref": "#/definitions/Axis"
|
|
2500
|
+
},
|
|
2501
|
+
{
|
|
2502
|
+
"type": "null"
|
|
2503
|
+
}
|
|
2504
|
+
],
|
|
2505
|
+
"description": "An object defining properties of axis's gridlines, ticks and labels. If `null`, the axis for the encoding channel will be removed.\n\n__Default value:__ If undefined, default [axis properties](https://vega.github.io/vega-lite/docs/axis.html) are applied.\n\n__See also:__ [`axis`](https://vega.github.io/vega-lite/docs/axis.html) documentation."
|
|
2506
|
+
},
|
|
2507
|
+
"band": {
|
|
2508
|
+
"description": "Relative position on band scale. For example, the marks will be positioned at the beginning of the band if set to `0`, and at the middle of the band if set to `0.5`.",
|
|
2509
|
+
"maximum": 1,
|
|
2510
|
+
"minimum": 0,
|
|
2511
|
+
"type": "number"
|
|
2512
|
+
},
|
|
2513
|
+
"datum": {
|
|
2514
|
+
"$ref": "#/definitions/Scalar",
|
|
2515
|
+
"description": "A constant value in data domain."
|
|
2516
|
+
},
|
|
2517
|
+
"resolutionChannel": {
|
|
2518
|
+
"$ref": "#/definitions/Channel",
|
|
2519
|
+
"description": "An alternative channel for scale resolution.\n\nThis is mainly for internal use and allows using `color` channel to resolve `fill` and `stroke` channels under certain circumstances."
|
|
2520
|
+
},
|
|
2521
|
+
"scale": {
|
|
2522
|
+
"anyOf": [
|
|
2523
|
+
{
|
|
2524
|
+
"$ref": "#/definitions/Scale"
|
|
2525
|
+
},
|
|
2526
|
+
{
|
|
2527
|
+
"type": "null"
|
|
2528
|
+
}
|
|
2529
|
+
],
|
|
2530
|
+
"description": "An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels.\n\nIf `null`, the scale will be [disabled and the data value will be directly encoded](https://vega.github.io/vega-lite/docs/scale.html#disable).\n\n__Default value:__ If undefined, default [scale properties](https://vega.github.io/vega-lite/docs/scale.html) are applied.\n\n__See also:__ [`scale`](https://vega.github.io/vega-lite/docs/scale.html) documentation."
|
|
2520
2531
|
},
|
|
2521
|
-
"
|
|
2522
|
-
"
|
|
2532
|
+
"title": {
|
|
2533
|
+
"description": "A title for the field. If `null`, the title will be removed.",
|
|
2534
|
+
"type": [
|
|
2535
|
+
"string",
|
|
2536
|
+
"null"
|
|
2537
|
+
]
|
|
2523
2538
|
},
|
|
2524
|
-
"
|
|
2525
|
-
"
|
|
2539
|
+
"type": {
|
|
2540
|
+
"$ref": "#/definitions/Type"
|
|
2526
2541
|
}
|
|
2527
2542
|
},
|
|
2543
|
+
"required": [
|
|
2544
|
+
"type"
|
|
2545
|
+
],
|
|
2528
2546
|
"type": "object"
|
|
2529
2547
|
},
|
|
2530
|
-
"
|
|
2531
|
-
"additionalProperties": {
|
|
2532
|
-
"$ref": "#/definitions/ParseValue"
|
|
2533
|
-
},
|
|
2534
|
-
"type": "object"
|
|
2535
|
-
},
|
|
2536
|
-
"ParseValue": {
|
|
2548
|
+
"PositionDef<string>": {
|
|
2537
2549
|
"anyOf": [
|
|
2538
2550
|
{
|
|
2539
|
-
"
|
|
2540
|
-
},
|
|
2541
|
-
{
|
|
2542
|
-
"type": "string"
|
|
2551
|
+
"$ref": "#/definitions/PositionFieldDef%3Cstring%3E"
|
|
2543
2552
|
},
|
|
2544
2553
|
{
|
|
2545
|
-
"
|
|
2546
|
-
"type": "string"
|
|
2554
|
+
"$ref": "#/definitions/ChromPosDef"
|
|
2547
2555
|
},
|
|
2548
2556
|
{
|
|
2549
|
-
"
|
|
2550
|
-
"type": "string"
|
|
2557
|
+
"$ref": "#/definitions/PositionDatumDef"
|
|
2551
2558
|
},
|
|
2552
2559
|
{
|
|
2553
|
-
"
|
|
2554
|
-
"type": "string"
|
|
2560
|
+
"$ref": "#/definitions/PositionExprDef"
|
|
2555
2561
|
},
|
|
2556
2562
|
{
|
|
2557
|
-
"
|
|
2558
|
-
"type": "string"
|
|
2563
|
+
"$ref": "#/definitions/PositionValueDef"
|
|
2559
2564
|
}
|
|
2560
2565
|
]
|
|
2561
2566
|
},
|
|
2562
|
-
"
|
|
2567
|
+
"PositionExprDef": {
|
|
2563
2568
|
"additionalProperties": false,
|
|
2564
2569
|
"properties": {
|
|
2565
|
-
"
|
|
2566
|
-
"
|
|
2567
|
-
|
|
2570
|
+
"axis": {
|
|
2571
|
+
"anyOf": [
|
|
2572
|
+
{
|
|
2573
|
+
"$ref": "#/definitions/Axis"
|
|
2574
|
+
},
|
|
2575
|
+
{
|
|
2576
|
+
"type": "null"
|
|
2577
|
+
}
|
|
2578
|
+
],
|
|
2579
|
+
"description": "An object defining properties of axis's gridlines, ticks and labels. If `null`, the axis for the encoding channel will be removed.\n\n__Default value:__ If undefined, default [axis properties](https://vega.github.io/vega-lite/docs/axis.html) are applied.\n\n__See also:__ [`axis`](https://vega.github.io/vega-lite/docs/axis.html) documentation."
|
|
2568
2580
|
},
|
|
2569
|
-
"
|
|
2570
|
-
"
|
|
2571
|
-
"
|
|
2581
|
+
"band": {
|
|
2582
|
+
"description": "Relative position on band scale. For example, the marks will be positioned at the beginning of the band if set to `0`, and at the middle of the band if set to `0.5`.",
|
|
2583
|
+
"maximum": 1,
|
|
2584
|
+
"minimum": 0,
|
|
2585
|
+
"type": "number"
|
|
2572
2586
|
},
|
|
2573
|
-
"
|
|
2574
|
-
"
|
|
2575
|
-
"
|
|
2587
|
+
"expr": {
|
|
2588
|
+
"description": "An expression. Properties of the data can be accessed through the `datum` object.",
|
|
2589
|
+
"type": "string"
|
|
2576
2590
|
},
|
|
2577
|
-
"
|
|
2591
|
+
"type": {
|
|
2592
|
+
"$ref": "#/definitions/Type"
|
|
2593
|
+
}
|
|
2594
|
+
},
|
|
2595
|
+
"required": [
|
|
2596
|
+
"expr",
|
|
2597
|
+
"type"
|
|
2598
|
+
],
|
|
2599
|
+
"type": "object"
|
|
2600
|
+
},
|
|
2601
|
+
"PositionFieldDef<string>": {
|
|
2602
|
+
"additionalProperties": false,
|
|
2603
|
+
"properties": {
|
|
2604
|
+
"axis": {
|
|
2578
2605
|
"anyOf": [
|
|
2579
2606
|
{
|
|
2580
|
-
"
|
|
2581
|
-
"type": "string"
|
|
2582
|
-
},
|
|
2583
|
-
"type": "array"
|
|
2584
|
-
},
|
|
2585
|
-
{
|
|
2586
|
-
"items": {
|
|
2587
|
-
"type": "number"
|
|
2588
|
-
},
|
|
2589
|
-
"type": "array"
|
|
2607
|
+
"$ref": "#/definitions/Axis"
|
|
2590
2608
|
},
|
|
2591
2609
|
{
|
|
2592
|
-
"
|
|
2593
|
-
"type": "boolean"
|
|
2594
|
-
},
|
|
2595
|
-
"type": "array"
|
|
2610
|
+
"type": "null"
|
|
2596
2611
|
}
|
|
2597
2612
|
],
|
|
2598
|
-
"description": "
|
|
2613
|
+
"description": "An object defining properties of axis's gridlines, ticks and labels. If `null`, the axis for the encoding channel will be removed.\n\n__Default value:__ If undefined, default [axis properties](https://vega.github.io/vega-lite/docs/axis.html) are applied.\n\n__See also:__ [`axis`](https://vega.github.io/vega-lite/docs/axis.html) documentation."
|
|
2599
2614
|
},
|
|
2600
|
-
"
|
|
2601
|
-
"description": "
|
|
2615
|
+
"band": {
|
|
2616
|
+
"description": "Relative position on band scale. For example, the marks will be positioned at the beginning of the band if set to `0`, and at the middle of the band if set to `0.5`.",
|
|
2617
|
+
"maximum": 1,
|
|
2618
|
+
"minimum": 0,
|
|
2602
2619
|
"type": "number"
|
|
2603
2620
|
},
|
|
2604
|
-
"
|
|
2605
|
-
"
|
|
2606
|
-
"
|
|
2621
|
+
"field": {
|
|
2622
|
+
"description": "__Required.__ A string defining the name of the field from which to pull a data value or an object defining iterated values from the [`repeat`](https://vega.github.io/vega-lite/docs/repeat.html) operator.\n\n__See also:__ [`field`](https://vega.github.io/vega-lite/docs/field.html) documentation.\n\n__Notes:__ 1) Dots (`.`) and brackets (`[` and `]`) can be used to access nested objects (e.g., `\"field\": \"foo.bar\"` and `\"field\": \"foo['bar']\"`). If field names contain dots or brackets but are not nested, you can use `\\\\` to escape dots and brackets (e.g., `\"a\\\\.b\"` and `\"a\\\\[0\\\\]\"`). See more details about escaping in the [field documentation](https://vega.github.io/vega-lite/docs/field.html). 2) `field` is not required if `aggregate` is `count`.",
|
|
2623
|
+
"type": "string"
|
|
2624
|
+
},
|
|
2625
|
+
"resolutionChannel": {
|
|
2626
|
+
"$ref": "#/definitions/Channel",
|
|
2627
|
+
"description": "An alternative channel for scale resolution.\n\nThis is mainly for internal use and allows using `color` channel to resolve `fill` and `stroke` channels under certain circumstances."
|
|
2628
|
+
},
|
|
2629
|
+
"scale": {
|
|
2630
|
+
"anyOf": [
|
|
2631
|
+
{
|
|
2632
|
+
"$ref": "#/definitions/Scale"
|
|
2633
|
+
},
|
|
2634
|
+
{
|
|
2635
|
+
"type": "null"
|
|
2636
|
+
}
|
|
2637
|
+
],
|
|
2638
|
+
"description": "An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels.\n\nIf `null`, the scale will be [disabled and the data value will be directly encoded](https://vega.github.io/vega-lite/docs/scale.html#disable).\n\n__Default value:__ If undefined, default [scale properties](https://vega.github.io/vega-lite/docs/scale.html) are applied.\n\n__See also:__ [`scale`](https://vega.github.io/vega-lite/docs/scale.html) documentation."
|
|
2639
|
+
},
|
|
2640
|
+
"title": {
|
|
2641
|
+
"description": "A title for the field. If `null`, the title will be removed.",
|
|
2642
|
+
"type": [
|
|
2643
|
+
"string",
|
|
2644
|
+
"null"
|
|
2645
|
+
]
|
|
2607
2646
|
},
|
|
2608
2647
|
"type": {
|
|
2609
|
-
"
|
|
2610
|
-
"description": "The type of the transform to be applied",
|
|
2611
|
-
"type": "string"
|
|
2648
|
+
"$ref": "#/definitions/Type"
|
|
2612
2649
|
}
|
|
2613
2650
|
},
|
|
2614
2651
|
"required": [
|
|
2615
|
-
"end",
|
|
2616
|
-
"start",
|
|
2617
2652
|
"type"
|
|
2618
2653
|
],
|
|
2619
2654
|
"type": "object"
|
|
2620
2655
|
},
|
|
2656
|
+
"PositionValueDef": {
|
|
2657
|
+
"$ref": "#/definitions/NumericValueDef"
|
|
2658
|
+
},
|
|
2621
2659
|
"PositionalChannel": {
|
|
2660
|
+
"anyOf": [
|
|
2661
|
+
{
|
|
2662
|
+
"$ref": "#/definitions/PrimaryPositionalChannel"
|
|
2663
|
+
},
|
|
2664
|
+
{
|
|
2665
|
+
"$ref": "#/definitions/SecondaryPositionalChannel"
|
|
2666
|
+
}
|
|
2667
|
+
]
|
|
2668
|
+
},
|
|
2669
|
+
"PrimaryPositionalChannel": {
|
|
2622
2670
|
"enum": [
|
|
2623
2671
|
"x",
|
|
2624
2672
|
"y"
|
|
@@ -2769,7 +2817,7 @@
|
|
|
2769
2817
|
"description": "Color scale (primary)"
|
|
2770
2818
|
},
|
|
2771
2819
|
"type": {
|
|
2772
|
-
"
|
|
2820
|
+
"$ref": "#/definitions/Type"
|
|
2773
2821
|
},
|
|
2774
2822
|
"visible": {
|
|
2775
2823
|
"type": "boolean"
|
|
@@ -3137,8 +3185,8 @@
|
|
|
3137
3185
|
"description": "A string indicating a color [scheme](https://vega.github.io/vega-lite/docs/scale.html#scheme) name (e.g., `\"category10\"` or `\"blues\"`) or a [scheme parameter object](https://vega.github.io/vega-lite/docs/scale.html#scheme-params).\n\nDiscrete color schemes may be used with [discrete](https://vega.github.io/vega-lite/docs/scale.html#discrete) or [discretizing](https://vega.github.io/vega-lite/docs/scale.html#discretizing) scales. Continuous color schemes are intended for use with color scales.\n\nFor the full list of supported schemes, please refer to the [Vega Scheme](https://vega.github.io/vega/docs/schemes/#reference) reference."
|
|
3138
3186
|
},
|
|
3139
3187
|
"type": {
|
|
3140
|
-
"
|
|
3141
|
-
"type": "
|
|
3188
|
+
"$ref": "#/definitions/ScaleType",
|
|
3189
|
+
"description": "The type of scale. Vega-Lite supports the following categories of scale types:\n\n1) [**Continuous Scales**](https://vega.github.io/vega-lite/docs/scale.html#continuous) -- mapping continuous domains to continuous output ranges ([`\"linear\"`](https://vega.github.io/vega-lite/docs/scale.html#linear), [`\"pow\"`](https://vega.github.io/vega-lite/docs/scale.html#pow), [`\"sqrt\"`](https://vega.github.io/vega-lite/docs/scale.html#sqrt), [`\"symlog\"`](https://vega.github.io/vega-lite/docs/scale.html#symlog), [`\"log\"`](https://vega.github.io/vega-lite/docs/scale.html#log), [`\"time\"`](https://vega.github.io/vega-lite/docs/scale.html#time), [`\"utc\"`](https://vega.github.io/vega-lite/docs/scale.html#utc).\n\n2) [**Discrete Scales**](https://vega.github.io/vega-lite/docs/scale.html#discrete) -- mapping discrete domains to discrete ([`\"ordinal\"`](https://vega.github.io/vega-lite/docs/scale.html#ordinal)) or continuous ([`\"band\"`](https://vega.github.io/vega-lite/docs/scale.html#band) and [`\"point\"`](https://vega.github.io/vega-lite/docs/scale.html#point)) output ranges.\n\n3) [**Discretizing Scales**](https://vega.github.io/vega-lite/docs/scale.html#discretizing) -- mapping continuous domains to discrete output ranges [`\"bin-ordinal\"`](https://vega.github.io/vega-lite/docs/scale.html#bin-ordinal), [`\"quantile\"`](https://vega.github.io/vega-lite/docs/scale.html#quantile), [`\"quantize\"`](https://vega.github.io/vega-lite/docs/scale.html#quantize) and [`\"threshold\"`](https://vega.github.io/vega-lite/docs/scale.html#threshold).\n\n__Default value:__ please see the [scale type table](https://vega.github.io/vega-lite/docs/scale.html#type)."
|
|
3142
3190
|
},
|
|
3143
3191
|
"zero": {
|
|
3144
3192
|
"description": "If `true`, ensures that a zero baseline value is included in the scale domain.\n\n__Default value:__ `true` for x and y channels if the quantitative field is not binned and no custom `domain` is provided; `false` otherwise.\n\n__Note:__ Log, time, and utc scales do not support `zero`.",
|
|
@@ -3191,6 +3239,26 @@
|
|
|
3191
3239
|
],
|
|
3192
3240
|
"type": "object"
|
|
3193
3241
|
},
|
|
3242
|
+
"ScaleType": {
|
|
3243
|
+
"enum": [
|
|
3244
|
+
"null",
|
|
3245
|
+
"linear",
|
|
3246
|
+
"log",
|
|
3247
|
+
"pow",
|
|
3248
|
+
"sqrt",
|
|
3249
|
+
"symlog",
|
|
3250
|
+
"identity",
|
|
3251
|
+
"sequential",
|
|
3252
|
+
"quantize",
|
|
3253
|
+
"threshold",
|
|
3254
|
+
"ordinal",
|
|
3255
|
+
"point",
|
|
3256
|
+
"band",
|
|
3257
|
+
"index",
|
|
3258
|
+
"locus"
|
|
3259
|
+
],
|
|
3260
|
+
"type": "string"
|
|
3261
|
+
},
|
|
3194
3262
|
"SchemeParams": {
|
|
3195
3263
|
"additionalProperties": false,
|
|
3196
3264
|
"properties": {
|
|
@@ -3215,6 +3283,51 @@
|
|
|
3215
3283
|
],
|
|
3216
3284
|
"type": "object"
|
|
3217
3285
|
},
|
|
3286
|
+
"SecondaryChromPosDef": {
|
|
3287
|
+
"additionalProperties": false,
|
|
3288
|
+
"properties": {
|
|
3289
|
+
"axis": {
|
|
3290
|
+
"anyOf": [
|
|
3291
|
+
{
|
|
3292
|
+
"$ref": "#/definitions/Axis"
|
|
3293
|
+
},
|
|
3294
|
+
{
|
|
3295
|
+
"type": "null"
|
|
3296
|
+
}
|
|
3297
|
+
],
|
|
3298
|
+
"description": "An object defining properties of axis's gridlines, ticks and labels. If `null`, the axis for the encoding channel will be removed.\n\n__Default value:__ If undefined, default [axis properties](https://vega.github.io/vega-lite/docs/axis.html) are applied.\n\n__See also:__ [`axis`](https://vega.github.io/vega-lite/docs/axis.html) documentation."
|
|
3299
|
+
},
|
|
3300
|
+
"band": {
|
|
3301
|
+
"description": "Relative position on band scale. For example, the marks will be positioned at the beginning of the band if set to `0`, and at the middle of the band if set to `0.5`.",
|
|
3302
|
+
"maximum": 1,
|
|
3303
|
+
"minimum": 0,
|
|
3304
|
+
"type": "number"
|
|
3305
|
+
},
|
|
3306
|
+
"chrom": {
|
|
3307
|
+
"$ref": "#/definitions/FieldName",
|
|
3308
|
+
"description": "The field having the chromosome or contig."
|
|
3309
|
+
},
|
|
3310
|
+
"offset": {
|
|
3311
|
+
"description": "An offset or offsets that allow for adjusting the numbering base. The offset is subtracted from the positions.\n\nGenomeSpy uses internally zero-based indexing with half-open intervals. UCSC-based formats (BED, etc.) generally use this scheme. However, for example, VCF files use one-based indexing and must be adjusted by setting the offset to `1`.\n\n**Default:** `0`",
|
|
3312
|
+
"type": "number"
|
|
3313
|
+
},
|
|
3314
|
+
"pos": {
|
|
3315
|
+
"$ref": "#/definitions/FieldName",
|
|
3316
|
+
"description": "The field having an intra-chromosomal position."
|
|
3317
|
+
},
|
|
3318
|
+
"title": {
|
|
3319
|
+
"description": "A title for the field. If `null`, the title will be removed.",
|
|
3320
|
+
"type": [
|
|
3321
|
+
"string",
|
|
3322
|
+
"null"
|
|
3323
|
+
]
|
|
3324
|
+
}
|
|
3325
|
+
},
|
|
3326
|
+
"required": [
|
|
3327
|
+
"chrom"
|
|
3328
|
+
],
|
|
3329
|
+
"type": "object"
|
|
3330
|
+
},
|
|
3218
3331
|
"SecondaryPositionalChannel": {
|
|
3219
3332
|
"enum": [
|
|
3220
3333
|
"x2",
|
|
@@ -3265,6 +3378,9 @@
|
|
|
3265
3378
|
],
|
|
3266
3379
|
"type": "object"
|
|
3267
3380
|
},
|
|
3381
|
+
"ShapeDef<string>": {
|
|
3382
|
+
"$ref": "#/definitions/MarkPropDef%3Cstring%2C(string%7Cnull)%2CTypeForShape%3E"
|
|
3383
|
+
},
|
|
3268
3384
|
"SizeDef": {
|
|
3269
3385
|
"additionalProperties": false,
|
|
3270
3386
|
"properties": {
|
|
@@ -3354,6 +3470,58 @@
|
|
|
3354
3470
|
],
|
|
3355
3471
|
"type": "object"
|
|
3356
3472
|
},
|
|
3473
|
+
"StringDatumDef": {
|
|
3474
|
+
"additionalProperties": false,
|
|
3475
|
+
"properties": {
|
|
3476
|
+
"datum": {
|
|
3477
|
+
"$ref": "#/definitions/Scalar",
|
|
3478
|
+
"description": "A constant value in data domain."
|
|
3479
|
+
},
|
|
3480
|
+
"format": {
|
|
3481
|
+
"description": "When used with the default `\"number\"` format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks.\n\n- If the format type is `\"number\"` (e.g., for quantitative fields), this is D3's [number format pattern](https://github.com/d3/d3-format#locale_format).\n\nSee the [format documentation](https://vega.github.io/vega-lite/docs/format.html) for more examples.",
|
|
3482
|
+
"type": "string"
|
|
3483
|
+
},
|
|
3484
|
+
"title": {
|
|
3485
|
+
"description": "A title for the field. If `null`, the title will be removed.",
|
|
3486
|
+
"type": [
|
|
3487
|
+
"string",
|
|
3488
|
+
"null"
|
|
3489
|
+
]
|
|
3490
|
+
}
|
|
3491
|
+
},
|
|
3492
|
+
"type": "object"
|
|
3493
|
+
},
|
|
3494
|
+
"StringFieldDef<string>": {
|
|
3495
|
+
"additionalProperties": false,
|
|
3496
|
+
"properties": {
|
|
3497
|
+
"field": {
|
|
3498
|
+
"description": "__Required.__ A string defining the name of the field from which to pull a data value or an object defining iterated values from the [`repeat`](https://vega.github.io/vega-lite/docs/repeat.html) operator.\n\n__See also:__ [`field`](https://vega.github.io/vega-lite/docs/field.html) documentation.\n\n__Notes:__ 1) Dots (`.`) and brackets (`[` and `]`) can be used to access nested objects (e.g., `\"field\": \"foo.bar\"` and `\"field\": \"foo['bar']\"`). If field names contain dots or brackets but are not nested, you can use `\\\\` to escape dots and brackets (e.g., `\"a\\\\.b\"` and `\"a\\\\[0\\\\]\"`). See more details about escaping in the [field documentation](https://vega.github.io/vega-lite/docs/field.html). 2) `field` is not required if `aggregate` is `count`.",
|
|
3499
|
+
"type": "string"
|
|
3500
|
+
},
|
|
3501
|
+
"format": {
|
|
3502
|
+
"description": "When used with the default `\"number\"` format type, the text formatting pattern for labels of guides (axes, legends, headers) and text marks.\n\n- If the format type is `\"number\"` (e.g., for quantitative fields), this is D3's [number format pattern](https://github.com/d3/d3-format#locale_format).\n\nSee the [format documentation](https://vega.github.io/vega-lite/docs/format.html) for more examples.",
|
|
3503
|
+
"type": "string"
|
|
3504
|
+
},
|
|
3505
|
+
"title": {
|
|
3506
|
+
"description": "A title for the field. If `null`, the title will be removed.",
|
|
3507
|
+
"type": [
|
|
3508
|
+
"string",
|
|
3509
|
+
"null"
|
|
3510
|
+
]
|
|
3511
|
+
}
|
|
3512
|
+
},
|
|
3513
|
+
"type": "object"
|
|
3514
|
+
},
|
|
3515
|
+
"TextDef<string>": {
|
|
3516
|
+
"anyOf": [
|
|
3517
|
+
{
|
|
3518
|
+
"$ref": "#/definitions/StringFieldDef%3Cstring%3E"
|
|
3519
|
+
},
|
|
3520
|
+
{
|
|
3521
|
+
"$ref": "#/definitions/StringDatumDef"
|
|
3522
|
+
}
|
|
3523
|
+
]
|
|
3524
|
+
},
|
|
3357
3525
|
"Tooltip": {
|
|
3358
3526
|
"anyOf": [
|
|
3359
3527
|
{
|
|
@@ -3425,6 +3593,23 @@
|
|
|
3425
3593
|
}
|
|
3426
3594
|
]
|
|
3427
3595
|
},
|
|
3596
|
+
"Type": {
|
|
3597
|
+
"enum": [
|
|
3598
|
+
"quantitative",
|
|
3599
|
+
"ordinal",
|
|
3600
|
+
"nominal",
|
|
3601
|
+
"index",
|
|
3602
|
+
"locus"
|
|
3603
|
+
],
|
|
3604
|
+
"type": "string"
|
|
3605
|
+
},
|
|
3606
|
+
"TypeForShape": {
|
|
3607
|
+
"enum": [
|
|
3608
|
+
"ordinal",
|
|
3609
|
+
"nominal"
|
|
3610
|
+
],
|
|
3611
|
+
"type": "string"
|
|
3612
|
+
},
|
|
3428
3613
|
"UnitSpec": {
|
|
3429
3614
|
"additionalProperties": false,
|
|
3430
3615
|
"properties": {
|
|
@@ -3742,18 +3927,28 @@
|
|
|
3742
3927
|
],
|
|
3743
3928
|
"type": "object"
|
|
3744
3929
|
},
|
|
3745
|
-
"ValueDef": {
|
|
3930
|
+
"ValueDef<(string|null)>": {
|
|
3746
3931
|
"additionalProperties": false,
|
|
3747
3932
|
"properties": {
|
|
3748
|
-
"
|
|
3933
|
+
"value": {
|
|
3934
|
+
"description": "A constant value in visual domain (e.g., `\"red\"` / `\"#0099ff\"`, values between `0` to `1` for opacity).",
|
|
3749
3935
|
"type": [
|
|
3750
3936
|
"string",
|
|
3751
3937
|
"null"
|
|
3752
3938
|
]
|
|
3753
|
-
}
|
|
3939
|
+
}
|
|
3940
|
+
},
|
|
3941
|
+
"required": [
|
|
3942
|
+
"value"
|
|
3943
|
+
],
|
|
3944
|
+
"type": "object"
|
|
3945
|
+
},
|
|
3946
|
+
"ValueDef<number>": {
|
|
3947
|
+
"additionalProperties": false,
|
|
3948
|
+
"properties": {
|
|
3754
3949
|
"value": {
|
|
3755
|
-
"
|
|
3756
|
-
"
|
|
3950
|
+
"description": "A constant value in visual domain (e.g., `\"red\"` / `\"#0099ff\"`, values between `0` to `1` for opacity).",
|
|
3951
|
+
"type": "number"
|
|
3757
3952
|
}
|
|
3758
3953
|
},
|
|
3759
3954
|
"required": [
|
|
@@ -3838,9 +4033,6 @@
|
|
|
3838
4033
|
{
|
|
3839
4034
|
"$ref": "#/definitions/LayerSpec"
|
|
3840
4035
|
},
|
|
3841
|
-
{
|
|
3842
|
-
"$ref": "#/definitions/FacetSpec"
|
|
3843
|
-
},
|
|
3844
4036
|
{
|
|
3845
4037
|
"$ref": "#/definitions/SampleSpec"
|
|
3846
4038
|
},
|