@genome-spy/core 0.49.0 → 0.50.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/dist/bundle/index.es.js +2617 -2593
- package/dist/bundle/index.js +91 -91
- package/dist/schema.json +1752 -1090
- package/dist/src/gl/includes/common.glsl.js +1 -1
- package/dist/src/marks/link.d.ts +8 -1
- package/dist/src/marks/link.d.ts.map +1 -1
- package/dist/src/marks/link.fragment.glsl.js +1 -1
- package/dist/src/marks/link.js +38 -32
- package/dist/src/marks/link.vertex.glsl.js +1 -1
- package/dist/src/marks/mark.d.ts +18 -16
- package/dist/src/marks/mark.d.ts.map +1 -1
- package/dist/src/marks/mark.js +34 -23
- package/dist/src/marks/markUtils.d.ts +25 -0
- package/dist/src/marks/markUtils.d.ts.map +1 -1
- package/dist/src/marks/markUtils.js +41 -1
- package/dist/src/marks/point.common.glsl.js +1 -1
- package/dist/src/marks/point.d.ts +8 -1
- package/dist/src/marks/point.d.ts.map +1 -1
- package/dist/src/marks/point.js +29 -24
- package/dist/src/marks/point.vertex.glsl.js +1 -1
- package/dist/src/marks/rect.d.ts +8 -1
- package/dist/src/marks/rect.d.ts.map +1 -1
- package/dist/src/marks/rect.js +19 -19
- package/dist/src/marks/rule.d.ts +8 -1
- package/dist/src/marks/rule.d.ts.map +1 -1
- package/dist/src/marks/rule.js +19 -16
- package/dist/src/marks/text.d.ts +10 -1
- package/dist/src/marks/text.d.ts.map +1 -1
- package/dist/src/marks/text.fragment.glsl.js +1 -1
- package/dist/src/marks/text.js +48 -46
- package/dist/src/marks/text.vertex.glsl.js +1 -1
- package/dist/src/spec/channel.d.ts +14 -1
- package/dist/src/spec/mark.d.ts +128 -82
- package/dist/src/spec/view.d.ts +2 -7
- package/dist/src/tooltip/dataTooltipHandler.d.ts +1 -1
- package/dist/src/tooltip/dataTooltipHandler.d.ts.map +1 -1
- package/dist/src/tooltip/refseqGeneTooltipHandler.d.ts +1 -1
- package/dist/src/tooltip/refseqGeneTooltipHandler.d.ts.map +1 -1
- package/dist/src/view/axisResolution.d.ts +1 -1
- package/dist/src/view/axisResolution.d.ts.map +1 -1
- package/dist/src/view/axisResolution.js +1 -1
- package/dist/src/view/axisView.js +2 -2
- package/dist/src/view/flowBuilder.test.js +1 -1
- package/dist/src/view/gridView.js +1 -1
- package/dist/src/view/paramMediator.d.ts +7 -0
- package/dist/src/view/paramMediator.d.ts.map +1 -1
- package/dist/src/view/paramMediator.js +23 -0
- package/dist/src/view/paramMediator.test.js +20 -0
- package/dist/src/view/scaleResolution.d.ts +1 -7
- package/dist/src/view/scaleResolution.d.ts.map +1 -1
- package/dist/src/view/scaleResolution.js +24 -39
- package/dist/src/view/unitView.d.ts +3 -5
- package/dist/src/view/unitView.d.ts.map +1 -1
- package/dist/src/view/unitView.js +22 -4
- package/dist/src/view/viewUtils.d.ts +1 -1
- package/dist/src/view/viewUtils.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/schema.json
CHANGED
|
@@ -715,6 +715,10 @@
|
|
|
715
715
|
"$ref": "#/definitions/FieldName",
|
|
716
716
|
"description": "The field having the chromosome or contig."
|
|
717
717
|
},
|
|
718
|
+
"contributesToScaleDomain": {
|
|
719
|
+
"description": "Whether the field or evaluated expr should be included in the scale's domain.\n\n**Default value:** `true`",
|
|
720
|
+
"type": "boolean"
|
|
721
|
+
},
|
|
718
722
|
"offset": {
|
|
719
723
|
"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`",
|
|
720
724
|
"type": "number"
|
|
@@ -1065,6 +1069,10 @@
|
|
|
1065
1069
|
"minimum": 0,
|
|
1066
1070
|
"type": "number"
|
|
1067
1071
|
},
|
|
1072
|
+
"contributesToScaleDomain": {
|
|
1073
|
+
"description": "Whether the field or evaluated expr should be included in the scale's domain.\n\n**Default value:** `true`",
|
|
1074
|
+
"type": "boolean"
|
|
1075
|
+
},
|
|
1068
1076
|
"datum": {
|
|
1069
1077
|
"anyOf": [
|
|
1070
1078
|
{
|
|
@@ -1084,6 +1092,21 @@
|
|
|
1084
1092
|
"description": "Filter using a parameter name.",
|
|
1085
1093
|
"type": "string"
|
|
1086
1094
|
},
|
|
1095
|
+
"resolutionChannel": {
|
|
1096
|
+
"$ref": "#/definitions/ChannelWithScale",
|
|
1097
|
+
"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."
|
|
1098
|
+
},
|
|
1099
|
+
"scale": {
|
|
1100
|
+
"anyOf": [
|
|
1101
|
+
{
|
|
1102
|
+
"$ref": "#/definitions/Scale"
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
"type": "null"
|
|
1106
|
+
}
|
|
1107
|
+
],
|
|
1108
|
+
"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."
|
|
1109
|
+
},
|
|
1087
1110
|
"title": {
|
|
1088
1111
|
"description": "A title for the field. If `null`, the title will be removed.",
|
|
1089
1112
|
"type": [
|
|
@@ -1550,6 +1573,10 @@
|
|
|
1550
1573
|
"description": "Builds and index for efficient rendering of subsets of the data. This setting is useful when rendering large amounts of data and often only a small subset of the data is visible. An example of such a situation is a scatter plot spanning the whole genome.\n\nThis setting implicitly sorts the data by the field assigned on the `x` channel.",
|
|
1551
1574
|
"type": "boolean"
|
|
1552
1575
|
},
|
|
1576
|
+
"contributesToScaleDomain": {
|
|
1577
|
+
"description": "Whether the field or evaluated expr should be included in the scale's domain.\n\n**Default value:** `true`",
|
|
1578
|
+
"type": "boolean"
|
|
1579
|
+
},
|
|
1553
1580
|
"field": {
|
|
1554
1581
|
"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`.",
|
|
1555
1582
|
"type": "string"
|
|
@@ -1613,6 +1640,10 @@
|
|
|
1613
1640
|
"$ref": "#/definitions/FieldName",
|
|
1614
1641
|
"description": "The field having the chromosome or contig."
|
|
1615
1642
|
},
|
|
1643
|
+
"contributesToScaleDomain": {
|
|
1644
|
+
"description": "Whether the field or evaluated expr should be included in the scale's domain.\n\n**Default value:** `true`",
|
|
1645
|
+
"type": "boolean"
|
|
1646
|
+
},
|
|
1616
1647
|
"offset": {
|
|
1617
1648
|
"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`",
|
|
1618
1649
|
"type": "number"
|
|
@@ -1678,6 +1709,10 @@
|
|
|
1678
1709
|
"description": "Builds and index for efficient rendering of subsets of the data. This setting is useful when rendering large amounts of data and often only a small subset of the data is visible. An example of such a situation is a scatter plot spanning the whole genome.\n\nThis setting implicitly sorts the data by the field assigned on the `x` channel.",
|
|
1679
1710
|
"type": "boolean"
|
|
1680
1711
|
},
|
|
1712
|
+
"contributesToScaleDomain": {
|
|
1713
|
+
"description": "Whether the field or evaluated expr should be included in the scale's domain.\n\n**Default value:** `true`",
|
|
1714
|
+
"type": "boolean"
|
|
1715
|
+
},
|
|
1681
1716
|
"datum": {
|
|
1682
1717
|
"anyOf": [
|
|
1683
1718
|
{
|
|
@@ -1923,6 +1958,10 @@
|
|
|
1923
1958
|
],
|
|
1924
1959
|
"description": "One or more value definition(s) with [a parameter or a test predicate](https://vega.github.io/vega-lite/docs/condition.html).\n\n__Note:__ A field definition's `condition` property can only contain [conditional value definitions](https://vega.github.io/vega-lite/docs/condition.html#value) since Vega-Lite only allows at most one encoded field per encoding channel."
|
|
1925
1960
|
},
|
|
1961
|
+
"contributesToScaleDomain": {
|
|
1962
|
+
"description": "Whether the field or evaluated expr should be included in the scale's domain.\n\n**Default value:** `true`",
|
|
1963
|
+
"type": "boolean"
|
|
1964
|
+
},
|
|
1926
1965
|
"datum": {
|
|
1927
1966
|
"anyOf": [
|
|
1928
1967
|
{
|
|
@@ -1934,6 +1973,21 @@
|
|
|
1934
1973
|
],
|
|
1935
1974
|
"description": "A constant value in data domain."
|
|
1936
1975
|
},
|
|
1976
|
+
"resolutionChannel": {
|
|
1977
|
+
"$ref": "#/definitions/ChannelWithScale",
|
|
1978
|
+
"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."
|
|
1979
|
+
},
|
|
1980
|
+
"scale": {
|
|
1981
|
+
"anyOf": [
|
|
1982
|
+
{
|
|
1983
|
+
"$ref": "#/definitions/Scale"
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
"type": "null"
|
|
1987
|
+
}
|
|
1988
|
+
],
|
|
1989
|
+
"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."
|
|
1990
|
+
},
|
|
1937
1991
|
"title": {
|
|
1938
1992
|
"description": "A title for the field. If `null`, the title will be removed.",
|
|
1939
1993
|
"type": [
|
|
@@ -1971,6 +2025,10 @@
|
|
|
1971
2025
|
],
|
|
1972
2026
|
"description": "One or more value definition(s) with [a parameter or a test predicate](https://vega.github.io/vega-lite/docs/condition.html).\n\n__Note:__ A field definition's `condition` property can only contain [conditional value definitions](https://vega.github.io/vega-lite/docs/condition.html#value) since Vega-Lite only allows at most one encoded field per encoding channel."
|
|
1973
2027
|
},
|
|
2028
|
+
"contributesToScaleDomain": {
|
|
2029
|
+
"description": "Whether the field or evaluated expr should be included in the scale's domain.\n\n**Default value:** `true`",
|
|
2030
|
+
"type": "boolean"
|
|
2031
|
+
},
|
|
1974
2032
|
"datum": {
|
|
1975
2033
|
"anyOf": [
|
|
1976
2034
|
{
|
|
@@ -1982,6 +2040,21 @@
|
|
|
1982
2040
|
],
|
|
1983
2041
|
"description": "A constant value in data domain."
|
|
1984
2042
|
},
|
|
2043
|
+
"resolutionChannel": {
|
|
2044
|
+
"$ref": "#/definitions/ChannelWithScale",
|
|
2045
|
+
"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."
|
|
2046
|
+
},
|
|
2047
|
+
"scale": {
|
|
2048
|
+
"anyOf": [
|
|
2049
|
+
{
|
|
2050
|
+
"$ref": "#/definitions/Scale"
|
|
2051
|
+
},
|
|
2052
|
+
{
|
|
2053
|
+
"type": "null"
|
|
2054
|
+
}
|
|
2055
|
+
],
|
|
2056
|
+
"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."
|
|
2057
|
+
},
|
|
1985
2058
|
"title": {
|
|
1986
2059
|
"description": "A title for the field. If `null`, the title will be removed.",
|
|
1987
2060
|
"type": [
|
|
@@ -2013,6 +2086,10 @@
|
|
|
2013
2086
|
],
|
|
2014
2087
|
"description": "One or more value definition(s) with [a parameter or a test predicate](https://vega.github.io/vega-lite/docs/condition.html).\n\n__Note:__ A field definition's `condition` property can only contain [conditional value definitions](https://vega.github.io/vega-lite/docs/condition.html#value) since Vega-Lite only allows at most one encoded field per encoding channel."
|
|
2015
2088
|
},
|
|
2089
|
+
"contributesToScaleDomain": {
|
|
2090
|
+
"description": "Whether the field or evaluated expr should be included in the scale's domain.\n\n**Default value:** `true`",
|
|
2091
|
+
"type": "boolean"
|
|
2092
|
+
},
|
|
2016
2093
|
"field": {
|
|
2017
2094
|
"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`.",
|
|
2018
2095
|
"type": "string"
|
|
@@ -2066,6 +2143,10 @@
|
|
|
2066
2143
|
],
|
|
2067
2144
|
"description": "One or more value definition(s) with [a parameter or a test predicate](https://vega.github.io/vega-lite/docs/condition.html).\n\n__Note:__ A field definition's `condition` property can only contain [conditional value definitions](https://vega.github.io/vega-lite/docs/condition.html#value) since Vega-Lite only allows at most one encoded field per encoding channel."
|
|
2068
2145
|
},
|
|
2146
|
+
"contributesToScaleDomain": {
|
|
2147
|
+
"description": "Whether the field or evaluated expr should be included in the scale's domain.\n\n**Default value:** `true`",
|
|
2148
|
+
"type": "boolean"
|
|
2149
|
+
},
|
|
2069
2150
|
"field": {
|
|
2070
2151
|
"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`.",
|
|
2071
2152
|
"type": "string"
|
|
@@ -2119,6 +2200,10 @@
|
|
|
2119
2200
|
],
|
|
2120
2201
|
"description": "One or more value definition(s) with [a parameter or a test predicate](https://vega.github.io/vega-lite/docs/condition.html).\n\n__Note:__ A field definition's `condition` property can only contain [conditional value definitions](https://vega.github.io/vega-lite/docs/condition.html#value) since Vega-Lite only allows at most one encoded field per encoding channel."
|
|
2121
2202
|
},
|
|
2203
|
+
"contributesToScaleDomain": {
|
|
2204
|
+
"description": "Whether the field or evaluated expr should be included in the scale's domain.\n\n**Default value:** `true`",
|
|
2205
|
+
"type": "boolean"
|
|
2206
|
+
},
|
|
2122
2207
|
"field": {
|
|
2123
2208
|
"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`.",
|
|
2124
2209
|
"type": "string"
|
|
@@ -3575,24 +3660,9 @@
|
|
|
3575
3660
|
],
|
|
3576
3661
|
"type": "object"
|
|
3577
3662
|
},
|
|
3578
|
-
"
|
|
3663
|
+
"LinkProps": {
|
|
3579
3664
|
"additionalProperties": false,
|
|
3580
3665
|
"properties": {
|
|
3581
|
-
"align": {
|
|
3582
|
-
"$ref": "#/definitions/Align",
|
|
3583
|
-
"description": "The horizontal alignment of the text. One of `\"left\"`, `\"center\"`, or `\"right\"`.\n\n**Default value:** `\"left\"`"
|
|
3584
|
-
},
|
|
3585
|
-
"angle": {
|
|
3586
|
-
"anyOf": [
|
|
3587
|
-
{
|
|
3588
|
-
"type": "number"
|
|
3589
|
-
},
|
|
3590
|
-
{
|
|
3591
|
-
"$ref": "#/definitions/ExprRef"
|
|
3592
|
-
}
|
|
3593
|
-
],
|
|
3594
|
-
"description": "The rotation angle in degrees.\n\n**Default value:** `0`"
|
|
3595
|
-
},
|
|
3596
3666
|
"arcFadingDistance": {
|
|
3597
3667
|
"anyOf": [
|
|
3598
3668
|
{
|
|
@@ -3624,10 +3694,6 @@
|
|
|
3624
3694
|
],
|
|
3625
3695
|
"description": "Scaling factor for the `\"arc`\" shape's height. The default value `1.0` produces roughly circular arcs.\n\n**Default value:** `1.0`"
|
|
3626
3696
|
},
|
|
3627
|
-
"baseline": {
|
|
3628
|
-
"$ref": "#/definitions/Baseline",
|
|
3629
|
-
"description": "The vertical alignment of the text. One of `\"top\"`, `\"middle\"`, `\"bottom\"`.\n\n**Default value:** `\"bottom\"`"
|
|
3630
|
-
},
|
|
3631
3697
|
"clampApex": {
|
|
3632
3698
|
"anyOf": [
|
|
3633
3699
|
{
|
|
@@ -3661,40 +3727,31 @@
|
|
|
3661
3727
|
}
|
|
3662
3728
|
]
|
|
3663
3729
|
},
|
|
3664
|
-
"
|
|
3730
|
+
"linkShape": {
|
|
3665
3731
|
"anyOf": [
|
|
3666
3732
|
{
|
|
3667
|
-
"
|
|
3733
|
+
"const": "arc",
|
|
3734
|
+
"type": "string"
|
|
3668
3735
|
},
|
|
3669
3736
|
{
|
|
3670
|
-
"
|
|
3671
|
-
|
|
3672
|
-
],
|
|
3673
|
-
"description": "Radius of the rounded corners.\n\n**Default value:** `0`"
|
|
3674
|
-
},
|
|
3675
|
-
"cornerRadiusBottomLeft": {
|
|
3676
|
-
"anyOf": [
|
|
3677
|
-
{
|
|
3678
|
-
"type": "number"
|
|
3737
|
+
"const": "diagonal",
|
|
3738
|
+
"type": "string"
|
|
3679
3739
|
},
|
|
3680
3740
|
{
|
|
3681
|
-
"
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
"description": "Radius of the bottom left rounded corner. Has higher precedence than `cornerRadius`.\n\n**Default value:** (None)"
|
|
3685
|
-
},
|
|
3686
|
-
"cornerRadiusBottomRight": {
|
|
3687
|
-
"anyOf": [
|
|
3741
|
+
"const": "line",
|
|
3742
|
+
"type": "string"
|
|
3743
|
+
},
|
|
3688
3744
|
{
|
|
3689
|
-
"
|
|
3745
|
+
"const": "dome",
|
|
3746
|
+
"type": "string"
|
|
3690
3747
|
},
|
|
3691
3748
|
{
|
|
3692
3749
|
"$ref": "#/definitions/ExprRef"
|
|
3693
3750
|
}
|
|
3694
3751
|
],
|
|
3695
|
-
"description": "
|
|
3752
|
+
"description": "The shape of the link path. Either `\"arc\"`, `\"diagonal\"`, `\"line\"`, or `\"dome\"`.\n\n**Default value:** `\"arc\"`"
|
|
3696
3753
|
},
|
|
3697
|
-
"
|
|
3754
|
+
"maxChordLength": {
|
|
3698
3755
|
"anyOf": [
|
|
3699
3756
|
{
|
|
3700
3757
|
"type": "number"
|
|
@@ -3703,9 +3760,9 @@
|
|
|
3703
3760
|
"$ref": "#/definitions/ExprRef"
|
|
3704
3761
|
}
|
|
3705
3762
|
],
|
|
3706
|
-
"description": "
|
|
3763
|
+
"description": "The maximum length of `\"arc\"` shape's chord in pixels. The chord is the line segment between the two points that define the arc. Limiting the chord length serves two purposes when zooming in close enough: 1) it prevents the arc from becoming a straight line and 2) it mitigates the limited precision of floating point numbers in arc rendering.\n\n**Default value:** `50000`"
|
|
3707
3764
|
},
|
|
3708
|
-
"
|
|
3765
|
+
"minArcHeight": {
|
|
3709
3766
|
"anyOf": [
|
|
3710
3767
|
{
|
|
3711
3768
|
"type": "number"
|
|
@@ -3714,39 +3771,35 @@
|
|
|
3714
3771
|
"$ref": "#/definitions/ExprRef"
|
|
3715
3772
|
}
|
|
3716
3773
|
],
|
|
3717
|
-
"description": "
|
|
3718
|
-
},
|
|
3719
|
-
"dx": {
|
|
3720
|
-
"description": "The horizontal offset between the text and its anchor point, in pixels. Applied after the rotation by `angle`.",
|
|
3721
|
-
"type": "number"
|
|
3774
|
+
"description": "The minimum height of an `\"arc\"` shape. Makes very short links more clearly visible.\n\n**Default value:** `1.5`"
|
|
3722
3775
|
},
|
|
3723
|
-
"
|
|
3724
|
-
"description": "
|
|
3776
|
+
"minBufferSize": {
|
|
3777
|
+
"description": "Minimum size for WebGL buffers (number of data items). Allows for using `bufferSubData()` to update graphics.\n\nThis property is intended for internal use.",
|
|
3725
3778
|
"type": "number"
|
|
3726
3779
|
},
|
|
3727
|
-
"
|
|
3780
|
+
"minPickingSize": {
|
|
3728
3781
|
"anyOf": [
|
|
3729
3782
|
{
|
|
3730
|
-
"type": "
|
|
3783
|
+
"type": "number"
|
|
3731
3784
|
},
|
|
3732
3785
|
{
|
|
3733
3786
|
"$ref": "#/definitions/ExprRef"
|
|
3734
3787
|
}
|
|
3735
3788
|
],
|
|
3736
|
-
"description": "The
|
|
3789
|
+
"description": "The minimum picking size invisibly increases the stroke width or point diameter of marks when pointing them with the mouse cursor, making it easier to select them. The valus is the minimum size in pixels.\n\n**Default value:** `3.0` for `\"link\"` and `2.0` for `\"point\"`"
|
|
3737
3790
|
},
|
|
3738
|
-
"
|
|
3791
|
+
"noFadingOnPointSelection": {
|
|
3739
3792
|
"anyOf": [
|
|
3740
3793
|
{
|
|
3741
|
-
"type": "
|
|
3794
|
+
"type": "boolean"
|
|
3742
3795
|
},
|
|
3743
3796
|
{
|
|
3744
3797
|
"$ref": "#/definitions/ExprRef"
|
|
3745
3798
|
}
|
|
3746
3799
|
],
|
|
3747
|
-
"description": "
|
|
3800
|
+
"description": "Disables fading of the link when an mark instance is subject to any point selection. As the fading distance is unavailable as a visual channel, this property allows for enhancing the visibility of the selected links.\n\n**Default value:** `true`"
|
|
3748
3801
|
},
|
|
3749
|
-
"
|
|
3802
|
+
"opacity": {
|
|
3750
3803
|
"anyOf": [
|
|
3751
3804
|
{
|
|
3752
3805
|
"type": "number"
|
|
@@ -3754,109 +3807,55 @@
|
|
|
3754
3807
|
{
|
|
3755
3808
|
"$ref": "#/definitions/ExprRef"
|
|
3756
3809
|
}
|
|
3757
|
-
]
|
|
3758
|
-
"description": "The fill opacity. Value between [0, 1]."
|
|
3759
|
-
},
|
|
3760
|
-
"filled": {
|
|
3761
|
-
"description": "Whether the `color` represents the `fill` color (`true`) or the `stroke` color (`false`).",
|
|
3762
|
-
"type": "boolean"
|
|
3810
|
+
]
|
|
3763
3811
|
},
|
|
3764
|
-
"
|
|
3812
|
+
"orient": {
|
|
3765
3813
|
"anyOf": [
|
|
3766
3814
|
{
|
|
3767
|
-
"
|
|
3815
|
+
"const": "vertical",
|
|
3816
|
+
"type": "string"
|
|
3768
3817
|
},
|
|
3769
3818
|
{
|
|
3770
|
-
"
|
|
3771
|
-
|
|
3772
|
-
],
|
|
3773
|
-
"description": "If true, sets the secondary positional channel that allows the text to be squeezed (see the `squeeze` property). Can be used when: 1) `\"band\"`, `\"index\"`, or `\"locus\"` scale is being used and 2) only the primary positional channel is specified.\n\n**Default value:** `false`"
|
|
3774
|
-
},
|
|
3775
|
-
"flushX": {
|
|
3776
|
-
"anyOf": [
|
|
3777
|
-
{
|
|
3778
|
-
"type": "boolean"
|
|
3819
|
+
"const": "horizontal",
|
|
3820
|
+
"type": "string"
|
|
3779
3821
|
},
|
|
3780
3822
|
{
|
|
3781
3823
|
"$ref": "#/definitions/ExprRef"
|
|
3782
3824
|
}
|
|
3783
3825
|
],
|
|
3784
|
-
"description": "
|
|
3826
|
+
"description": "The orientation of the link path. Either `\"vertical\"` or `\"horizontal\"`. Only applies to diagonal links.\n\n**Default value:** `\"vertical\"`"
|
|
3785
3827
|
},
|
|
3786
|
-
"
|
|
3828
|
+
"segments": {
|
|
3787
3829
|
"anyOf": [
|
|
3788
3830
|
{
|
|
3789
|
-
"type": "
|
|
3831
|
+
"type": "number"
|
|
3790
3832
|
},
|
|
3791
3833
|
{
|
|
3792
3834
|
"$ref": "#/definitions/ExprRef"
|
|
3793
3835
|
}
|
|
3794
3836
|
],
|
|
3795
|
-
"description": "
|
|
3796
|
-
},
|
|
3797
|
-
"font": {
|
|
3798
|
-
"description": "The font typeface. GenomeSpy uses [SDF](https://github.com/Chlumsky/msdfgen) versions of [Google Fonts](https://fonts.google.com/). Check their availability at the [A-Frame Fonts](https://github.com/etiennepinchon/aframe-fonts/tree/master/fonts) repository. System fonts are **not** supported.\n\n**Default value:** `\"Lato\"`",
|
|
3799
|
-
"type": "string"
|
|
3800
|
-
},
|
|
3801
|
-
"fontStyle": {
|
|
3802
|
-
"$ref": "#/definitions/FontStyle",
|
|
3803
|
-
"description": "The font style. Valid values: `\"normal\"` and `\"italic\"`.\n\n**Default value:** `\"normal\"`"
|
|
3804
|
-
},
|
|
3805
|
-
"fontWeight": {
|
|
3806
|
-
"$ref": "#/definitions/FontWeight",
|
|
3807
|
-
"description": "The font weight. The following strings and numbers are valid values: `\"thin\"` (`100`), `\"light\"` (`300`), `\"regular\"` (`400`), `\"normal\"` (`400`), `\"medium\"` (`500`), `\"bold\"` (`700`), `\"black\"` (`900`)\n\n**Default value:** `\"regular\"`"
|
|
3808
|
-
},
|
|
3809
|
-
"geometricZoomBound": {
|
|
3810
|
-
"description": "Enables geometric zooming. The value is the base two logarithmic zoom level where the maximum point size is reached.\n\n**Default value:** `0`",
|
|
3811
|
-
"type": "number"
|
|
3837
|
+
"description": "The number of segments in the bézier curve. Affects the rendering quality and performance. Use a higher value for a smoother curve.\n\n**Default value:* `101`"
|
|
3812
3838
|
},
|
|
3813
|
-
"
|
|
3839
|
+
"size": {
|
|
3814
3840
|
"anyOf": [
|
|
3815
3841
|
{
|
|
3816
|
-
"type": "
|
|
3842
|
+
"type": "number"
|
|
3817
3843
|
},
|
|
3818
3844
|
{
|
|
3819
3845
|
"$ref": "#/definitions/ExprRef"
|
|
3820
3846
|
}
|
|
3821
3847
|
],
|
|
3822
|
-
"description": "
|
|
3848
|
+
"description": "Stroke width of `\"link\"` and `\"rule\"` marks in pixels, the area of the bounding square of `\"point\"` mark, or the font size of `\"text\"` mark."
|
|
3823
3849
|
},
|
|
3824
|
-
"
|
|
3825
|
-
"
|
|
3826
|
-
|
|
3827
|
-
"const": "arc",
|
|
3828
|
-
"type": "string"
|
|
3829
|
-
},
|
|
3830
|
-
{
|
|
3831
|
-
"const": "diagonal",
|
|
3832
|
-
"type": "string"
|
|
3833
|
-
},
|
|
3834
|
-
{
|
|
3835
|
-
"const": "line",
|
|
3836
|
-
"type": "string"
|
|
3837
|
-
},
|
|
3838
|
-
{
|
|
3839
|
-
"const": "dome",
|
|
3840
|
-
"type": "string"
|
|
3841
|
-
},
|
|
3842
|
-
{
|
|
3843
|
-
"$ref": "#/definitions/ExprRef"
|
|
3844
|
-
}
|
|
3845
|
-
],
|
|
3846
|
-
"description": "The shape of the link path. Either `\"arc\"`, `\"diagonal\"`, `\"line\"`, or `\"dome\"`.\n\n**Default value:** `\"arc\"`"
|
|
3850
|
+
"tooltip": {
|
|
3851
|
+
"$ref": "#/definitions/Tooltip",
|
|
3852
|
+
"description": "Tooltip handler. If `null`, no tooltip is shown."
|
|
3847
3853
|
},
|
|
3848
|
-
"
|
|
3849
|
-
"
|
|
3850
|
-
|
|
3851
|
-
"type": "boolean"
|
|
3852
|
-
},
|
|
3853
|
-
{
|
|
3854
|
-
"$ref": "#/definitions/ExprRef"
|
|
3855
|
-
}
|
|
3856
|
-
],
|
|
3857
|
-
"description": "Stretch letters so that they can be used with [sequence logos](https://en.wikipedia.org/wiki/Sequence_logo), etc..."
|
|
3854
|
+
"type": {
|
|
3855
|
+
"const": "link",
|
|
3856
|
+
"type": "string"
|
|
3858
3857
|
},
|
|
3859
|
-
"
|
|
3858
|
+
"x": {
|
|
3860
3859
|
"anyOf": [
|
|
3861
3860
|
{
|
|
3862
3861
|
"type": "number"
|
|
@@ -3864,10 +3863,9 @@
|
|
|
3864
3863
|
{
|
|
3865
3864
|
"$ref": "#/definitions/ExprRef"
|
|
3866
3865
|
}
|
|
3867
|
-
]
|
|
3868
|
-
"description": "The maximum length of `\"arc\"` shape's chord in pixels. The chord is the line segment between the two points that define the arc. Limiting the chord length serves two purposes when zooming in close enough: 1) it prevents the arc from becoming a straight line and 2) it mitigates the limited precision of floating point numbers in arc rendering.\n\n**Default value:** `50000`"
|
|
3866
|
+
]
|
|
3869
3867
|
},
|
|
3870
|
-
"
|
|
3868
|
+
"x2": {
|
|
3871
3869
|
"anyOf": [
|
|
3872
3870
|
{
|
|
3873
3871
|
"type": "number"
|
|
@@ -3875,14 +3873,13 @@
|
|
|
3875
3873
|
{
|
|
3876
3874
|
"$ref": "#/definitions/ExprRef"
|
|
3877
3875
|
}
|
|
3878
|
-
]
|
|
3879
|
-
"description": "The minimum height of an `\"arc\"` shape. Makes very short links more clearly visible.\n\n**Default value:** `1.5`"
|
|
3876
|
+
]
|
|
3880
3877
|
},
|
|
3881
|
-
"
|
|
3882
|
-
"description": "
|
|
3878
|
+
"xOffset": {
|
|
3879
|
+
"description": "Offsets of the `x` and `x2` coordinates in pixels. The offset is applied after the viewport scaling and translation.\n\n**Default value:** `0`",
|
|
3883
3880
|
"type": "number"
|
|
3884
3881
|
},
|
|
3885
|
-
"
|
|
3882
|
+
"y": {
|
|
3886
3883
|
"anyOf": [
|
|
3887
3884
|
{
|
|
3888
3885
|
"type": "number"
|
|
@@ -3890,301 +3887,9 @@
|
|
|
3890
3887
|
{
|
|
3891
3888
|
"$ref": "#/definitions/ExprRef"
|
|
3892
3889
|
}
|
|
3893
|
-
]
|
|
3894
|
-
"description": "The minimum height of a rectangle in pixels. The property clamps rectangles' heights.\n\n**Default value:** `0`"
|
|
3890
|
+
]
|
|
3895
3891
|
},
|
|
3896
|
-
"
|
|
3897
|
-
"anyOf": [
|
|
3898
|
-
{
|
|
3899
|
-
"type": "number"
|
|
3900
|
-
},
|
|
3901
|
-
{
|
|
3902
|
-
"$ref": "#/definitions/ExprRef"
|
|
3903
|
-
}
|
|
3904
|
-
],
|
|
3905
|
-
"description": "The minimum length of the rule in pixels. Use this property to ensure that very short ranged rules remain visible even when the user zooms out.\n\n**Default value:** `0`"
|
|
3906
|
-
},
|
|
3907
|
-
"minOpacity": {
|
|
3908
|
-
"anyOf": [
|
|
3909
|
-
{
|
|
3910
|
-
"type": "number"
|
|
3911
|
-
},
|
|
3912
|
-
{
|
|
3913
|
-
"$ref": "#/definitions/ExprRef"
|
|
3914
|
-
}
|
|
3915
|
-
],
|
|
3916
|
-
"description": "Clamps the minimum size-dependent opacity. The property does not affect the `opacity` channel. Valid values are between `0` and `1`.\n\nWhen a rectangle would be smaller than what is specified in `minHeight` and `minWidth`, it is faded out proportionally. Example: a rectangle would be rendered as one pixel wide, but `minWidth` clamps it to five pixels. The rectangle is actually rendered as five pixels wide, but its opacity is multiplied by 0.2. With this setting, you can limit the factor to, for example, 0.5 to keep the rectangles more clearly visible.\n\n**Default value:** `0`"
|
|
3917
|
-
},
|
|
3918
|
-
"minPickingSize": {
|
|
3919
|
-
"anyOf": [
|
|
3920
|
-
{
|
|
3921
|
-
"type": "number"
|
|
3922
|
-
},
|
|
3923
|
-
{
|
|
3924
|
-
"$ref": "#/definitions/ExprRef"
|
|
3925
|
-
}
|
|
3926
|
-
],
|
|
3927
|
-
"description": "The minimum stroke width of the links when pointing with the mouse cursor. Allows making very thin links easier to point at.\n\n**Default value:** `3.0`"
|
|
3928
|
-
},
|
|
3929
|
-
"minWidth": {
|
|
3930
|
-
"anyOf": [
|
|
3931
|
-
{
|
|
3932
|
-
"type": "number"
|
|
3933
|
-
},
|
|
3934
|
-
{
|
|
3935
|
-
"$ref": "#/definitions/ExprRef"
|
|
3936
|
-
}
|
|
3937
|
-
],
|
|
3938
|
-
"description": "The minimum width of a rectangle in pixels. The property clamps rectangles' widths when the viewport is zoomed out.\n\nThis property also reduces flickering of very narrow rectangles when zooming. The value should generally be at least one.\n\n**Default value:** `1`"
|
|
3939
|
-
},
|
|
3940
|
-
"noFadingOnPointSelection": {
|
|
3941
|
-
"anyOf": [
|
|
3942
|
-
{
|
|
3943
|
-
"type": "boolean"
|
|
3944
|
-
},
|
|
3945
|
-
{
|
|
3946
|
-
"$ref": "#/definitions/ExprRef"
|
|
3947
|
-
}
|
|
3948
|
-
],
|
|
3949
|
-
"description": "Disables fading of the link when an mark instance is subject to any point selection. As the fading distance is unavailable as a visual channel, this property allows for enhancing the visibility of the selected links.\n\n**Default value:** `true`"
|
|
3950
|
-
},
|
|
3951
|
-
"opacity": {
|
|
3952
|
-
"anyOf": [
|
|
3953
|
-
{
|
|
3954
|
-
"type": "number"
|
|
3955
|
-
},
|
|
3956
|
-
{
|
|
3957
|
-
"$ref": "#/definitions/ExprRef"
|
|
3958
|
-
}
|
|
3959
|
-
]
|
|
3960
|
-
},
|
|
3961
|
-
"orient": {
|
|
3962
|
-
"anyOf": [
|
|
3963
|
-
{
|
|
3964
|
-
"const": "vertical",
|
|
3965
|
-
"type": "string"
|
|
3966
|
-
},
|
|
3967
|
-
{
|
|
3968
|
-
"const": "horizontal",
|
|
3969
|
-
"type": "string"
|
|
3970
|
-
},
|
|
3971
|
-
{
|
|
3972
|
-
"$ref": "#/definitions/ExprRef"
|
|
3973
|
-
}
|
|
3974
|
-
],
|
|
3975
|
-
"description": "The orientation of the link path. Either `\"vertical\"` or `\"horizontal\"`. Only applies to diagonal links.\n\n**Default value:** `\"vertical\"`"
|
|
3976
|
-
},
|
|
3977
|
-
"paddingX": {
|
|
3978
|
-
"anyOf": [
|
|
3979
|
-
{
|
|
3980
|
-
"type": "number"
|
|
3981
|
-
},
|
|
3982
|
-
{
|
|
3983
|
-
"$ref": "#/definitions/ExprRef"
|
|
3984
|
-
}
|
|
3985
|
-
],
|
|
3986
|
-
"description": "The horizontal padding, in pixels, when the `x2` channel is used for ranged text.\n\n**Default value:** `0`"
|
|
3987
|
-
},
|
|
3988
|
-
"paddingY": {
|
|
3989
|
-
"anyOf": [
|
|
3990
|
-
{
|
|
3991
|
-
"type": "number"
|
|
3992
|
-
},
|
|
3993
|
-
{
|
|
3994
|
-
"$ref": "#/definitions/ExprRef"
|
|
3995
|
-
}
|
|
3996
|
-
],
|
|
3997
|
-
"description": "The vertical padding, in pixels, when the `y2` channel is used for ranged text.\n\n**Default value:** `0`"
|
|
3998
|
-
},
|
|
3999
|
-
"segments": {
|
|
4000
|
-
"anyOf": [
|
|
4001
|
-
{
|
|
4002
|
-
"type": "number"
|
|
4003
|
-
},
|
|
4004
|
-
{
|
|
4005
|
-
"$ref": "#/definitions/ExprRef"
|
|
4006
|
-
}
|
|
4007
|
-
],
|
|
4008
|
-
"description": "The number of segments in the bézier curve. Affects the rendering quality and performance. Use a higher value for a smoother curve.\n\n**Default value:* `101`"
|
|
4009
|
-
},
|
|
4010
|
-
"semanticZoomFraction": {
|
|
4011
|
-
"anyOf": [
|
|
4012
|
-
{
|
|
4013
|
-
"type": "number"
|
|
4014
|
-
},
|
|
4015
|
-
{
|
|
4016
|
-
"$ref": "#/definitions/ExprRef"
|
|
4017
|
-
}
|
|
4018
|
-
],
|
|
4019
|
-
"description": "TODO\n\n**Default value:** `0.02`"
|
|
4020
|
-
},
|
|
4021
|
-
"shape": {
|
|
4022
|
-
"description": "One of `\"circle\"`, `\"square\"`, `\"cross\"`, `\"diamond\"`, `\"triangle-up\"`, `\"triangle-down\"`, `\"triangle-right\"`, or `\"triangle-left\"`.\n\n**Default value:** `\"circle\"`",
|
|
4023
|
-
"type": "string"
|
|
4024
|
-
},
|
|
4025
|
-
"size": {
|
|
4026
|
-
"anyOf": [
|
|
4027
|
-
{
|
|
4028
|
-
"type": "number"
|
|
4029
|
-
},
|
|
4030
|
-
{
|
|
4031
|
-
"$ref": "#/definitions/ExprRef"
|
|
4032
|
-
}
|
|
4033
|
-
],
|
|
4034
|
-
"description": "The font size in pixels.\n\n**Default value:** `11`"
|
|
4035
|
-
},
|
|
4036
|
-
"squeeze": {
|
|
4037
|
-
"anyOf": [
|
|
4038
|
-
{
|
|
4039
|
-
"type": "boolean"
|
|
4040
|
-
},
|
|
4041
|
-
{
|
|
4042
|
-
"$ref": "#/definitions/ExprRef"
|
|
4043
|
-
}
|
|
4044
|
-
],
|
|
4045
|
-
"description": "If the `squeeze` property is true and secondary positional channels (`x2` and/or `y2`) are used, the text is scaled to fit mark's width and/or height.\n\n**Default value:** `true`"
|
|
4046
|
-
},
|
|
4047
|
-
"stroke": {
|
|
4048
|
-
"anyOf": [
|
|
4049
|
-
{
|
|
4050
|
-
"type": "string"
|
|
4051
|
-
},
|
|
4052
|
-
{
|
|
4053
|
-
"$ref": "#/definitions/ExprRef"
|
|
4054
|
-
}
|
|
4055
|
-
],
|
|
4056
|
-
"description": "The stroke color"
|
|
4057
|
-
},
|
|
4058
|
-
"strokeCap": {
|
|
4059
|
-
"anyOf": [
|
|
4060
|
-
{
|
|
4061
|
-
"const": "butt",
|
|
4062
|
-
"type": "string"
|
|
4063
|
-
},
|
|
4064
|
-
{
|
|
4065
|
-
"const": "square",
|
|
4066
|
-
"type": "string"
|
|
4067
|
-
},
|
|
4068
|
-
{
|
|
4069
|
-
"const": "round",
|
|
4070
|
-
"type": "string"
|
|
4071
|
-
},
|
|
4072
|
-
{
|
|
4073
|
-
"$ref": "#/definitions/ExprRef"
|
|
4074
|
-
}
|
|
4075
|
-
],
|
|
4076
|
-
"description": "The style of stroke ends. Available choices: `\"butt\"`, `\"round`\", and `\"square\"`.\n\n**Default value:** `\"butt\"`"
|
|
4077
|
-
},
|
|
4078
|
-
"strokeDash": {
|
|
4079
|
-
"description": "An array of of alternating stroke and gap lengths or `null` for solid strokes.\n\n**Default value:** `null`",
|
|
4080
|
-
"items": {
|
|
4081
|
-
"type": "number"
|
|
4082
|
-
},
|
|
4083
|
-
"type": "array"
|
|
4084
|
-
},
|
|
4085
|
-
"strokeDashOffset": {
|
|
4086
|
-
"description": "An offset for the stroke dash pattern.\n\n**Default value:** `0`",
|
|
4087
|
-
"type": "number"
|
|
4088
|
-
},
|
|
4089
|
-
"strokeOpacity": {
|
|
4090
|
-
"anyOf": [
|
|
4091
|
-
{
|
|
4092
|
-
"type": "number"
|
|
4093
|
-
},
|
|
4094
|
-
{
|
|
4095
|
-
"$ref": "#/definitions/ExprRef"
|
|
4096
|
-
}
|
|
4097
|
-
],
|
|
4098
|
-
"description": "The stroke opacity. Value between [0, 1]."
|
|
4099
|
-
},
|
|
4100
|
-
"strokeWidth": {
|
|
4101
|
-
"anyOf": [
|
|
4102
|
-
{
|
|
4103
|
-
"type": "number"
|
|
4104
|
-
},
|
|
4105
|
-
{
|
|
4106
|
-
"$ref": "#/definitions/ExprRef"
|
|
4107
|
-
}
|
|
4108
|
-
],
|
|
4109
|
-
"description": "The stroke width in pixels."
|
|
4110
|
-
},
|
|
4111
|
-
"text": {
|
|
4112
|
-
"anyOf": [
|
|
4113
|
-
{
|
|
4114
|
-
"$ref": "#/definitions/Scalar"
|
|
4115
|
-
},
|
|
4116
|
-
{
|
|
4117
|
-
"$ref": "#/definitions/ExprRef"
|
|
4118
|
-
}
|
|
4119
|
-
],
|
|
4120
|
-
"description": "The text to display. The format of numeric data can be customized by setting a [format specifier](https://github.com/d3/d3-format#locale_format) to channel definition's `format` property.\n\n**Default value:** `\"\"`"
|
|
4121
|
-
},
|
|
4122
|
-
"tooltip": {
|
|
4123
|
-
"$ref": "#/definitions/Tooltip",
|
|
4124
|
-
"description": "TODO"
|
|
4125
|
-
},
|
|
4126
|
-
"type": {
|
|
4127
|
-
"$ref": "#/definitions/MarkType"
|
|
4128
|
-
},
|
|
4129
|
-
"viewportEdgeFadeDistanceBottom": {
|
|
4130
|
-
"type": "number"
|
|
4131
|
-
},
|
|
4132
|
-
"viewportEdgeFadeDistanceLeft": {
|
|
4133
|
-
"type": "number"
|
|
4134
|
-
},
|
|
4135
|
-
"viewportEdgeFadeDistanceRight": {
|
|
4136
|
-
"type": "number"
|
|
4137
|
-
},
|
|
4138
|
-
"viewportEdgeFadeDistanceTop": {
|
|
4139
|
-
"type": "number"
|
|
4140
|
-
},
|
|
4141
|
-
"viewportEdgeFadeWidthBottom": {
|
|
4142
|
-
"type": "number"
|
|
4143
|
-
},
|
|
4144
|
-
"viewportEdgeFadeWidthLeft": {
|
|
4145
|
-
"type": "number"
|
|
4146
|
-
},
|
|
4147
|
-
"viewportEdgeFadeWidthRight": {
|
|
4148
|
-
"type": "number"
|
|
4149
|
-
},
|
|
4150
|
-
"viewportEdgeFadeWidthTop": {
|
|
4151
|
-
"type": "number"
|
|
4152
|
-
},
|
|
4153
|
-
"x": {
|
|
4154
|
-
"anyOf": [
|
|
4155
|
-
{
|
|
4156
|
-
"type": "number"
|
|
4157
|
-
},
|
|
4158
|
-
{
|
|
4159
|
-
"$ref": "#/definitions/ExprRef"
|
|
4160
|
-
}
|
|
4161
|
-
]
|
|
4162
|
-
},
|
|
4163
|
-
"x2": {
|
|
4164
|
-
"anyOf": [
|
|
4165
|
-
{
|
|
4166
|
-
"type": "number"
|
|
4167
|
-
},
|
|
4168
|
-
{
|
|
4169
|
-
"$ref": "#/definitions/ExprRef"
|
|
4170
|
-
}
|
|
4171
|
-
]
|
|
4172
|
-
},
|
|
4173
|
-
"xOffset": {
|
|
4174
|
-
"description": "Offsets of the `x` and `x2` coordinates in pixels. The offset is applied after the viewport scaling and translation.\n\n**Default value:** `0`",
|
|
4175
|
-
"type": "number"
|
|
4176
|
-
},
|
|
4177
|
-
"y": {
|
|
4178
|
-
"anyOf": [
|
|
4179
|
-
{
|
|
4180
|
-
"type": "number"
|
|
4181
|
-
},
|
|
4182
|
-
{
|
|
4183
|
-
"$ref": "#/definitions/ExprRef"
|
|
4184
|
-
}
|
|
4185
|
-
]
|
|
4186
|
-
},
|
|
4187
|
-
"y2": {
|
|
3892
|
+
"y2": {
|
|
4188
3893
|
"anyOf": [
|
|
4189
3894
|
{
|
|
4190
3895
|
"type": "number"
|
|
@@ -4243,6 +3948,25 @@
|
|
|
4243
3948
|
}
|
|
4244
3949
|
]
|
|
4245
3950
|
},
|
|
3951
|
+
"MarkProps": {
|
|
3952
|
+
"anyOf": [
|
|
3953
|
+
{
|
|
3954
|
+
"$ref": "#/definitions/RectProps"
|
|
3955
|
+
},
|
|
3956
|
+
{
|
|
3957
|
+
"$ref": "#/definitions/TextProps"
|
|
3958
|
+
},
|
|
3959
|
+
{
|
|
3960
|
+
"$ref": "#/definitions/RuleProps"
|
|
3961
|
+
},
|
|
3962
|
+
{
|
|
3963
|
+
"$ref": "#/definitions/LinkProps"
|
|
3964
|
+
},
|
|
3965
|
+
{
|
|
3966
|
+
"$ref": "#/definitions/PointProps"
|
|
3967
|
+
}
|
|
3968
|
+
]
|
|
3969
|
+
},
|
|
4246
3970
|
"MarkType": {
|
|
4247
3971
|
"enum": [
|
|
4248
3972
|
"rect",
|
|
@@ -4391,75 +4115,289 @@
|
|
|
4391
4115
|
"const": "string",
|
|
4392
4116
|
"type": "string"
|
|
4393
4117
|
},
|
|
4394
|
-
{
|
|
4395
|
-
"const": "boolean",
|
|
4396
|
-
"type": "string"
|
|
4118
|
+
{
|
|
4119
|
+
"const": "boolean",
|
|
4120
|
+
"type": "string"
|
|
4121
|
+
},
|
|
4122
|
+
{
|
|
4123
|
+
"const": "date",
|
|
4124
|
+
"type": "string"
|
|
4125
|
+
},
|
|
4126
|
+
{
|
|
4127
|
+
"const": "number",
|
|
4128
|
+
"type": "string"
|
|
4129
|
+
}
|
|
4130
|
+
]
|
|
4131
|
+
},
|
|
4132
|
+
"PileupParams": {
|
|
4133
|
+
"additionalProperties": false,
|
|
4134
|
+
"properties": {
|
|
4135
|
+
"as": {
|
|
4136
|
+
"description": "The output field name for the computed lane.\n\n**Default:** `\"lane\"`.",
|
|
4137
|
+
"type": "string"
|
|
4138
|
+
},
|
|
4139
|
+
"end": {
|
|
4140
|
+
"$ref": "#/definitions/Field",
|
|
4141
|
+
"description": "The field representing the end coordinate of the segment (exclusive)."
|
|
4142
|
+
},
|
|
4143
|
+
"preference": {
|
|
4144
|
+
"$ref": "#/definitions/Field",
|
|
4145
|
+
"description": "An optional field indicating the preferred lane. Use together with the `preferredOrder` property."
|
|
4146
|
+
},
|
|
4147
|
+
"preferredOrder": {
|
|
4148
|
+
"anyOf": [
|
|
4149
|
+
{
|
|
4150
|
+
"items": {
|
|
4151
|
+
"type": "string"
|
|
4152
|
+
},
|
|
4153
|
+
"type": "array"
|
|
4154
|
+
},
|
|
4155
|
+
{
|
|
4156
|
+
"items": {
|
|
4157
|
+
"type": "number"
|
|
4158
|
+
},
|
|
4159
|
+
"type": "array"
|
|
4160
|
+
},
|
|
4161
|
+
{
|
|
4162
|
+
"items": {
|
|
4163
|
+
"type": "boolean"
|
|
4164
|
+
},
|
|
4165
|
+
"type": "array"
|
|
4166
|
+
}
|
|
4167
|
+
],
|
|
4168
|
+
"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."
|
|
4169
|
+
},
|
|
4170
|
+
"spacing": {
|
|
4171
|
+
"description": "The spacing between adjacent segments on the same lane in coordinate units.\n\n**Default:** `1`.",
|
|
4172
|
+
"type": "number"
|
|
4173
|
+
},
|
|
4174
|
+
"start": {
|
|
4175
|
+
"$ref": "#/definitions/Field",
|
|
4176
|
+
"description": "The field representing the start coordinate of the segment (inclusive)."
|
|
4177
|
+
},
|
|
4178
|
+
"type": {
|
|
4179
|
+
"const": "pileup",
|
|
4180
|
+
"description": "The type of the transform to be applied",
|
|
4181
|
+
"type": "string"
|
|
4182
|
+
}
|
|
4183
|
+
},
|
|
4184
|
+
"required": [
|
|
4185
|
+
"end",
|
|
4186
|
+
"start",
|
|
4187
|
+
"type"
|
|
4188
|
+
],
|
|
4189
|
+
"type": "object"
|
|
4190
|
+
},
|
|
4191
|
+
"PointProps": {
|
|
4192
|
+
"additionalProperties": false,
|
|
4193
|
+
"properties": {
|
|
4194
|
+
"angle": {
|
|
4195
|
+
"anyOf": [
|
|
4196
|
+
{
|
|
4197
|
+
"type": "number"
|
|
4198
|
+
},
|
|
4199
|
+
{
|
|
4200
|
+
"$ref": "#/definitions/ExprRef"
|
|
4201
|
+
}
|
|
4202
|
+
],
|
|
4203
|
+
"description": "The rotation angle in degrees.\n\n**Default value:** `0`"
|
|
4204
|
+
},
|
|
4205
|
+
"clip": {
|
|
4206
|
+
"anyOf": [
|
|
4207
|
+
{
|
|
4208
|
+
"type": "boolean"
|
|
4209
|
+
},
|
|
4210
|
+
{
|
|
4211
|
+
"const": "never",
|
|
4212
|
+
"type": "string"
|
|
4213
|
+
}
|
|
4214
|
+
],
|
|
4215
|
+
"description": "If true, the mark is clipped to the UnitView's rectangle. By default, clipping is enabled for marks that have zoomable positional scales."
|
|
4216
|
+
},
|
|
4217
|
+
"color": {
|
|
4218
|
+
"anyOf": [
|
|
4219
|
+
{
|
|
4220
|
+
"type": "string"
|
|
4221
|
+
},
|
|
4222
|
+
{
|
|
4223
|
+
"$ref": "#/definitions/ExprRef"
|
|
4224
|
+
}
|
|
4225
|
+
]
|
|
4226
|
+
},
|
|
4227
|
+
"fill": {
|
|
4228
|
+
"anyOf": [
|
|
4229
|
+
{
|
|
4230
|
+
"type": "string"
|
|
4231
|
+
},
|
|
4232
|
+
{
|
|
4233
|
+
"$ref": "#/definitions/ExprRef"
|
|
4234
|
+
}
|
|
4235
|
+
],
|
|
4236
|
+
"description": "The fill color"
|
|
4237
|
+
},
|
|
4238
|
+
"fillGradientStrength": {
|
|
4239
|
+
"anyOf": [
|
|
4240
|
+
{
|
|
4241
|
+
"type": "number"
|
|
4242
|
+
},
|
|
4243
|
+
{
|
|
4244
|
+
"$ref": "#/definitions/ExprRef"
|
|
4245
|
+
}
|
|
4246
|
+
],
|
|
4247
|
+
"description": "Gradient strength controls the amount of the gradient eye-candy effect in the fill color. Valid values are between 0 and 1.\n\n**Default value:** `0`"
|
|
4248
|
+
},
|
|
4249
|
+
"fillOpacity": {
|
|
4250
|
+
"anyOf": [
|
|
4251
|
+
{
|
|
4252
|
+
"type": "number"
|
|
4253
|
+
},
|
|
4254
|
+
{
|
|
4255
|
+
"$ref": "#/definitions/ExprRef"
|
|
4256
|
+
}
|
|
4257
|
+
],
|
|
4258
|
+
"description": "The fill opacity. Value between [0, 1]."
|
|
4259
|
+
},
|
|
4260
|
+
"filled": {
|
|
4261
|
+
"description": "Whether the `color` represents the `fill` color (`true`) or the `stroke` color (`false`).",
|
|
4262
|
+
"type": "boolean"
|
|
4263
|
+
},
|
|
4264
|
+
"geometricZoomBound": {
|
|
4265
|
+
"description": "Enables geometric zooming. The value is the base two logarithmic zoom level where the maximum point size is reached.\n\n**Default value:** `0`",
|
|
4266
|
+
"type": "number"
|
|
4267
|
+
},
|
|
4268
|
+
"inwardStroke": {
|
|
4269
|
+
"anyOf": [
|
|
4270
|
+
{
|
|
4271
|
+
"type": "boolean"
|
|
4272
|
+
},
|
|
4273
|
+
{
|
|
4274
|
+
"$ref": "#/definitions/ExprRef"
|
|
4275
|
+
}
|
|
4276
|
+
],
|
|
4277
|
+
"description": "Should the stroke only grow inwards, e.g, the diameter/outline is not affected by the stroke width. Thus, a point that has a zero size has no visible stroke. This allows strokes to be used with geometric zoom, etc.\n\n**Default value:** `false`"
|
|
4278
|
+
},
|
|
4279
|
+
"minBufferSize": {
|
|
4280
|
+
"description": "Minimum size for WebGL buffers (number of data items). Allows for using `bufferSubData()` to update graphics.\n\nThis property is intended for internal use.",
|
|
4281
|
+
"type": "number"
|
|
4282
|
+
},
|
|
4283
|
+
"minPickingSize": {
|
|
4284
|
+
"anyOf": [
|
|
4285
|
+
{
|
|
4286
|
+
"type": "number"
|
|
4287
|
+
},
|
|
4288
|
+
{
|
|
4289
|
+
"$ref": "#/definitions/ExprRef"
|
|
4290
|
+
}
|
|
4291
|
+
],
|
|
4292
|
+
"description": "The minimum picking size invisibly increases the stroke width or point diameter of marks when pointing them with the mouse cursor, making it easier to select them. The valus is the minimum size in pixels.\n\n**Default value:** `3.0` for `\"link\"` and `2.0` for `\"point\"`"
|
|
4293
|
+
},
|
|
4294
|
+
"opacity": {
|
|
4295
|
+
"anyOf": [
|
|
4296
|
+
{
|
|
4297
|
+
"type": "number"
|
|
4298
|
+
},
|
|
4299
|
+
{
|
|
4300
|
+
"$ref": "#/definitions/ExprRef"
|
|
4301
|
+
}
|
|
4302
|
+
]
|
|
4397
4303
|
},
|
|
4398
|
-
{
|
|
4399
|
-
"
|
|
4400
|
-
|
|
4304
|
+
"semanticZoomFraction": {
|
|
4305
|
+
"anyOf": [
|
|
4306
|
+
{
|
|
4307
|
+
"type": "number"
|
|
4308
|
+
},
|
|
4309
|
+
{
|
|
4310
|
+
"$ref": "#/definitions/ExprRef"
|
|
4311
|
+
}
|
|
4312
|
+
],
|
|
4313
|
+
"description": "TODO\n\n**Default value:** `0.02`"
|
|
4401
4314
|
},
|
|
4402
|
-
{
|
|
4403
|
-
"
|
|
4404
|
-
"type": "string"
|
|
4405
|
-
}
|
|
4406
|
-
]
|
|
4407
|
-
},
|
|
4408
|
-
"PileupParams": {
|
|
4409
|
-
"additionalProperties": false,
|
|
4410
|
-
"properties": {
|
|
4411
|
-
"as": {
|
|
4412
|
-
"description": "The output field name for the computed lane.\n\n**Default:** `\"lane\"`.",
|
|
4315
|
+
"shape": {
|
|
4316
|
+
"description": "One of `\"circle\"`, `\"square\"`, `\"cross\"`, `\"diamond\"`, `\"triangle-up\"`, `\"triangle-down\"`, `\"triangle-right\"`, or `\"triangle-left\"`.\n\n**Default value:** `\"circle\"`",
|
|
4413
4317
|
"type": "string"
|
|
4414
4318
|
},
|
|
4415
|
-
"
|
|
4416
|
-
"
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4319
|
+
"size": {
|
|
4320
|
+
"anyOf": [
|
|
4321
|
+
{
|
|
4322
|
+
"type": "number"
|
|
4323
|
+
},
|
|
4324
|
+
{
|
|
4325
|
+
"$ref": "#/definitions/ExprRef"
|
|
4326
|
+
}
|
|
4327
|
+
],
|
|
4328
|
+
"description": "Stroke width of `\"link\"` and `\"rule\"` marks in pixels, the area of the bounding square of `\"point\"` mark, or the font size of `\"text\"` mark."
|
|
4422
4329
|
},
|
|
4423
|
-
"
|
|
4330
|
+
"stroke": {
|
|
4424
4331
|
"anyOf": [
|
|
4425
4332
|
{
|
|
4426
|
-
"
|
|
4427
|
-
"type": "string"
|
|
4428
|
-
},
|
|
4429
|
-
"type": "array"
|
|
4333
|
+
"type": "string"
|
|
4430
4334
|
},
|
|
4431
4335
|
{
|
|
4432
|
-
"
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4336
|
+
"$ref": "#/definitions/ExprRef"
|
|
4337
|
+
}
|
|
4338
|
+
],
|
|
4339
|
+
"description": "The stroke color"
|
|
4340
|
+
},
|
|
4341
|
+
"strokeOpacity": {
|
|
4342
|
+
"anyOf": [
|
|
4343
|
+
{
|
|
4344
|
+
"type": "number"
|
|
4436
4345
|
},
|
|
4437
4346
|
{
|
|
4438
|
-
"
|
|
4439
|
-
"type": "boolean"
|
|
4440
|
-
},
|
|
4441
|
-
"type": "array"
|
|
4347
|
+
"$ref": "#/definitions/ExprRef"
|
|
4442
4348
|
}
|
|
4443
4349
|
],
|
|
4444
|
-
"description": "The
|
|
4350
|
+
"description": "The stroke opacity. Value between [0, 1]."
|
|
4445
4351
|
},
|
|
4446
|
-
"
|
|
4447
|
-
"
|
|
4448
|
-
|
|
4352
|
+
"strokeWidth": {
|
|
4353
|
+
"anyOf": [
|
|
4354
|
+
{
|
|
4355
|
+
"type": "number"
|
|
4356
|
+
},
|
|
4357
|
+
{
|
|
4358
|
+
"$ref": "#/definitions/ExprRef"
|
|
4359
|
+
}
|
|
4360
|
+
],
|
|
4361
|
+
"description": "The stroke width in pixels."
|
|
4449
4362
|
},
|
|
4450
|
-
"
|
|
4451
|
-
"$ref": "#/definitions/
|
|
4452
|
-
"description": "
|
|
4363
|
+
"tooltip": {
|
|
4364
|
+
"$ref": "#/definitions/Tooltip",
|
|
4365
|
+
"description": "Tooltip handler. If `null`, no tooltip is shown."
|
|
4453
4366
|
},
|
|
4454
4367
|
"type": {
|
|
4455
|
-
"const": "
|
|
4456
|
-
"description": "The type of the transform to be applied",
|
|
4368
|
+
"const": "point",
|
|
4457
4369
|
"type": "string"
|
|
4370
|
+
},
|
|
4371
|
+
"x": {
|
|
4372
|
+
"anyOf": [
|
|
4373
|
+
{
|
|
4374
|
+
"type": "number"
|
|
4375
|
+
},
|
|
4376
|
+
{
|
|
4377
|
+
"$ref": "#/definitions/ExprRef"
|
|
4378
|
+
}
|
|
4379
|
+
]
|
|
4380
|
+
},
|
|
4381
|
+
"xOffset": {
|
|
4382
|
+
"description": "Offsets of the `x` and `x2` coordinates in pixels. The offset is applied after the viewport scaling and translation.\n\n**Default value:** `0`",
|
|
4383
|
+
"type": "number"
|
|
4384
|
+
},
|
|
4385
|
+
"y": {
|
|
4386
|
+
"anyOf": [
|
|
4387
|
+
{
|
|
4388
|
+
"type": "number"
|
|
4389
|
+
},
|
|
4390
|
+
{
|
|
4391
|
+
"$ref": "#/definitions/ExprRef"
|
|
4392
|
+
}
|
|
4393
|
+
]
|
|
4394
|
+
},
|
|
4395
|
+
"yOffset": {
|
|
4396
|
+
"description": "Offsets of the `y` and `y2` coordinates in pixels. The offset is applied after the viewport scaling and translation.\n\n**Default value:** `0`",
|
|
4397
|
+
"type": "number"
|
|
4458
4398
|
}
|
|
4459
4399
|
},
|
|
4460
4400
|
"required": [
|
|
4461
|
-
"end",
|
|
4462
|
-
"start",
|
|
4463
4401
|
"type"
|
|
4464
4402
|
],
|
|
4465
4403
|
"type": "object"
|
|
@@ -4537,6 +4475,10 @@
|
|
|
4537
4475
|
"minimum": 0,
|
|
4538
4476
|
"type": "number"
|
|
4539
4477
|
},
|
|
4478
|
+
"contributesToScaleDomain": {
|
|
4479
|
+
"description": "Whether the field or evaluated expr should be included in the scale's domain.\n\n**Default value:** `true`",
|
|
4480
|
+
"type": "boolean"
|
|
4481
|
+
},
|
|
4540
4482
|
"datum": {
|
|
4541
4483
|
"anyOf": [
|
|
4542
4484
|
{
|
|
@@ -4548,6 +4490,21 @@
|
|
|
4548
4490
|
],
|
|
4549
4491
|
"description": "A constant value in data domain."
|
|
4550
4492
|
},
|
|
4493
|
+
"resolutionChannel": {
|
|
4494
|
+
"$ref": "#/definitions/ChannelWithScale",
|
|
4495
|
+
"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."
|
|
4496
|
+
},
|
|
4497
|
+
"scale": {
|
|
4498
|
+
"anyOf": [
|
|
4499
|
+
{
|
|
4500
|
+
"$ref": "#/definitions/Scale"
|
|
4501
|
+
},
|
|
4502
|
+
{
|
|
4503
|
+
"type": "null"
|
|
4504
|
+
}
|
|
4505
|
+
],
|
|
4506
|
+
"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."
|
|
4507
|
+
},
|
|
4551
4508
|
"title": {
|
|
4552
4509
|
"description": "A title for the field. If `null`, the title will be removed.",
|
|
4553
4510
|
"type": [
|
|
@@ -4615,6 +4572,10 @@
|
|
|
4615
4572
|
"minimum": 0,
|
|
4616
4573
|
"type": "number"
|
|
4617
4574
|
},
|
|
4575
|
+
"contributesToScaleDomain": {
|
|
4576
|
+
"description": "Whether the field or evaluated expr should be included in the scale's domain.\n\n**Default value:** `true`",
|
|
4577
|
+
"type": "boolean"
|
|
4578
|
+
},
|
|
4618
4579
|
"datum": {
|
|
4619
4580
|
"anyOf": [
|
|
4620
4581
|
{
|
|
@@ -4657,166 +4618,418 @@
|
|
|
4657
4618
|
],
|
|
4658
4619
|
"type": "object"
|
|
4659
4620
|
},
|
|
4660
|
-
"PositionDef": {
|
|
4621
|
+
"PositionDef": {
|
|
4622
|
+
"anyOf": [
|
|
4623
|
+
{
|
|
4624
|
+
"$ref": "#/definitions/PositionFieldDef"
|
|
4625
|
+
},
|
|
4626
|
+
{
|
|
4627
|
+
"$ref": "#/definitions/ChromPosDef"
|
|
4628
|
+
},
|
|
4629
|
+
{
|
|
4630
|
+
"$ref": "#/definitions/PositionDatumDef"
|
|
4631
|
+
},
|
|
4632
|
+
{
|
|
4633
|
+
"$ref": "#/definitions/PositionExprDef"
|
|
4634
|
+
},
|
|
4635
|
+
{
|
|
4636
|
+
"$ref": "#/definitions/PositionValueDef"
|
|
4637
|
+
}
|
|
4638
|
+
]
|
|
4639
|
+
},
|
|
4640
|
+
"PositionExprDef": {
|
|
4641
|
+
"additionalProperties": false,
|
|
4642
|
+
"properties": {
|
|
4643
|
+
"axis": {
|
|
4644
|
+
"anyOf": [
|
|
4645
|
+
{
|
|
4646
|
+
"$ref": "#/definitions/GenomeAxis"
|
|
4647
|
+
},
|
|
4648
|
+
{
|
|
4649
|
+
"type": "null"
|
|
4650
|
+
}
|
|
4651
|
+
],
|
|
4652
|
+
"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."
|
|
4653
|
+
},
|
|
4654
|
+
"band": {
|
|
4655
|
+
"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`.",
|
|
4656
|
+
"maximum": 1,
|
|
4657
|
+
"minimum": 0,
|
|
4658
|
+
"type": "number"
|
|
4659
|
+
},
|
|
4660
|
+
"expr": {
|
|
4661
|
+
"description": "An expression. Properties of the data can be accessed through the `datum` object.",
|
|
4662
|
+
"type": "string"
|
|
4663
|
+
},
|
|
4664
|
+
"title": {
|
|
4665
|
+
"description": "A title for the field. If `null`, the title will be removed.",
|
|
4666
|
+
"type": [
|
|
4667
|
+
"string",
|
|
4668
|
+
"null"
|
|
4669
|
+
]
|
|
4670
|
+
},
|
|
4671
|
+
"type": {
|
|
4672
|
+
"$ref": "#/definitions/Type"
|
|
4673
|
+
}
|
|
4674
|
+
},
|
|
4675
|
+
"required": [
|
|
4676
|
+
"expr",
|
|
4677
|
+
"type"
|
|
4678
|
+
],
|
|
4679
|
+
"type": "object"
|
|
4680
|
+
},
|
|
4681
|
+
"PositionFieldDef": {
|
|
4682
|
+
"additionalProperties": false,
|
|
4683
|
+
"properties": {
|
|
4684
|
+
"axis": {
|
|
4685
|
+
"anyOf": [
|
|
4686
|
+
{
|
|
4687
|
+
"$ref": "#/definitions/GenomeAxis"
|
|
4688
|
+
},
|
|
4689
|
+
{
|
|
4690
|
+
"type": "null"
|
|
4691
|
+
}
|
|
4692
|
+
],
|
|
4693
|
+
"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."
|
|
4694
|
+
},
|
|
4695
|
+
"band": {
|
|
4696
|
+
"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`.",
|
|
4697
|
+
"maximum": 1,
|
|
4698
|
+
"minimum": 0,
|
|
4699
|
+
"type": "number"
|
|
4700
|
+
},
|
|
4701
|
+
"contributesToScaleDomain": {
|
|
4702
|
+
"description": "Whether the field or evaluated expr should be included in the scale's domain.\n\n**Default value:** `true`",
|
|
4703
|
+
"type": "boolean"
|
|
4704
|
+
},
|
|
4705
|
+
"field": {
|
|
4706
|
+
"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`.",
|
|
4707
|
+
"type": "string"
|
|
4708
|
+
},
|
|
4709
|
+
"resolutionChannel": {
|
|
4710
|
+
"$ref": "#/definitions/ChannelWithScale",
|
|
4711
|
+
"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."
|
|
4712
|
+
},
|
|
4713
|
+
"scale": {
|
|
4714
|
+
"anyOf": [
|
|
4715
|
+
{
|
|
4716
|
+
"$ref": "#/definitions/Scale"
|
|
4717
|
+
},
|
|
4718
|
+
{
|
|
4719
|
+
"type": "null"
|
|
4720
|
+
}
|
|
4721
|
+
],
|
|
4722
|
+
"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."
|
|
4723
|
+
},
|
|
4724
|
+
"title": {
|
|
4725
|
+
"description": "A title for the field. If `null`, the title will be removed.",
|
|
4726
|
+
"type": [
|
|
4727
|
+
"string",
|
|
4728
|
+
"null"
|
|
4729
|
+
]
|
|
4730
|
+
},
|
|
4731
|
+
"type": {
|
|
4732
|
+
"$ref": "#/definitions/Type"
|
|
4733
|
+
}
|
|
4734
|
+
},
|
|
4735
|
+
"required": [
|
|
4736
|
+
"type"
|
|
4737
|
+
],
|
|
4738
|
+
"type": "object"
|
|
4739
|
+
},
|
|
4740
|
+
"PositionValueDef": {
|
|
4741
|
+
"$ref": "#/definitions/NumericValueDef"
|
|
4742
|
+
},
|
|
4743
|
+
"PositionalChannel": {
|
|
4661
4744
|
"anyOf": [
|
|
4662
4745
|
{
|
|
4663
|
-
"$ref": "#/definitions/
|
|
4664
|
-
},
|
|
4665
|
-
{
|
|
4666
|
-
"$ref": "#/definitions/ChromPosDef"
|
|
4746
|
+
"$ref": "#/definitions/PrimaryPositionalChannel"
|
|
4667
4747
|
},
|
|
4668
4748
|
{
|
|
4669
|
-
"$ref": "#/definitions/
|
|
4749
|
+
"$ref": "#/definitions/SecondaryPositionalChannel"
|
|
4750
|
+
}
|
|
4751
|
+
]
|
|
4752
|
+
},
|
|
4753
|
+
"PrimaryPositionalChannel": {
|
|
4754
|
+
"enum": [
|
|
4755
|
+
"x",
|
|
4756
|
+
"y"
|
|
4757
|
+
],
|
|
4758
|
+
"type": "string"
|
|
4759
|
+
},
|
|
4760
|
+
"ProjectParams": {
|
|
4761
|
+
"additionalProperties": false,
|
|
4762
|
+
"properties": {
|
|
4763
|
+
"as": {
|
|
4764
|
+
"description": "New names for the projected fields. If omitted, the names of the source fields are used.",
|
|
4765
|
+
"items": {
|
|
4766
|
+
"type": "string"
|
|
4767
|
+
},
|
|
4768
|
+
"type": "array"
|
|
4670
4769
|
},
|
|
4671
|
-
{
|
|
4672
|
-
"
|
|
4770
|
+
"fields": {
|
|
4771
|
+
"description": "The fields to be projected.",
|
|
4772
|
+
"items": {
|
|
4773
|
+
"$ref": "#/definitions/Field"
|
|
4774
|
+
},
|
|
4775
|
+
"type": "array"
|
|
4673
4776
|
},
|
|
4674
|
-
{
|
|
4675
|
-
"
|
|
4777
|
+
"type": {
|
|
4778
|
+
"const": "project",
|
|
4779
|
+
"description": "The type of the transform to be applied",
|
|
4780
|
+
"type": "string"
|
|
4676
4781
|
}
|
|
4677
|
-
|
|
4782
|
+
},
|
|
4783
|
+
"required": [
|
|
4784
|
+
"fields",
|
|
4785
|
+
"type"
|
|
4786
|
+
],
|
|
4787
|
+
"type": "object"
|
|
4678
4788
|
},
|
|
4679
|
-
"
|
|
4789
|
+
"RectProps": {
|
|
4680
4790
|
"additionalProperties": false,
|
|
4681
4791
|
"properties": {
|
|
4682
|
-
"
|
|
4792
|
+
"clip": {
|
|
4683
4793
|
"anyOf": [
|
|
4684
4794
|
{
|
|
4685
|
-
"
|
|
4795
|
+
"type": "boolean"
|
|
4686
4796
|
},
|
|
4687
4797
|
{
|
|
4688
|
-
"
|
|
4798
|
+
"const": "never",
|
|
4799
|
+
"type": "string"
|
|
4689
4800
|
}
|
|
4690
4801
|
],
|
|
4691
|
-
"description": "
|
|
4802
|
+
"description": "If true, the mark is clipped to the UnitView's rectangle. By default, clipping is enabled for marks that have zoomable positional scales."
|
|
4692
4803
|
},
|
|
4693
|
-
"
|
|
4694
|
-
"
|
|
4695
|
-
|
|
4696
|
-
|
|
4804
|
+
"color": {
|
|
4805
|
+
"anyOf": [
|
|
4806
|
+
{
|
|
4807
|
+
"type": "string"
|
|
4808
|
+
},
|
|
4809
|
+
{
|
|
4810
|
+
"$ref": "#/definitions/ExprRef"
|
|
4811
|
+
}
|
|
4812
|
+
]
|
|
4813
|
+
},
|
|
4814
|
+
"cornerRadius": {
|
|
4815
|
+
"anyOf": [
|
|
4816
|
+
{
|
|
4817
|
+
"type": "number"
|
|
4818
|
+
},
|
|
4819
|
+
{
|
|
4820
|
+
"$ref": "#/definitions/ExprRef"
|
|
4821
|
+
}
|
|
4822
|
+
],
|
|
4823
|
+
"description": "Radius of the rounded corners.\n\n**Default value:** `0`"
|
|
4824
|
+
},
|
|
4825
|
+
"cornerRadiusBottomLeft": {
|
|
4826
|
+
"anyOf": [
|
|
4827
|
+
{
|
|
4828
|
+
"type": "number"
|
|
4829
|
+
},
|
|
4830
|
+
{
|
|
4831
|
+
"$ref": "#/definitions/ExprRef"
|
|
4832
|
+
}
|
|
4833
|
+
],
|
|
4834
|
+
"description": "Radius of the bottom left rounded corner. Has higher precedence than `cornerRadius`.\n\n**Default value:** (None)"
|
|
4835
|
+
},
|
|
4836
|
+
"cornerRadiusBottomRight": {
|
|
4837
|
+
"anyOf": [
|
|
4838
|
+
{
|
|
4839
|
+
"type": "number"
|
|
4840
|
+
},
|
|
4841
|
+
{
|
|
4842
|
+
"$ref": "#/definitions/ExprRef"
|
|
4843
|
+
}
|
|
4844
|
+
],
|
|
4845
|
+
"description": "Radius of the bottom right rounded corner. Has higher precedence than `cornerRadius`.\n\n**Default value:** (None)"
|
|
4846
|
+
},
|
|
4847
|
+
"cornerRadiusTopLeft": {
|
|
4848
|
+
"anyOf": [
|
|
4849
|
+
{
|
|
4850
|
+
"type": "number"
|
|
4851
|
+
},
|
|
4852
|
+
{
|
|
4853
|
+
"$ref": "#/definitions/ExprRef"
|
|
4854
|
+
}
|
|
4855
|
+
],
|
|
4856
|
+
"description": "Radius of the top left rounded corner. Has higher precedence than `cornerRadius`.\n\n**Default value:** (None)"
|
|
4857
|
+
},
|
|
4858
|
+
"cornerRadiusTopRight": {
|
|
4859
|
+
"anyOf": [
|
|
4860
|
+
{
|
|
4861
|
+
"type": "number"
|
|
4862
|
+
},
|
|
4863
|
+
{
|
|
4864
|
+
"$ref": "#/definitions/ExprRef"
|
|
4865
|
+
}
|
|
4866
|
+
],
|
|
4867
|
+
"description": "Radius of the top right rounded corner. Has higher precedence than `cornerRadius`.\n\n**Default value:** (None)"
|
|
4868
|
+
},
|
|
4869
|
+
"fill": {
|
|
4870
|
+
"anyOf": [
|
|
4871
|
+
{
|
|
4872
|
+
"type": "string"
|
|
4873
|
+
},
|
|
4874
|
+
{
|
|
4875
|
+
"$ref": "#/definitions/ExprRef"
|
|
4876
|
+
}
|
|
4877
|
+
],
|
|
4878
|
+
"description": "The fill color"
|
|
4879
|
+
},
|
|
4880
|
+
"fillOpacity": {
|
|
4881
|
+
"anyOf": [
|
|
4882
|
+
{
|
|
4883
|
+
"type": "number"
|
|
4884
|
+
},
|
|
4885
|
+
{
|
|
4886
|
+
"$ref": "#/definitions/ExprRef"
|
|
4887
|
+
}
|
|
4888
|
+
],
|
|
4889
|
+
"description": "The fill opacity. Value between [0, 1]."
|
|
4890
|
+
},
|
|
4891
|
+
"filled": {
|
|
4892
|
+
"description": "Whether the `color` represents the `fill` color (`true`) or the `stroke` color (`false`).",
|
|
4893
|
+
"type": "boolean"
|
|
4894
|
+
},
|
|
4895
|
+
"minBufferSize": {
|
|
4896
|
+
"description": "Minimum size for WebGL buffers (number of data items). Allows for using `bufferSubData()` to update graphics.\n\nThis property is intended for internal use.",
|
|
4697
4897
|
"type": "number"
|
|
4698
4898
|
},
|
|
4699
|
-
"
|
|
4700
|
-
"
|
|
4701
|
-
|
|
4899
|
+
"minHeight": {
|
|
4900
|
+
"anyOf": [
|
|
4901
|
+
{
|
|
4902
|
+
"type": "number"
|
|
4903
|
+
},
|
|
4904
|
+
{
|
|
4905
|
+
"$ref": "#/definitions/ExprRef"
|
|
4906
|
+
}
|
|
4907
|
+
],
|
|
4908
|
+
"description": "The minimum height of a rectangle in pixels. The property clamps rectangles' heights.\n\n**Default value:** `0`"
|
|
4702
4909
|
},
|
|
4703
|
-
"
|
|
4704
|
-
"
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4910
|
+
"minOpacity": {
|
|
4911
|
+
"anyOf": [
|
|
4912
|
+
{
|
|
4913
|
+
"type": "number"
|
|
4914
|
+
},
|
|
4915
|
+
{
|
|
4916
|
+
"$ref": "#/definitions/ExprRef"
|
|
4917
|
+
}
|
|
4918
|
+
],
|
|
4919
|
+
"description": "Clamps the minimum size-dependent opacity. The property does not affect the `opacity` channel. Valid values are between `0` and `1`.\n\nWhen a rectangle would be smaller than what is specified in `minHeight` and `minWidth`, it is faded out proportionally. Example: a rectangle would be rendered as one pixel wide, but `minWidth` clamps it to five pixels. The rectangle is actually rendered as five pixels wide, but its opacity is multiplied by 0.2. With this setting, you can limit the factor to, for example, 0.5 to keep the rectangles more clearly visible.\n\n**Default value:** `0`"
|
|
4920
|
+
},
|
|
4921
|
+
"minWidth": {
|
|
4922
|
+
"anyOf": [
|
|
4923
|
+
{
|
|
4924
|
+
"type": "number"
|
|
4925
|
+
},
|
|
4926
|
+
{
|
|
4927
|
+
"$ref": "#/definitions/ExprRef"
|
|
4928
|
+
}
|
|
4929
|
+
],
|
|
4930
|
+
"description": "The minimum width of a rectangle in pixels. The property clamps rectangles' widths when the viewport is zoomed out.\n\nThis property also reduces flickering of very narrow rectangles when zooming. The value should generally be at least one.\n\n**Default value:** `1`"
|
|
4931
|
+
},
|
|
4932
|
+
"opacity": {
|
|
4933
|
+
"anyOf": [
|
|
4934
|
+
{
|
|
4935
|
+
"type": "number"
|
|
4936
|
+
},
|
|
4937
|
+
{
|
|
4938
|
+
"$ref": "#/definitions/ExprRef"
|
|
4939
|
+
}
|
|
4708
4940
|
]
|
|
4709
4941
|
},
|
|
4710
|
-
"
|
|
4711
|
-
"$ref": "#/definitions/Type"
|
|
4712
|
-
}
|
|
4713
|
-
},
|
|
4714
|
-
"required": [
|
|
4715
|
-
"expr",
|
|
4716
|
-
"type"
|
|
4717
|
-
],
|
|
4718
|
-
"type": "object"
|
|
4719
|
-
},
|
|
4720
|
-
"PositionFieldDef": {
|
|
4721
|
-
"additionalProperties": false,
|
|
4722
|
-
"properties": {
|
|
4723
|
-
"axis": {
|
|
4942
|
+
"stroke": {
|
|
4724
4943
|
"anyOf": [
|
|
4725
4944
|
{
|
|
4726
|
-
"
|
|
4945
|
+
"type": "string"
|
|
4727
4946
|
},
|
|
4728
4947
|
{
|
|
4729
|
-
"
|
|
4948
|
+
"$ref": "#/definitions/ExprRef"
|
|
4949
|
+
}
|
|
4950
|
+
],
|
|
4951
|
+
"description": "The stroke color"
|
|
4952
|
+
},
|
|
4953
|
+
"strokeOpacity": {
|
|
4954
|
+
"anyOf": [
|
|
4955
|
+
{
|
|
4956
|
+
"type": "number"
|
|
4957
|
+
},
|
|
4958
|
+
{
|
|
4959
|
+
"$ref": "#/definitions/ExprRef"
|
|
4960
|
+
}
|
|
4961
|
+
],
|
|
4962
|
+
"description": "The stroke opacity. Value between [0, 1]."
|
|
4963
|
+
},
|
|
4964
|
+
"strokeWidth": {
|
|
4965
|
+
"anyOf": [
|
|
4966
|
+
{
|
|
4967
|
+
"type": "number"
|
|
4968
|
+
},
|
|
4969
|
+
{
|
|
4970
|
+
"$ref": "#/definitions/ExprRef"
|
|
4730
4971
|
}
|
|
4731
4972
|
],
|
|
4732
|
-
"description": "
|
|
4973
|
+
"description": "The stroke width in pixels."
|
|
4733
4974
|
},
|
|
4734
|
-
"
|
|
4735
|
-
"
|
|
4736
|
-
"
|
|
4737
|
-
"minimum": 0,
|
|
4738
|
-
"type": "number"
|
|
4975
|
+
"tooltip": {
|
|
4976
|
+
"$ref": "#/definitions/Tooltip",
|
|
4977
|
+
"description": "Tooltip handler. If `null`, no tooltip is shown."
|
|
4739
4978
|
},
|
|
4740
|
-
"
|
|
4741
|
-
"
|
|
4979
|
+
"type": {
|
|
4980
|
+
"const": "rect",
|
|
4742
4981
|
"type": "string"
|
|
4743
4982
|
},
|
|
4744
|
-
"
|
|
4745
|
-
"$ref": "#/definitions/ChannelWithScale",
|
|
4746
|
-
"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."
|
|
4747
|
-
},
|
|
4748
|
-
"scale": {
|
|
4983
|
+
"x": {
|
|
4749
4984
|
"anyOf": [
|
|
4750
4985
|
{
|
|
4751
|
-
"
|
|
4986
|
+
"type": "number"
|
|
4752
4987
|
},
|
|
4753
4988
|
{
|
|
4754
|
-
"
|
|
4989
|
+
"$ref": "#/definitions/ExprRef"
|
|
4755
4990
|
}
|
|
4756
|
-
]
|
|
4757
|
-
"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."
|
|
4991
|
+
]
|
|
4758
4992
|
},
|
|
4759
|
-
"
|
|
4760
|
-
"
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4993
|
+
"x2": {
|
|
4994
|
+
"anyOf": [
|
|
4995
|
+
{
|
|
4996
|
+
"type": "number"
|
|
4997
|
+
},
|
|
4998
|
+
{
|
|
4999
|
+
"$ref": "#/definitions/ExprRef"
|
|
5000
|
+
}
|
|
4764
5001
|
]
|
|
4765
5002
|
},
|
|
4766
|
-
"
|
|
4767
|
-
"
|
|
4768
|
-
|
|
4769
|
-
},
|
|
4770
|
-
"required": [
|
|
4771
|
-
"type"
|
|
4772
|
-
],
|
|
4773
|
-
"type": "object"
|
|
4774
|
-
},
|
|
4775
|
-
"PositionValueDef": {
|
|
4776
|
-
"$ref": "#/definitions/NumericValueDef"
|
|
4777
|
-
},
|
|
4778
|
-
"PositionalChannel": {
|
|
4779
|
-
"anyOf": [
|
|
4780
|
-
{
|
|
4781
|
-
"$ref": "#/definitions/PrimaryPositionalChannel"
|
|
5003
|
+
"xOffset": {
|
|
5004
|
+
"description": "Offsets of the `x` and `x2` coordinates in pixels. The offset is applied after the viewport scaling and translation.\n\n**Default value:** `0`",
|
|
5005
|
+
"type": "number"
|
|
4782
5006
|
},
|
|
4783
|
-
{
|
|
4784
|
-
"
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
],
|
|
4793
|
-
"type": "string"
|
|
4794
|
-
},
|
|
4795
|
-
"ProjectParams": {
|
|
4796
|
-
"additionalProperties": false,
|
|
4797
|
-
"properties": {
|
|
4798
|
-
"as": {
|
|
4799
|
-
"description": "New names for the projected fields. If omitted, the names of the source fields are used.",
|
|
4800
|
-
"items": {
|
|
4801
|
-
"type": "string"
|
|
4802
|
-
},
|
|
4803
|
-
"type": "array"
|
|
5007
|
+
"y": {
|
|
5008
|
+
"anyOf": [
|
|
5009
|
+
{
|
|
5010
|
+
"type": "number"
|
|
5011
|
+
},
|
|
5012
|
+
{
|
|
5013
|
+
"$ref": "#/definitions/ExprRef"
|
|
5014
|
+
}
|
|
5015
|
+
]
|
|
4804
5016
|
},
|
|
4805
|
-
"
|
|
4806
|
-
"
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
5017
|
+
"y2": {
|
|
5018
|
+
"anyOf": [
|
|
5019
|
+
{
|
|
5020
|
+
"type": "number"
|
|
5021
|
+
},
|
|
5022
|
+
{
|
|
5023
|
+
"$ref": "#/definitions/ExprRef"
|
|
5024
|
+
}
|
|
5025
|
+
]
|
|
4811
5026
|
},
|
|
4812
|
-
"
|
|
4813
|
-
"
|
|
4814
|
-
"
|
|
4815
|
-
"type": "string"
|
|
5027
|
+
"yOffset": {
|
|
5028
|
+
"description": "Offsets of the `y` and `y2` coordinates in pixels. The offset is applied after the viewport scaling and translation.\n\n**Default value:** `0`",
|
|
5029
|
+
"type": "number"
|
|
4816
5030
|
}
|
|
4817
5031
|
},
|
|
4818
5032
|
"required": [
|
|
4819
|
-
"fields",
|
|
4820
5033
|
"type"
|
|
4821
5034
|
],
|
|
4822
5035
|
"type": "object"
|
|
@@ -5014,7 +5227,7 @@
|
|
|
5014
5227
|
"$ref": "#/definitions/MarkType"
|
|
5015
5228
|
},
|
|
5016
5229
|
{
|
|
5017
|
-
"$ref": "#/definitions/
|
|
5230
|
+
"$ref": "#/definitions/MarkProps"
|
|
5018
5231
|
}
|
|
5019
5232
|
]
|
|
5020
5233
|
},
|
|
@@ -6203,36 +6416,190 @@
|
|
|
6203
6416
|
],
|
|
6204
6417
|
"description": "Optional viewport width of the view. If the view size exceeds the viewport width, it will be shown with scrollbars. This property implicitly enables clipping.\n\n**Default:** `null` (same as `width`)"
|
|
6205
6418
|
},
|
|
6206
|
-
"visible": {
|
|
6207
|
-
"description": "Visibility of the view. An invisible view is removed from the layout and not rendered.\n\n**Default:** `true`",
|
|
6208
|
-
"type": "boolean"
|
|
6419
|
+
"visible": {
|
|
6420
|
+
"description": "Visibility of the view. An invisible view is removed from the layout and not rendered.\n\n**Default:** `true`",
|
|
6421
|
+
"type": "boolean"
|
|
6422
|
+
},
|
|
6423
|
+
"width": {
|
|
6424
|
+
"anyOf": [
|
|
6425
|
+
{
|
|
6426
|
+
"$ref": "#/definitions/SizeDef"
|
|
6427
|
+
},
|
|
6428
|
+
{
|
|
6429
|
+
"type": "number"
|
|
6430
|
+
},
|
|
6431
|
+
{
|
|
6432
|
+
"$ref": "#/definitions/Step"
|
|
6433
|
+
},
|
|
6434
|
+
{
|
|
6435
|
+
"const": "container",
|
|
6436
|
+
"type": "string"
|
|
6437
|
+
}
|
|
6438
|
+
],
|
|
6439
|
+
"description": "Width of the view. If a number, it is interpreted as pixels.\n\n**Default:** `\"container\"`"
|
|
6440
|
+
}
|
|
6441
|
+
},
|
|
6442
|
+
"required": [
|
|
6443
|
+
"samples",
|
|
6444
|
+
"spec"
|
|
6445
|
+
],
|
|
6446
|
+
"type": "object"
|
|
6447
|
+
}
|
|
6448
|
+
]
|
|
6449
|
+
},
|
|
6450
|
+
"RuleProps": {
|
|
6451
|
+
"additionalProperties": false,
|
|
6452
|
+
"properties": {
|
|
6453
|
+
"clip": {
|
|
6454
|
+
"anyOf": [
|
|
6455
|
+
{
|
|
6456
|
+
"type": "boolean"
|
|
6457
|
+
},
|
|
6458
|
+
{
|
|
6459
|
+
"const": "never",
|
|
6460
|
+
"type": "string"
|
|
6461
|
+
}
|
|
6462
|
+
],
|
|
6463
|
+
"description": "If true, the mark is clipped to the UnitView's rectangle. By default, clipping is enabled for marks that have zoomable positional scales."
|
|
6464
|
+
},
|
|
6465
|
+
"color": {
|
|
6466
|
+
"anyOf": [
|
|
6467
|
+
{
|
|
6468
|
+
"type": "string"
|
|
6469
|
+
},
|
|
6470
|
+
{
|
|
6471
|
+
"$ref": "#/definitions/ExprRef"
|
|
6472
|
+
}
|
|
6473
|
+
]
|
|
6474
|
+
},
|
|
6475
|
+
"minBufferSize": {
|
|
6476
|
+
"description": "Minimum size for WebGL buffers (number of data items). Allows for using `bufferSubData()` to update graphics.\n\nThis property is intended for internal use.",
|
|
6477
|
+
"type": "number"
|
|
6478
|
+
},
|
|
6479
|
+
"minLength": {
|
|
6480
|
+
"anyOf": [
|
|
6481
|
+
{
|
|
6482
|
+
"type": "number"
|
|
6483
|
+
},
|
|
6484
|
+
{
|
|
6485
|
+
"$ref": "#/definitions/ExprRef"
|
|
6486
|
+
}
|
|
6487
|
+
],
|
|
6488
|
+
"description": "The minimum length of the rule in pixels. Use this property to ensure that very short ranged rules remain visible even when the user zooms out.\n\n**Default value:** `0`"
|
|
6489
|
+
},
|
|
6490
|
+
"opacity": {
|
|
6491
|
+
"anyOf": [
|
|
6492
|
+
{
|
|
6493
|
+
"type": "number"
|
|
6494
|
+
},
|
|
6495
|
+
{
|
|
6496
|
+
"$ref": "#/definitions/ExprRef"
|
|
6497
|
+
}
|
|
6498
|
+
]
|
|
6499
|
+
},
|
|
6500
|
+
"size": {
|
|
6501
|
+
"anyOf": [
|
|
6502
|
+
{
|
|
6503
|
+
"type": "number"
|
|
6504
|
+
},
|
|
6505
|
+
{
|
|
6506
|
+
"$ref": "#/definitions/ExprRef"
|
|
6507
|
+
}
|
|
6508
|
+
],
|
|
6509
|
+
"description": "Stroke width of `\"link\"` and `\"rule\"` marks in pixels, the area of the bounding square of `\"point\"` mark, or the font size of `\"text\"` mark."
|
|
6510
|
+
},
|
|
6511
|
+
"strokeCap": {
|
|
6512
|
+
"anyOf": [
|
|
6513
|
+
{
|
|
6514
|
+
"const": "butt",
|
|
6515
|
+
"type": "string"
|
|
6516
|
+
},
|
|
6517
|
+
{
|
|
6518
|
+
"const": "square",
|
|
6519
|
+
"type": "string"
|
|
6520
|
+
},
|
|
6521
|
+
{
|
|
6522
|
+
"const": "round",
|
|
6523
|
+
"type": "string"
|
|
6524
|
+
},
|
|
6525
|
+
{
|
|
6526
|
+
"$ref": "#/definitions/ExprRef"
|
|
6527
|
+
}
|
|
6528
|
+
],
|
|
6529
|
+
"description": "The style of stroke ends. Available choices: `\"butt\"`, `\"round`\", and `\"square\"`.\n\n**Default value:** `\"butt\"`"
|
|
6530
|
+
},
|
|
6531
|
+
"strokeDash": {
|
|
6532
|
+
"description": "An array of of alternating stroke and gap lengths or `null` for solid strokes.\n\n**Default value:** `null`",
|
|
6533
|
+
"items": {
|
|
6534
|
+
"type": "number"
|
|
6535
|
+
},
|
|
6536
|
+
"type": "array"
|
|
6537
|
+
},
|
|
6538
|
+
"strokeDashOffset": {
|
|
6539
|
+
"description": "An offset for the stroke dash pattern.\n\n**Default value:** `0`",
|
|
6540
|
+
"type": "number"
|
|
6541
|
+
},
|
|
6542
|
+
"tooltip": {
|
|
6543
|
+
"$ref": "#/definitions/Tooltip",
|
|
6544
|
+
"description": "Tooltip handler. If `null`, no tooltip is shown."
|
|
6545
|
+
},
|
|
6546
|
+
"type": {
|
|
6547
|
+
"const": "rule",
|
|
6548
|
+
"type": "string"
|
|
6549
|
+
},
|
|
6550
|
+
"x": {
|
|
6551
|
+
"anyOf": [
|
|
6552
|
+
{
|
|
6553
|
+
"type": "number"
|
|
6554
|
+
},
|
|
6555
|
+
{
|
|
6556
|
+
"$ref": "#/definitions/ExprRef"
|
|
6557
|
+
}
|
|
6558
|
+
]
|
|
6559
|
+
},
|
|
6560
|
+
"x2": {
|
|
6561
|
+
"anyOf": [
|
|
6562
|
+
{
|
|
6563
|
+
"type": "number"
|
|
6564
|
+
},
|
|
6565
|
+
{
|
|
6566
|
+
"$ref": "#/definitions/ExprRef"
|
|
6567
|
+
}
|
|
6568
|
+
]
|
|
6569
|
+
},
|
|
6570
|
+
"xOffset": {
|
|
6571
|
+
"description": "Offsets of the `x` and `x2` coordinates in pixels. The offset is applied after the viewport scaling and translation.\n\n**Default value:** `0`",
|
|
6572
|
+
"type": "number"
|
|
6573
|
+
},
|
|
6574
|
+
"y": {
|
|
6575
|
+
"anyOf": [
|
|
6576
|
+
{
|
|
6577
|
+
"type": "number"
|
|
6578
|
+
},
|
|
6579
|
+
{
|
|
6580
|
+
"$ref": "#/definitions/ExprRef"
|
|
6581
|
+
}
|
|
6582
|
+
]
|
|
6583
|
+
},
|
|
6584
|
+
"y2": {
|
|
6585
|
+
"anyOf": [
|
|
6586
|
+
{
|
|
6587
|
+
"type": "number"
|
|
6209
6588
|
},
|
|
6210
|
-
|
|
6211
|
-
"
|
|
6212
|
-
{
|
|
6213
|
-
"$ref": "#/definitions/SizeDef"
|
|
6214
|
-
},
|
|
6215
|
-
{
|
|
6216
|
-
"type": "number"
|
|
6217
|
-
},
|
|
6218
|
-
{
|
|
6219
|
-
"$ref": "#/definitions/Step"
|
|
6220
|
-
},
|
|
6221
|
-
{
|
|
6222
|
-
"const": "container",
|
|
6223
|
-
"type": "string"
|
|
6224
|
-
}
|
|
6225
|
-
],
|
|
6226
|
-
"description": "Width of the view. If a number, it is interpreted as pixels.\n\n**Default:** `\"container\"`"
|
|
6589
|
+
{
|
|
6590
|
+
"$ref": "#/definitions/ExprRef"
|
|
6227
6591
|
}
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
"type": "object"
|
|
6592
|
+
]
|
|
6593
|
+
},
|
|
6594
|
+
"yOffset": {
|
|
6595
|
+
"description": "Offsets of the `y` and `y2` coordinates in pixels. The offset is applied after the viewport scaling and translation.\n\n**Default value:** `0`",
|
|
6596
|
+
"type": "number"
|
|
6234
6597
|
}
|
|
6235
|
-
|
|
6598
|
+
},
|
|
6599
|
+
"required": [
|
|
6600
|
+
"type"
|
|
6601
|
+
],
|
|
6602
|
+
"type": "object"
|
|
6236
6603
|
},
|
|
6237
6604
|
"SampleAttributeDef": {
|
|
6238
6605
|
"additionalProperties": false,
|
|
@@ -6501,372 +6868,660 @@
|
|
|
6501
6868
|
"$ref": "#/definitions/SizeDef"
|
|
6502
6869
|
},
|
|
6503
6870
|
{
|
|
6504
|
-
"type": "number"
|
|
6871
|
+
"type": "number"
|
|
6872
|
+
},
|
|
6873
|
+
{
|
|
6874
|
+
"const": "container",
|
|
6875
|
+
"type": "string"
|
|
6876
|
+
}
|
|
6877
|
+
],
|
|
6878
|
+
"description": "Optional viewport height of the view. If the view size exceeds the viewport height, it will be shown with scrollbars. This property implicitly enables clipping.\n\n**Default:** `null` (same as `height`)"
|
|
6879
|
+
},
|
|
6880
|
+
"viewportWidth": {
|
|
6881
|
+
"anyOf": [
|
|
6882
|
+
{
|
|
6883
|
+
"$ref": "#/definitions/SizeDef"
|
|
6884
|
+
},
|
|
6885
|
+
{
|
|
6886
|
+
"type": "number"
|
|
6887
|
+
},
|
|
6888
|
+
{
|
|
6889
|
+
"const": "container",
|
|
6890
|
+
"type": "string"
|
|
6891
|
+
}
|
|
6892
|
+
],
|
|
6893
|
+
"description": "Optional viewport width of the view. If the view size exceeds the viewport width, it will be shown with scrollbars. This property implicitly enables clipping.\n\n**Default:** `null` (same as `width`)"
|
|
6894
|
+
},
|
|
6895
|
+
"visible": {
|
|
6896
|
+
"description": "Visibility of the view. An invisible view is removed from the layout and not rendered.\n\n**Default:** `true`",
|
|
6897
|
+
"type": "boolean"
|
|
6898
|
+
},
|
|
6899
|
+
"width": {
|
|
6900
|
+
"anyOf": [
|
|
6901
|
+
{
|
|
6902
|
+
"$ref": "#/definitions/SizeDef"
|
|
6903
|
+
},
|
|
6904
|
+
{
|
|
6905
|
+
"type": "number"
|
|
6906
|
+
},
|
|
6907
|
+
{
|
|
6908
|
+
"$ref": "#/definitions/Step"
|
|
6909
|
+
},
|
|
6910
|
+
{
|
|
6911
|
+
"const": "container",
|
|
6912
|
+
"type": "string"
|
|
6913
|
+
}
|
|
6914
|
+
],
|
|
6915
|
+
"description": "Width of the view. If a number, it is interpreted as pixels.\n\n**Default:** `\"container\"`"
|
|
6916
|
+
}
|
|
6917
|
+
},
|
|
6918
|
+
"required": [
|
|
6919
|
+
"samples",
|
|
6920
|
+
"spec"
|
|
6921
|
+
],
|
|
6922
|
+
"type": "object"
|
|
6923
|
+
},
|
|
6924
|
+
"Scalar": {
|
|
6925
|
+
"type": [
|
|
6926
|
+
"string",
|
|
6927
|
+
"number",
|
|
6928
|
+
"boolean"
|
|
6929
|
+
]
|
|
6930
|
+
},
|
|
6931
|
+
"ScalarDomain": {
|
|
6932
|
+
"anyOf": [
|
|
6933
|
+
{
|
|
6934
|
+
"$ref": "#/definitions/NumericDomain"
|
|
6935
|
+
},
|
|
6936
|
+
{
|
|
6937
|
+
"items": {
|
|
6938
|
+
"type": "string"
|
|
6939
|
+
},
|
|
6940
|
+
"type": "array"
|
|
6941
|
+
},
|
|
6942
|
+
{
|
|
6943
|
+
"items": {
|
|
6944
|
+
"type": "boolean"
|
|
6945
|
+
},
|
|
6946
|
+
"type": "array"
|
|
6947
|
+
}
|
|
6948
|
+
]
|
|
6949
|
+
},
|
|
6950
|
+
"Scale": {
|
|
6951
|
+
"additionalProperties": false,
|
|
6952
|
+
"properties": {
|
|
6953
|
+
"align": {
|
|
6954
|
+
"description": "The alignment of the steps within the scale range.\n\nThis value must lie in the range `[0,1]`. A value of `0.5` indicates that the steps should be centered within the range. A value of `0` or `1` may be used to shift the bands to one side, say to position them adjacent to an axis.\n\n__Default value:__ `0.5`",
|
|
6955
|
+
"type": "number"
|
|
6956
|
+
},
|
|
6957
|
+
"base": {
|
|
6958
|
+
"description": "The logarithm base of the `log` scale (default `10`).",
|
|
6959
|
+
"type": "number"
|
|
6960
|
+
},
|
|
6961
|
+
"bins": {
|
|
6962
|
+
"description": "An array of bin boundaries over the scale domain. If provided, axes and legends will use the bin boundaries to inform the choice of tick marks and text labels.",
|
|
6963
|
+
"items": {
|
|
6964
|
+
"type": "number"
|
|
6965
|
+
},
|
|
6966
|
+
"type": "array"
|
|
6967
|
+
},
|
|
6968
|
+
"clamp": {
|
|
6969
|
+
"description": "If `true`, values that exceed the data domain are clamped to either the minimum or maximum range value\n\n__Default value:__ derived from the [scale config](https://vega.github.io/vega-lite/docs/config.html#scale-config)'s `clamp` (`true` by default).",
|
|
6970
|
+
"type": "boolean"
|
|
6971
|
+
},
|
|
6972
|
+
"constant": {
|
|
6973
|
+
"description": "A constant determining the slope of the symlog function around zero. Only used for `symlog` scales.\n\n__Default value:__ `1`",
|
|
6974
|
+
"type": "number"
|
|
6975
|
+
},
|
|
6976
|
+
"domain": {
|
|
6977
|
+
"anyOf": [
|
|
6978
|
+
{
|
|
6979
|
+
"$ref": "#/definitions/ScalarDomain"
|
|
6980
|
+
},
|
|
6981
|
+
{
|
|
6982
|
+
"$ref": "#/definitions/ComplexDomain"
|
|
6983
|
+
}
|
|
6984
|
+
],
|
|
6985
|
+
"description": "Customized domain values.\n\nFor _quantitative_ fields, `domain` can take the form of a two-element array with minimum and maximum values. [Piecewise scales](https://vega.github.io/vega-lite/docs/scale.html#piecewise) can be created by providing a `domain` with more than two entries.\n\nFor _temporal_ fields, `domain` can be a two-element array minimum and maximum values, in the form of either timestamps or the [DateTime definition objects](https://vega.github.io/vega-lite/docs/types.html#datetime).\n\nFor _ordinal_ and _nominal_ fields, `domain` can be an array that lists valid input values."
|
|
6986
|
+
},
|
|
6987
|
+
"domainMax": {
|
|
6988
|
+
"description": "Sets the maximum value in the scale domain, overriding the `domain` property. This property is only intended for use with scales having continuous domains.",
|
|
6989
|
+
"type": "number"
|
|
6990
|
+
},
|
|
6991
|
+
"domainMid": {
|
|
6992
|
+
"description": "Inserts a single mid-point value into a two-element domain. The mid-point value must lie between the domain minimum and maximum values. This property can be useful for setting a midpoint for [diverging color scales](https://vega.github.io/vega-lite/docs/scale.html#piecewise). The domainMid property is only intended for use with scales supporting continuous, piecewise domains.",
|
|
6993
|
+
"type": "number"
|
|
6994
|
+
},
|
|
6995
|
+
"domainMin": {
|
|
6996
|
+
"description": "Sets the minimum value in the scale domain, overriding the domain property. This property is only intended for use with scales having continuous domains.",
|
|
6997
|
+
"type": "number"
|
|
6998
|
+
},
|
|
6999
|
+
"exponent": {
|
|
7000
|
+
"description": "The exponent of the `pow` scale.",
|
|
7001
|
+
"type": "number"
|
|
7002
|
+
},
|
|
7003
|
+
"interpolate": {
|
|
7004
|
+
"anyOf": [
|
|
7005
|
+
{
|
|
7006
|
+
"$ref": "#/definitions/ScaleInterpolate"
|
|
7007
|
+
},
|
|
7008
|
+
{
|
|
7009
|
+
"$ref": "#/definitions/ScaleInterpolateParams"
|
|
7010
|
+
}
|
|
7011
|
+
],
|
|
7012
|
+
"description": "The interpolation method for range values. By default, a general interpolator for numbers, dates, strings and colors (in HCL space) is used. For color ranges, this property allows interpolation in alternative color spaces. Legal values include `rgb`, `hsl`, `hsl-long`, `lab`, `hcl`, `hcl-long`, `cubehelix` and `cubehelix-long` ('-long' variants use longer paths in polar coordinate spaces). If object-valued, this property accepts an object with a string-valued _type_ property and an optional numeric _gamma_ property applicable to rgb and cubehelix interpolators. For more, see the [d3-interpolate documentation](https://github.com/d3/d3-interpolate).\n\n__Default value:__ `hcl`"
|
|
7013
|
+
},
|
|
7014
|
+
"name": {
|
|
7015
|
+
"description": "The name of the scale. Names are optional but allow the scales to be referenced and found with the API.",
|
|
7016
|
+
"type": "string"
|
|
7017
|
+
},
|
|
7018
|
+
"nice": {
|
|
7019
|
+
"anyOf": [
|
|
7020
|
+
{
|
|
7021
|
+
"type": "boolean"
|
|
7022
|
+
},
|
|
7023
|
+
{
|
|
7024
|
+
"type": "number"
|
|
7025
|
+
},
|
|
7026
|
+
{
|
|
7027
|
+
"additionalProperties": false,
|
|
7028
|
+
"properties": {
|
|
7029
|
+
"interval": {
|
|
7030
|
+
"type": "string"
|
|
7031
|
+
},
|
|
7032
|
+
"step": {
|
|
7033
|
+
"type": "number"
|
|
7034
|
+
}
|
|
7035
|
+
},
|
|
7036
|
+
"required": [
|
|
7037
|
+
"interval",
|
|
7038
|
+
"step"
|
|
7039
|
+
],
|
|
7040
|
+
"type": "object"
|
|
7041
|
+
}
|
|
7042
|
+
],
|
|
7043
|
+
"description": "Extending the domain so that it starts and ends on nice round values. This method typically modifies the scale’s domain, and may only extend the bounds to the nearest round value. Nicing is useful if the domain is computed from data and may be irregular. For example, for a domain of _[0.201479…, 0.996679…]_, a nice domain might be _[0.2, 1.0]_.\n\nFor quantitative scales such as linear, `nice` can be either a boolean flag or a number. If `nice` is a number, it will represent a desired tick count. This allows greater control over the step size used to extend the bounds, guaranteeing that the returned ticks will exactly cover the domain.\n\n__Default value:__ `true` for unbinned _quantitative_ fields; `false` otherwise."
|
|
7044
|
+
},
|
|
7045
|
+
"padding": {
|
|
7046
|
+
"description": "For _[continuous](https://vega.github.io/vega-lite/docs/scale.html#continuous)_ scales, expands the scale domain to accommodate the specified number of pixels on each of the scale range. The scale range must represent pixels for this parameter to function as intended. Padding adjustment is performed prior to all other adjustments, including the effects of the `zero`, `nice`, `domainMin`, and `domainMax` properties.\n\nFor _[band](https://vega.github.io/vega-lite/docs/scale.html#band)_ scales, shortcut for setting `paddingInner` and `paddingOuter` to the same value.\n\nFor _[point](https://vega.github.io/vega-lite/docs/scale.html#point)_ scales, alias for `paddingOuter`.\n\n__Default value:__ For _continuous_ scales, derived from the [scale config](https://vega.github.io/vega-lite/docs/scale.html#config)'s `continuousPadding`. For _band and point_ scales, see `paddingInner` and `paddingOuter`. By default, Vega-Lite sets padding such that _width/height = number of unique values * step_.",
|
|
7047
|
+
"minimum": 0,
|
|
7048
|
+
"type": "number"
|
|
7049
|
+
},
|
|
7050
|
+
"paddingInner": {
|
|
7051
|
+
"description": "The inner padding (spacing) within each band step of band scales, as a fraction of the step size. This value must lie in the range [0,1].\n\nFor point scale, this property is invalid as point scales do not have internal band widths (only step sizes between bands).\n\n__Default value:__ derived from the [scale config](https://vega.github.io/vega-lite/docs/scale.html#config)'s `bandPaddingInner`.",
|
|
7052
|
+
"maximum": 1,
|
|
7053
|
+
"minimum": 0,
|
|
7054
|
+
"type": "number"
|
|
7055
|
+
},
|
|
7056
|
+
"paddingOuter": {
|
|
7057
|
+
"description": "The outer padding (spacing) at the ends of the range of band and point scales, as a fraction of the step size. This value must lie in the range [0,1].\n\n__Default value:__ derived from the [scale config](https://vega.github.io/vega-lite/docs/scale.html#config)'s `bandPaddingOuter` for band scales and `pointPadding` for point scales. By default, Vega-Lite sets outer padding such that _width/height = number of unique values * step_.",
|
|
7058
|
+
"maximum": 1,
|
|
7059
|
+
"minimum": 0,
|
|
7060
|
+
"type": "number"
|
|
7061
|
+
},
|
|
7062
|
+
"range": {
|
|
7063
|
+
"anyOf": [
|
|
7064
|
+
{
|
|
7065
|
+
"items": {
|
|
7066
|
+
"type": "number"
|
|
7067
|
+
},
|
|
7068
|
+
"type": "array"
|
|
7069
|
+
},
|
|
7070
|
+
{
|
|
7071
|
+
"items": {
|
|
7072
|
+
"type": "string"
|
|
7073
|
+
},
|
|
7074
|
+
"type": "array"
|
|
6505
7075
|
},
|
|
6506
7076
|
{
|
|
6507
|
-
"const": "container",
|
|
6508
7077
|
"type": "string"
|
|
7078
|
+
},
|
|
7079
|
+
{
|
|
7080
|
+
"items": {
|
|
7081
|
+
"$ref": "#/definitions/ExprRef"
|
|
7082
|
+
},
|
|
7083
|
+
"type": "array"
|
|
6509
7084
|
}
|
|
6510
7085
|
],
|
|
6511
|
-
"description": "
|
|
7086
|
+
"description": "The range of the scale. One of:\n\n- A string indicating a [pre-defined named scale range](https://vega.github.io/vega-lite/docs/scale.html#range-config) (e.g., example, `\"symbol\"`, or `\"diverging\"`).\n\n- For [continuous scales](https://vega.github.io/vega-lite/docs/scale.html#continuous), two-element array indicating minimum and maximum values, or an array with more than two entries for specifying a [piecewise scale](https://vega.github.io/vega-lite/docs/scale.html#piecewise).\n\n- For [discrete](https://vega.github.io/vega-lite/docs/scale.html#discrete) and [discretizing](https://vega.github.io/vega-lite/docs/scale.html#discretizing) scales, an array of desired output values.\n\n__Notes:__\n\n1) For color scales you can also specify a color [`scheme`](https://vega.github.io/vega-lite/docs/scale.html#scheme) instead of `range`.\n\n2) Any directly specified `range` for `x` and `y` channels will be ignored. Range can be customized via the view's corresponding [size](https://vega.github.io/vega-lite/docs/size.html) (`width` and `height`)."
|
|
6512
7087
|
},
|
|
6513
|
-
"
|
|
7088
|
+
"reverse": {
|
|
7089
|
+
"description": "If true, reverses the order of the scale range.\n\n__Default value:__ `false`.",
|
|
7090
|
+
"type": "boolean"
|
|
7091
|
+
},
|
|
7092
|
+
"round": {
|
|
7093
|
+
"description": "If `true`, rounds numeric output values to integers. This can be helpful for snapping to the pixel grid.\n\n__Default value:__ `false`.",
|
|
7094
|
+
"type": "boolean"
|
|
7095
|
+
},
|
|
7096
|
+
"scheme": {
|
|
6514
7097
|
"anyOf": [
|
|
6515
7098
|
{
|
|
6516
|
-
"
|
|
6517
|
-
},
|
|
6518
|
-
{
|
|
6519
|
-
"type": "number"
|
|
7099
|
+
"type": "string"
|
|
6520
7100
|
},
|
|
6521
7101
|
{
|
|
6522
|
-
"
|
|
6523
|
-
"type": "string"
|
|
7102
|
+
"$ref": "#/definitions/SchemeParams"
|
|
6524
7103
|
}
|
|
6525
7104
|
],
|
|
6526
|
-
"description": "
|
|
7105
|
+
"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."
|
|
6527
7106
|
},
|
|
6528
|
-
"
|
|
6529
|
-
"
|
|
7107
|
+
"type": {
|
|
7108
|
+
"$ref": "#/definitions/ScaleType",
|
|
7109
|
+
"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)."
|
|
7110
|
+
},
|
|
7111
|
+
"zero": {
|
|
7112
|
+
"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`.",
|
|
6530
7113
|
"type": "boolean"
|
|
6531
7114
|
},
|
|
6532
|
-
"
|
|
7115
|
+
"zoom": {
|
|
6533
7116
|
"anyOf": [
|
|
6534
7117
|
{
|
|
6535
|
-
"
|
|
6536
|
-
},
|
|
6537
|
-
{
|
|
6538
|
-
"type": "number"
|
|
6539
|
-
},
|
|
6540
|
-
{
|
|
6541
|
-
"$ref": "#/definitions/Step"
|
|
7118
|
+
"type": "boolean"
|
|
6542
7119
|
},
|
|
6543
7120
|
{
|
|
6544
|
-
"
|
|
6545
|
-
"type": "string"
|
|
7121
|
+
"$ref": "#/definitions/ZoomParams"
|
|
6546
7122
|
}
|
|
6547
7123
|
],
|
|
6548
|
-
"description": "
|
|
7124
|
+
"description": "If `true` and the scale is used on a positional channel, it can bee zoomed and translated interactively."
|
|
6549
7125
|
}
|
|
6550
7126
|
},
|
|
6551
|
-
"required": [
|
|
6552
|
-
"samples",
|
|
6553
|
-
"spec"
|
|
6554
|
-
],
|
|
6555
7127
|
"type": "object"
|
|
6556
7128
|
},
|
|
6557
|
-
"
|
|
6558
|
-
"
|
|
6559
|
-
"
|
|
6560
|
-
"
|
|
6561
|
-
"
|
|
6562
|
-
|
|
7129
|
+
"ScaleInterpolate": {
|
|
7130
|
+
"enum": [
|
|
7131
|
+
"rgb",
|
|
7132
|
+
"lab",
|
|
7133
|
+
"hcl",
|
|
7134
|
+
"hsl",
|
|
7135
|
+
"hsl-long",
|
|
7136
|
+
"hcl-long",
|
|
7137
|
+
"cubehelix",
|
|
7138
|
+
"cubehelix-long"
|
|
7139
|
+
],
|
|
7140
|
+
"type": "string"
|
|
6563
7141
|
},
|
|
6564
|
-
"
|
|
6565
|
-
"
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
{
|
|
6570
|
-
"items": {
|
|
6571
|
-
"type": "string"
|
|
6572
|
-
},
|
|
6573
|
-
"type": "array"
|
|
7142
|
+
"ScaleInterpolateParams": {
|
|
7143
|
+
"additionalProperties": false,
|
|
7144
|
+
"properties": {
|
|
7145
|
+
"gamma": {
|
|
7146
|
+
"type": "number"
|
|
6574
7147
|
},
|
|
6575
|
-
{
|
|
6576
|
-
"
|
|
6577
|
-
"
|
|
6578
|
-
|
|
6579
|
-
|
|
7148
|
+
"type": {
|
|
7149
|
+
"enum": [
|
|
7150
|
+
"rgb",
|
|
7151
|
+
"cubehelix",
|
|
7152
|
+
"cubehelix-long"
|
|
7153
|
+
],
|
|
7154
|
+
"type": "string"
|
|
6580
7155
|
}
|
|
6581
|
-
|
|
7156
|
+
},
|
|
7157
|
+
"required": [
|
|
7158
|
+
"type"
|
|
7159
|
+
],
|
|
7160
|
+
"type": "object"
|
|
6582
7161
|
},
|
|
6583
|
-
"
|
|
7162
|
+
"ScaleType": {
|
|
7163
|
+
"enum": [
|
|
7164
|
+
"null",
|
|
7165
|
+
"linear",
|
|
7166
|
+
"log",
|
|
7167
|
+
"pow",
|
|
7168
|
+
"sqrt",
|
|
7169
|
+
"symlog",
|
|
7170
|
+
"identity",
|
|
7171
|
+
"sequential",
|
|
7172
|
+
"quantize",
|
|
7173
|
+
"threshold",
|
|
7174
|
+
"ordinal",
|
|
7175
|
+
"point",
|
|
7176
|
+
"band",
|
|
7177
|
+
"index",
|
|
7178
|
+
"locus"
|
|
7179
|
+
],
|
|
7180
|
+
"type": "string"
|
|
7181
|
+
},
|
|
7182
|
+
"SchemeParams": {
|
|
6584
7183
|
"additionalProperties": false,
|
|
6585
7184
|
"properties": {
|
|
6586
|
-
"
|
|
6587
|
-
"description": "The
|
|
6588
|
-
"type": "number"
|
|
6589
|
-
},
|
|
6590
|
-
"base": {
|
|
6591
|
-
"description": "The logarithm base of the `log` scale (default `10`).",
|
|
7185
|
+
"count": {
|
|
7186
|
+
"description": "The number of colors to use in the scheme. This can be useful for scale types such as `\"quantize\"`, which use the length of the scale range to determine the number of discrete bins for the scale domain.",
|
|
6592
7187
|
"type": "number"
|
|
6593
7188
|
},
|
|
6594
|
-
"
|
|
6595
|
-
"description": "
|
|
7189
|
+
"extent": {
|
|
7190
|
+
"description": "The extent of the color range to use. For example `[0.2, 1]` will rescale the color scheme such that color values in the range _[0, 0.2)_ are excluded from the scheme.",
|
|
6596
7191
|
"items": {
|
|
6597
7192
|
"type": "number"
|
|
6598
7193
|
},
|
|
6599
7194
|
"type": "array"
|
|
6600
7195
|
},
|
|
6601
|
-
"
|
|
6602
|
-
"description": "
|
|
6603
|
-
"type": "
|
|
6604
|
-
}
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
6608
|
-
|
|
6609
|
-
|
|
7196
|
+
"name": {
|
|
7197
|
+
"description": "A color scheme name for ordinal scales (e.g., `\"category10\"` or `\"blues\"`).\n\nFor the full list of supported schemes, please refer to the [Vega Scheme](https://vega.github.io/vega/docs/schemes/#reference) reference.",
|
|
7198
|
+
"type": "string"
|
|
7199
|
+
}
|
|
7200
|
+
},
|
|
7201
|
+
"required": [
|
|
7202
|
+
"name"
|
|
7203
|
+
],
|
|
7204
|
+
"type": "object"
|
|
7205
|
+
},
|
|
7206
|
+
"SecondaryChromPosDef": {
|
|
7207
|
+
"additionalProperties": false,
|
|
7208
|
+
"properties": {
|
|
7209
|
+
"axis": {
|
|
6610
7210
|
"anyOf": [
|
|
6611
7211
|
{
|
|
6612
|
-
"$ref": "#/definitions/
|
|
7212
|
+
"$ref": "#/definitions/GenomeAxis"
|
|
6613
7213
|
},
|
|
6614
7214
|
{
|
|
6615
|
-
"
|
|
7215
|
+
"type": "null"
|
|
6616
7216
|
}
|
|
6617
7217
|
],
|
|
6618
|
-
"description": "
|
|
7218
|
+
"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."
|
|
6619
7219
|
},
|
|
6620
|
-
"
|
|
6621
|
-
"description": "
|
|
7220
|
+
"band": {
|
|
7221
|
+
"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`.",
|
|
7222
|
+
"maximum": 1,
|
|
7223
|
+
"minimum": 0,
|
|
6622
7224
|
"type": "number"
|
|
6623
7225
|
},
|
|
6624
|
-
"
|
|
6625
|
-
"
|
|
6626
|
-
"
|
|
7226
|
+
"chrom": {
|
|
7227
|
+
"$ref": "#/definitions/FieldName",
|
|
7228
|
+
"description": "The field having the chromosome or contig."
|
|
6627
7229
|
},
|
|
6628
|
-
"
|
|
6629
|
-
"description": "
|
|
7230
|
+
"offset": {
|
|
7231
|
+
"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`",
|
|
6630
7232
|
"type": "number"
|
|
6631
7233
|
},
|
|
6632
|
-
"
|
|
6633
|
-
"
|
|
6634
|
-
"
|
|
7234
|
+
"pos": {
|
|
7235
|
+
"$ref": "#/definitions/FieldName",
|
|
7236
|
+
"description": "The field having an intra-chromosomal position."
|
|
6635
7237
|
},
|
|
6636
|
-
"
|
|
7238
|
+
"title": {
|
|
7239
|
+
"description": "A title for the field. If `null`, the title will be removed.",
|
|
7240
|
+
"type": [
|
|
7241
|
+
"string",
|
|
7242
|
+
"null"
|
|
7243
|
+
]
|
|
7244
|
+
}
|
|
7245
|
+
},
|
|
7246
|
+
"required": [
|
|
7247
|
+
"chrom"
|
|
7248
|
+
],
|
|
7249
|
+
"type": "object"
|
|
7250
|
+
},
|
|
7251
|
+
"SecondaryPositionalChannel": {
|
|
7252
|
+
"enum": [
|
|
7253
|
+
"x2",
|
|
7254
|
+
"y2"
|
|
7255
|
+
],
|
|
7256
|
+
"type": "string"
|
|
7257
|
+
},
|
|
7258
|
+
"SelectionFilterParams": {
|
|
7259
|
+
"additionalProperties": false,
|
|
7260
|
+
"properties": {
|
|
7261
|
+
"empty": {
|
|
7262
|
+
"description": "If true, the filter retains all data objects when the selection is empty.\n\n**Default:** `true`",
|
|
7263
|
+
"type": "boolean"
|
|
7264
|
+
},
|
|
7265
|
+
"param": {
|
|
7266
|
+
"description": "A selection parameter. The data object is removed if it is not part of the selection.",
|
|
7267
|
+
"type": "string"
|
|
7268
|
+
},
|
|
7269
|
+
"type": {
|
|
7270
|
+
"const": "filter",
|
|
7271
|
+
"description": "The type of the transform to be applied",
|
|
7272
|
+
"type": "string"
|
|
7273
|
+
}
|
|
7274
|
+
},
|
|
7275
|
+
"required": [
|
|
7276
|
+
"param",
|
|
7277
|
+
"type"
|
|
7278
|
+
],
|
|
7279
|
+
"type": "object"
|
|
7280
|
+
},
|
|
7281
|
+
"SelectionParameter": {
|
|
7282
|
+
"additionalProperties": false,
|
|
7283
|
+
"properties": {
|
|
7284
|
+
"name": {
|
|
7285
|
+
"description": "A unique name for the variable parameter. Parameter names should be valid JavaScript identifiers: they should contain only alphanumeric characters (or \"$\", or \"_\") and may not start with a digit. Reserved keywords that may not be used as parameter names are: \"datum\".",
|
|
7286
|
+
"type": "string"
|
|
7287
|
+
},
|
|
7288
|
+
"push": {
|
|
7289
|
+
"const": "outer",
|
|
7290
|
+
"type": "string"
|
|
7291
|
+
},
|
|
7292
|
+
"select": {
|
|
6637
7293
|
"anyOf": [
|
|
6638
7294
|
{
|
|
6639
|
-
"$ref": "#/definitions/
|
|
7295
|
+
"$ref": "#/definitions/SelectionType"
|
|
6640
7296
|
},
|
|
6641
7297
|
{
|
|
6642
|
-
"$ref": "#/definitions/
|
|
7298
|
+
"$ref": "#/definitions/PointSelectionConfig"
|
|
7299
|
+
},
|
|
7300
|
+
{
|
|
7301
|
+
"$ref": "#/definitions/IntervalSelectionConfig"
|
|
6643
7302
|
}
|
|
6644
7303
|
],
|
|
6645
|
-
"description": "
|
|
6646
|
-
}
|
|
7304
|
+
"description": "Determines the default event processing and data query for the selection. Vega-Lite currently supports two selection types:\n\n- `\"point\"` -- to select multiple discrete data values; the first value is selected on `click` and additional values toggled on shift-click.\n- `\"interval\"` -- to select a continuous range of data values on `drag`."
|
|
7305
|
+
}
|
|
7306
|
+
},
|
|
7307
|
+
"required": [
|
|
7308
|
+
"name",
|
|
7309
|
+
"select"
|
|
7310
|
+
],
|
|
7311
|
+
"type": "object"
|
|
7312
|
+
},
|
|
7313
|
+
"SelectionType": {
|
|
7314
|
+
"enum": [
|
|
7315
|
+
"point",
|
|
7316
|
+
"interval"
|
|
7317
|
+
],
|
|
7318
|
+
"type": "string"
|
|
7319
|
+
},
|
|
7320
|
+
"SequenceGenerator": {
|
|
7321
|
+
"additionalProperties": false,
|
|
7322
|
+
"properties": {
|
|
6647
7323
|
"name": {
|
|
6648
|
-
"description": "
|
|
7324
|
+
"description": "Provide a placeholder name and bind data at runtime.",
|
|
6649
7325
|
"type": "string"
|
|
6650
7326
|
},
|
|
6651
|
-
"
|
|
7327
|
+
"sequence": {
|
|
7328
|
+
"$ref": "#/definitions/SequenceParams",
|
|
7329
|
+
"description": "Generate a sequence of numbers."
|
|
7330
|
+
}
|
|
7331
|
+
},
|
|
7332
|
+
"required": [
|
|
7333
|
+
"sequence"
|
|
7334
|
+
],
|
|
7335
|
+
"type": "object"
|
|
7336
|
+
},
|
|
7337
|
+
"SequenceParams": {
|
|
7338
|
+
"additionalProperties": false,
|
|
7339
|
+
"properties": {
|
|
7340
|
+
"as": {
|
|
6652
7341
|
"anyOf": [
|
|
6653
7342
|
{
|
|
6654
|
-
"
|
|
6655
|
-
},
|
|
6656
|
-
{
|
|
6657
|
-
"type": "number"
|
|
7343
|
+
"$ref": "#/definitions/FieldName"
|
|
6658
7344
|
},
|
|
6659
7345
|
{
|
|
6660
|
-
"
|
|
6661
|
-
"properties": {
|
|
6662
|
-
"interval": {
|
|
6663
|
-
"type": "string"
|
|
6664
|
-
},
|
|
6665
|
-
"step": {
|
|
6666
|
-
"type": "number"
|
|
6667
|
-
}
|
|
6668
|
-
},
|
|
6669
|
-
"required": [
|
|
6670
|
-
"interval",
|
|
6671
|
-
"step"
|
|
6672
|
-
],
|
|
6673
|
-
"type": "object"
|
|
7346
|
+
"$ref": "#/definitions/ExprRef"
|
|
6674
7347
|
}
|
|
6675
7348
|
],
|
|
6676
|
-
"description": "
|
|
6677
|
-
},
|
|
6678
|
-
"padding": {
|
|
6679
|
-
"description": "For _[continuous](https://vega.github.io/vega-lite/docs/scale.html#continuous)_ scales, expands the scale domain to accommodate the specified number of pixels on each of the scale range. The scale range must represent pixels for this parameter to function as intended. Padding adjustment is performed prior to all other adjustments, including the effects of the `zero`, `nice`, `domainMin`, and `domainMax` properties.\n\nFor _[band](https://vega.github.io/vega-lite/docs/scale.html#band)_ scales, shortcut for setting `paddingInner` and `paddingOuter` to the same value.\n\nFor _[point](https://vega.github.io/vega-lite/docs/scale.html#point)_ scales, alias for `paddingOuter`.\n\n__Default value:__ For _continuous_ scales, derived from the [scale config](https://vega.github.io/vega-lite/docs/scale.html#config)'s `continuousPadding`. For _band and point_ scales, see `paddingInner` and `paddingOuter`. By default, Vega-Lite sets padding such that _width/height = number of unique values * step_.",
|
|
6680
|
-
"minimum": 0,
|
|
6681
|
-
"type": "number"
|
|
6682
|
-
},
|
|
6683
|
-
"paddingInner": {
|
|
6684
|
-
"description": "The inner padding (spacing) within each band step of band scales, as a fraction of the step size. This value must lie in the range [0,1].\n\nFor point scale, this property is invalid as point scales do not have internal band widths (only step sizes between bands).\n\n__Default value:__ derived from the [scale config](https://vega.github.io/vega-lite/docs/scale.html#config)'s `bandPaddingInner`.",
|
|
6685
|
-
"maximum": 1,
|
|
6686
|
-
"minimum": 0,
|
|
6687
|
-
"type": "number"
|
|
6688
|
-
},
|
|
6689
|
-
"paddingOuter": {
|
|
6690
|
-
"description": "The outer padding (spacing) at the ends of the range of band and point scales, as a fraction of the step size. This value must lie in the range [0,1].\n\n__Default value:__ derived from the [scale config](https://vega.github.io/vega-lite/docs/scale.html#config)'s `bandPaddingOuter` for band scales and `pointPadding` for point scales. By default, Vega-Lite sets outer padding such that _width/height = number of unique values * step_.",
|
|
6691
|
-
"maximum": 1,
|
|
6692
|
-
"minimum": 0,
|
|
6693
|
-
"type": "number"
|
|
7349
|
+
"description": "The name of the generated sequence field.\n\n__Default value:__ `\"data\"`"
|
|
6694
7350
|
},
|
|
6695
|
-
"
|
|
7351
|
+
"start": {
|
|
6696
7352
|
"anyOf": [
|
|
6697
7353
|
{
|
|
6698
|
-
"
|
|
6699
|
-
"type": "number"
|
|
6700
|
-
},
|
|
6701
|
-
"type": "array"
|
|
6702
|
-
},
|
|
6703
|
-
{
|
|
6704
|
-
"items": {
|
|
6705
|
-
"type": "string"
|
|
6706
|
-
},
|
|
6707
|
-
"type": "array"
|
|
6708
|
-
},
|
|
6709
|
-
{
|
|
6710
|
-
"type": "string"
|
|
7354
|
+
"type": "number"
|
|
6711
7355
|
},
|
|
6712
7356
|
{
|
|
6713
|
-
"
|
|
6714
|
-
"$ref": "#/definitions/ExprRef"
|
|
6715
|
-
},
|
|
6716
|
-
"type": "array"
|
|
7357
|
+
"$ref": "#/definitions/ExprRef"
|
|
6717
7358
|
}
|
|
6718
7359
|
],
|
|
6719
|
-
"description": "The
|
|
6720
|
-
},
|
|
6721
|
-
"reverse": {
|
|
6722
|
-
"description": "If true, reverses the order of the scale range.\n\n__Default value:__ `false`.",
|
|
6723
|
-
"type": "boolean"
|
|
6724
|
-
},
|
|
6725
|
-
"round": {
|
|
6726
|
-
"description": "If `true`, rounds numeric output values to integers. This can be helpful for snapping to the pixel grid.\n\n__Default value:__ `false`.",
|
|
6727
|
-
"type": "boolean"
|
|
7360
|
+
"description": "The starting value of the sequence (inclusive)."
|
|
6728
7361
|
},
|
|
6729
|
-
"
|
|
7362
|
+
"step": {
|
|
6730
7363
|
"anyOf": [
|
|
6731
7364
|
{
|
|
6732
|
-
"type": "
|
|
7365
|
+
"type": "number"
|
|
6733
7366
|
},
|
|
6734
7367
|
{
|
|
6735
|
-
"$ref": "#/definitions/
|
|
7368
|
+
"$ref": "#/definitions/ExprRef"
|
|
6736
7369
|
}
|
|
6737
7370
|
],
|
|
6738
|
-
"description": "
|
|
6739
|
-
},
|
|
6740
|
-
"type": {
|
|
6741
|
-
"$ref": "#/definitions/ScaleType",
|
|
6742
|
-
"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)."
|
|
6743
|
-
},
|
|
6744
|
-
"zero": {
|
|
6745
|
-
"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`.",
|
|
6746
|
-
"type": "boolean"
|
|
7371
|
+
"description": "The step value between sequence entries.\n\n__Default value:__ `1`"
|
|
6747
7372
|
},
|
|
6748
|
-
"
|
|
7373
|
+
"stop": {
|
|
6749
7374
|
"anyOf": [
|
|
6750
7375
|
{
|
|
6751
|
-
"type": "
|
|
7376
|
+
"type": "number"
|
|
6752
7377
|
},
|
|
6753
7378
|
{
|
|
6754
|
-
"$ref": "#/definitions/
|
|
7379
|
+
"$ref": "#/definitions/ExprRef"
|
|
6755
7380
|
}
|
|
6756
7381
|
],
|
|
6757
|
-
"description": "
|
|
7382
|
+
"description": "The ending value of the sequence (exclusive)."
|
|
6758
7383
|
}
|
|
6759
7384
|
},
|
|
7385
|
+
"required": [
|
|
7386
|
+
"start",
|
|
7387
|
+
"stop"
|
|
7388
|
+
],
|
|
6760
7389
|
"type": "object"
|
|
6761
7390
|
},
|
|
6762
|
-
"
|
|
6763
|
-
"
|
|
6764
|
-
"rgb",
|
|
6765
|
-
"lab",
|
|
6766
|
-
"hcl",
|
|
6767
|
-
"hsl",
|
|
6768
|
-
"hsl-long",
|
|
6769
|
-
"hcl-long",
|
|
6770
|
-
"cubehelix",
|
|
6771
|
-
"cubehelix-long"
|
|
6772
|
-
],
|
|
6773
|
-
"type": "string"
|
|
7391
|
+
"ShapeDef": {
|
|
7392
|
+
"$ref": "#/definitions/MarkPropDef%3C(string%7Cnull)%2CTypeForShape%3E"
|
|
6774
7393
|
},
|
|
6775
|
-
"
|
|
7394
|
+
"SizeDef": {
|
|
6776
7395
|
"additionalProperties": false,
|
|
6777
7396
|
"properties": {
|
|
6778
|
-
"
|
|
7397
|
+
"grow": {
|
|
7398
|
+
"description": "Share of the remaining space",
|
|
6779
7399
|
"type": "number"
|
|
6780
7400
|
},
|
|
6781
|
-
"
|
|
6782
|
-
"
|
|
6783
|
-
|
|
6784
|
-
"cubehelix",
|
|
6785
|
-
"cubehelix-long"
|
|
6786
|
-
],
|
|
6787
|
-
"type": "string"
|
|
7401
|
+
"px": {
|
|
7402
|
+
"description": "Size in pixels",
|
|
7403
|
+
"type": "number"
|
|
6788
7404
|
}
|
|
6789
7405
|
},
|
|
6790
|
-
"required": [
|
|
6791
|
-
"type"
|
|
6792
|
-
],
|
|
6793
7406
|
"type": "object"
|
|
6794
7407
|
},
|
|
6795
|
-
"
|
|
7408
|
+
"SortOrder": {
|
|
6796
7409
|
"enum": [
|
|
6797
|
-
"
|
|
6798
|
-
"
|
|
6799
|
-
"log",
|
|
6800
|
-
"pow",
|
|
6801
|
-
"sqrt",
|
|
6802
|
-
"symlog",
|
|
6803
|
-
"identity",
|
|
6804
|
-
"sequential",
|
|
6805
|
-
"quantize",
|
|
6806
|
-
"threshold",
|
|
6807
|
-
"ordinal",
|
|
6808
|
-
"point",
|
|
6809
|
-
"band",
|
|
6810
|
-
"index",
|
|
6811
|
-
"locus"
|
|
7410
|
+
"ascending",
|
|
7411
|
+
"descending"
|
|
6812
7412
|
],
|
|
6813
7413
|
"type": "string"
|
|
6814
7414
|
},
|
|
6815
|
-
"
|
|
7415
|
+
"StackParams": {
|
|
6816
7416
|
"additionalProperties": false,
|
|
6817
7417
|
"properties": {
|
|
6818
|
-
"
|
|
6819
|
-
"description": "
|
|
7418
|
+
"as": {
|
|
7419
|
+
"description": "Fields to write the stacked values.\n\n**Default:** `[\"y0\", \"y1\"]`",
|
|
7420
|
+
"items": {
|
|
7421
|
+
"type": "string"
|
|
7422
|
+
},
|
|
7423
|
+
"type": "array"
|
|
7424
|
+
},
|
|
7425
|
+
"baseField": {
|
|
7426
|
+
"$ref": "#/definitions/Field",
|
|
7427
|
+
"description": "The field that contains the base or amino acid. Used for information content calculation when the offset is `\"information\"`. The data objects that have `null` in the baseField are considered gaps and they are taken into account when scaling the the locus' information content."
|
|
7428
|
+
},
|
|
7429
|
+
"cardinality": {
|
|
7430
|
+
"description": "Cardinality, e.g., the number if distinct bases or amino acids. Used for information content calculation when the offset is `\"information\"`.\n\n**Default:** `4`",
|
|
6820
7431
|
"type": "number"
|
|
6821
7432
|
},
|
|
6822
|
-
"
|
|
6823
|
-
"
|
|
7433
|
+
"field": {
|
|
7434
|
+
"$ref": "#/definitions/Field",
|
|
7435
|
+
"description": "The field to stack. If no field is defined, a constant value of one is assumed."
|
|
7436
|
+
},
|
|
7437
|
+
"groupby": {
|
|
7438
|
+
"description": "The fields to be used for forming groups for different stacks.",
|
|
6824
7439
|
"items": {
|
|
6825
|
-
"
|
|
7440
|
+
"$ref": "#/definitions/Field"
|
|
6826
7441
|
},
|
|
6827
7442
|
"type": "array"
|
|
6828
7443
|
},
|
|
6829
|
-
"
|
|
6830
|
-
"description": "
|
|
7444
|
+
"offset": {
|
|
7445
|
+
"description": "How to offset the values in a stack. `\"zero\"` (default) starts stacking at 0. `\"center\"` centers the values around zero. `\"normalize\"` computes intra-stack percentages and normalizes the values to the range of `[0, 1]`. `\"information\"` computes a layout for a sequence logo. The total height of the stack reflects the group's information content.",
|
|
7446
|
+
"enum": [
|
|
7447
|
+
"zero",
|
|
7448
|
+
"center",
|
|
7449
|
+
"normalize",
|
|
7450
|
+
"information"
|
|
7451
|
+
],
|
|
7452
|
+
"type": "string"
|
|
7453
|
+
},
|
|
7454
|
+
"sort": {
|
|
7455
|
+
"$ref": "#/definitions/CompareParams",
|
|
7456
|
+
"description": "The sort order of data in each stack."
|
|
7457
|
+
},
|
|
7458
|
+
"type": {
|
|
7459
|
+
"const": "stack",
|
|
7460
|
+
"description": "The type of the transform to be applied",
|
|
6831
7461
|
"type": "string"
|
|
6832
7462
|
}
|
|
6833
7463
|
},
|
|
6834
7464
|
"required": [
|
|
6835
|
-
"
|
|
7465
|
+
"as",
|
|
7466
|
+
"groupby",
|
|
7467
|
+
"type"
|
|
7468
|
+
],
|
|
7469
|
+
"type": "object"
|
|
7470
|
+
},
|
|
7471
|
+
"Step": {
|
|
7472
|
+
"additionalProperties": false,
|
|
7473
|
+
"properties": {
|
|
7474
|
+
"step": {
|
|
7475
|
+
"type": "number"
|
|
7476
|
+
}
|
|
7477
|
+
},
|
|
7478
|
+
"required": [
|
|
7479
|
+
"step"
|
|
6836
7480
|
],
|
|
6837
7481
|
"type": "object"
|
|
6838
7482
|
},
|
|
6839
|
-
"
|
|
7483
|
+
"StringDatumDef": {
|
|
6840
7484
|
"additionalProperties": false,
|
|
6841
7485
|
"properties": {
|
|
6842
|
-
"
|
|
7486
|
+
"band": {
|
|
7487
|
+
"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`.",
|
|
7488
|
+
"maximum": 1,
|
|
7489
|
+
"minimum": 0,
|
|
7490
|
+
"type": "number"
|
|
7491
|
+
},
|
|
7492
|
+
"contributesToScaleDomain": {
|
|
7493
|
+
"description": "Whether the field or evaluated expr should be included in the scale's domain.\n\n**Default value:** `true`",
|
|
7494
|
+
"type": "boolean"
|
|
7495
|
+
},
|
|
7496
|
+
"datum": {
|
|
6843
7497
|
"anyOf": [
|
|
6844
7498
|
{
|
|
6845
|
-
"$ref": "#/definitions/
|
|
7499
|
+
"$ref": "#/definitions/Scalar"
|
|
6846
7500
|
},
|
|
6847
7501
|
{
|
|
6848
|
-
"
|
|
7502
|
+
"$ref": "#/definitions/ExprRef"
|
|
6849
7503
|
}
|
|
6850
7504
|
],
|
|
6851
|
-
"description": "
|
|
6852
|
-
},
|
|
6853
|
-
"band": {
|
|
6854
|
-
"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`.",
|
|
6855
|
-
"maximum": 1,
|
|
6856
|
-
"minimum": 0,
|
|
6857
|
-
"type": "number"
|
|
7505
|
+
"description": "A constant value in data domain."
|
|
6858
7506
|
},
|
|
6859
|
-
"
|
|
6860
|
-
"
|
|
6861
|
-
"
|
|
7507
|
+
"format": {
|
|
7508
|
+
"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.",
|
|
7509
|
+
"type": "string"
|
|
6862
7510
|
},
|
|
6863
|
-
"
|
|
6864
|
-
"
|
|
6865
|
-
"
|
|
7511
|
+
"resolutionChannel": {
|
|
7512
|
+
"$ref": "#/definitions/ChannelWithScale",
|
|
7513
|
+
"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."
|
|
6866
7514
|
},
|
|
6867
|
-
"
|
|
6868
|
-
"
|
|
6869
|
-
|
|
7515
|
+
"scale": {
|
|
7516
|
+
"anyOf": [
|
|
7517
|
+
{
|
|
7518
|
+
"$ref": "#/definitions/Scale"
|
|
7519
|
+
},
|
|
7520
|
+
{
|
|
7521
|
+
"type": "null"
|
|
7522
|
+
}
|
|
7523
|
+
],
|
|
7524
|
+
"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."
|
|
6870
7525
|
},
|
|
6871
7526
|
"title": {
|
|
6872
7527
|
"description": "A title for the field. If `null`, the title will be removed.",
|
|
@@ -6874,114 +7529,194 @@
|
|
|
6874
7529
|
"string",
|
|
6875
7530
|
"null"
|
|
6876
7531
|
]
|
|
7532
|
+
},
|
|
7533
|
+
"type": {
|
|
7534
|
+
"$ref": "#/definitions/Type"
|
|
6877
7535
|
}
|
|
6878
7536
|
},
|
|
6879
|
-
"required": [
|
|
6880
|
-
"chrom"
|
|
6881
|
-
],
|
|
6882
7537
|
"type": "object"
|
|
6883
7538
|
},
|
|
6884
|
-
"
|
|
6885
|
-
"enum": [
|
|
6886
|
-
"x2",
|
|
6887
|
-
"y2"
|
|
6888
|
-
],
|
|
6889
|
-
"type": "string"
|
|
6890
|
-
},
|
|
6891
|
-
"SelectionFilterParams": {
|
|
7539
|
+
"StringFieldDef": {
|
|
6892
7540
|
"additionalProperties": false,
|
|
6893
7541
|
"properties": {
|
|
6894
|
-
"
|
|
6895
|
-
"description": "
|
|
6896
|
-
"type": "
|
|
7542
|
+
"field": {
|
|
7543
|
+
"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`.",
|
|
7544
|
+
"type": "string"
|
|
6897
7545
|
},
|
|
6898
|
-
"
|
|
6899
|
-
"description": "
|
|
7546
|
+
"format": {
|
|
7547
|
+
"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.",
|
|
6900
7548
|
"type": "string"
|
|
6901
7549
|
},
|
|
6902
|
-
"
|
|
6903
|
-
"
|
|
6904
|
-
"
|
|
7550
|
+
"title": {
|
|
7551
|
+
"description": "A title for the field. If `null`, the title will be removed.",
|
|
7552
|
+
"type": [
|
|
7553
|
+
"string",
|
|
7554
|
+
"null"
|
|
7555
|
+
]
|
|
7556
|
+
}
|
|
7557
|
+
},
|
|
7558
|
+
"type": "object"
|
|
7559
|
+
},
|
|
7560
|
+
"TemplateImport": {
|
|
7561
|
+
"additionalProperties": false,
|
|
7562
|
+
"properties": {
|
|
7563
|
+
"template": {
|
|
7564
|
+
"description": "Imports a specification from the current view hierarchy, searching first in the current view, then ascending through ancestors.",
|
|
6905
7565
|
"type": "string"
|
|
6906
7566
|
}
|
|
6907
7567
|
},
|
|
6908
7568
|
"required": [
|
|
6909
|
-
"
|
|
6910
|
-
"type"
|
|
7569
|
+
"template"
|
|
6911
7570
|
],
|
|
6912
7571
|
"type": "object"
|
|
6913
7572
|
},
|
|
6914
|
-
"
|
|
7573
|
+
"TextDef": {
|
|
7574
|
+
"anyOf": [
|
|
7575
|
+
{
|
|
7576
|
+
"$ref": "#/definitions/StringFieldDef"
|
|
7577
|
+
},
|
|
7578
|
+
{
|
|
7579
|
+
"$ref": "#/definitions/StringDatumDef"
|
|
7580
|
+
},
|
|
7581
|
+
{
|
|
7582
|
+
"$ref": "#/definitions/ExprDef"
|
|
7583
|
+
}
|
|
7584
|
+
]
|
|
7585
|
+
},
|
|
7586
|
+
"TextProps": {
|
|
6915
7587
|
"additionalProperties": false,
|
|
6916
7588
|
"properties": {
|
|
6917
|
-
"
|
|
6918
|
-
"
|
|
6919
|
-
"
|
|
7589
|
+
"align": {
|
|
7590
|
+
"$ref": "#/definitions/Align",
|
|
7591
|
+
"description": "The horizontal alignment of the text. One of `\"left\"`, `\"center\"`, or `\"right\"`.\n\n**Default value:** `\"left\"`"
|
|
6920
7592
|
},
|
|
6921
|
-
"
|
|
6922
|
-
"
|
|
6923
|
-
|
|
7593
|
+
"angle": {
|
|
7594
|
+
"anyOf": [
|
|
7595
|
+
{
|
|
7596
|
+
"type": "number"
|
|
7597
|
+
},
|
|
7598
|
+
{
|
|
7599
|
+
"$ref": "#/definitions/ExprRef"
|
|
7600
|
+
}
|
|
7601
|
+
],
|
|
7602
|
+
"description": "The rotation angle in degrees.\n\n**Default value:** `0`"
|
|
6924
7603
|
},
|
|
6925
|
-
"
|
|
7604
|
+
"baseline": {
|
|
7605
|
+
"$ref": "#/definitions/Baseline",
|
|
7606
|
+
"description": "The vertical alignment of the text. One of `\"top\"`, `\"middle\"`, `\"bottom\"`.\n\n**Default value:** `\"bottom\"`"
|
|
7607
|
+
},
|
|
7608
|
+
"clip": {
|
|
6926
7609
|
"anyOf": [
|
|
6927
7610
|
{
|
|
6928
|
-
"
|
|
7611
|
+
"type": "boolean"
|
|
6929
7612
|
},
|
|
6930
7613
|
{
|
|
6931
|
-
"
|
|
7614
|
+
"const": "never",
|
|
7615
|
+
"type": "string"
|
|
7616
|
+
}
|
|
7617
|
+
],
|
|
7618
|
+
"description": "If true, the mark is clipped to the UnitView's rectangle. By default, clipping is enabled for marks that have zoomable positional scales."
|
|
7619
|
+
},
|
|
7620
|
+
"color": {
|
|
7621
|
+
"anyOf": [
|
|
7622
|
+
{
|
|
7623
|
+
"type": "string"
|
|
6932
7624
|
},
|
|
6933
7625
|
{
|
|
6934
|
-
"$ref": "#/definitions/
|
|
7626
|
+
"$ref": "#/definitions/ExprRef"
|
|
7627
|
+
}
|
|
7628
|
+
]
|
|
7629
|
+
},
|
|
7630
|
+
"dx": {
|
|
7631
|
+
"description": "The horizontal offset between the text and its anchor point, in pixels. Applied after the rotation by `angle`.",
|
|
7632
|
+
"type": "number"
|
|
7633
|
+
},
|
|
7634
|
+
"dy": {
|
|
7635
|
+
"description": "The vertical offset between the text and its anchor point, in pixels. Applied after the rotation by `angle`.",
|
|
7636
|
+
"type": "number"
|
|
7637
|
+
},
|
|
7638
|
+
"fitToBand": {
|
|
7639
|
+
"anyOf": [
|
|
7640
|
+
{
|
|
7641
|
+
"type": "boolean"
|
|
7642
|
+
},
|
|
7643
|
+
{
|
|
7644
|
+
"$ref": "#/definitions/ExprRef"
|
|
6935
7645
|
}
|
|
6936
7646
|
],
|
|
6937
|
-
"description": "
|
|
6938
|
-
}
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
7647
|
+
"description": "If true, sets the secondary positional channel that allows the text to be squeezed (see the `squeeze` property). Can be used when: 1) `\"band\"`, `\"index\"`, or `\"locus\"` scale is being used and 2) only the primary positional channel is specified.\n\n**Default value:** `false`"
|
|
7648
|
+
},
|
|
7649
|
+
"flushX": {
|
|
7650
|
+
"anyOf": [
|
|
7651
|
+
{
|
|
7652
|
+
"type": "boolean"
|
|
7653
|
+
},
|
|
7654
|
+
{
|
|
7655
|
+
"$ref": "#/definitions/ExprRef"
|
|
7656
|
+
}
|
|
7657
|
+
],
|
|
7658
|
+
"description": "If true, the text is kept inside the viewport when the range of `x` and `x2` intersect the viewport."
|
|
7659
|
+
},
|
|
7660
|
+
"flushY": {
|
|
7661
|
+
"anyOf": [
|
|
7662
|
+
{
|
|
7663
|
+
"type": "boolean"
|
|
7664
|
+
},
|
|
7665
|
+
{
|
|
7666
|
+
"$ref": "#/definitions/ExprRef"
|
|
7667
|
+
}
|
|
7668
|
+
],
|
|
7669
|
+
"description": "If true, the text is kept inside the viewport when the range of `y` and `y2` intersect the viewport."
|
|
7670
|
+
},
|
|
7671
|
+
"font": {
|
|
7672
|
+
"description": "The font typeface. GenomeSpy uses [SDF](https://github.com/Chlumsky/msdfgen) versions of [Google Fonts](https://fonts.google.com/). Check their availability at the [A-Frame Fonts](https://github.com/etiennepinchon/aframe-fonts/tree/master/fonts) repository. System fonts are **not** supported.\n\n**Default value:** `\"Lato\"`",
|
|
6958
7673
|
"type": "string"
|
|
6959
7674
|
},
|
|
6960
|
-
"
|
|
6961
|
-
"$ref": "#/definitions/
|
|
6962
|
-
"description": "
|
|
6963
|
-
}
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
|
|
6973
|
-
|
|
7675
|
+
"fontStyle": {
|
|
7676
|
+
"$ref": "#/definitions/FontStyle",
|
|
7677
|
+
"description": "The font style. Valid values: `\"normal\"` and `\"italic\"`.\n\n**Default value:** `\"normal\"`"
|
|
7678
|
+
},
|
|
7679
|
+
"fontWeight": {
|
|
7680
|
+
"$ref": "#/definitions/FontWeight",
|
|
7681
|
+
"description": "The font weight. The following strings and numbers are valid values: `\"thin\"` (`100`), `\"light\"` (`300`), `\"regular\"` (`400`), `\"normal\"` (`400`), `\"medium\"` (`500`), `\"bold\"` (`700`), `\"black\"` (`900`)\n\n**Default value:** `\"regular\"`"
|
|
7682
|
+
},
|
|
7683
|
+
"logoLetters": {
|
|
7684
|
+
"anyOf": [
|
|
7685
|
+
{
|
|
7686
|
+
"type": "boolean"
|
|
7687
|
+
},
|
|
7688
|
+
{
|
|
7689
|
+
"$ref": "#/definitions/ExprRef"
|
|
7690
|
+
}
|
|
7691
|
+
],
|
|
7692
|
+
"description": "Stretch letters so that they can be used with [sequence logos](https://en.wikipedia.org/wiki/Sequence_logo), etc..."
|
|
7693
|
+
},
|
|
7694
|
+
"minBufferSize": {
|
|
7695
|
+
"description": "Minimum size for WebGL buffers (number of data items). Allows for using `bufferSubData()` to update graphics.\n\nThis property is intended for internal use.",
|
|
7696
|
+
"type": "number"
|
|
7697
|
+
},
|
|
7698
|
+
"opacity": {
|
|
7699
|
+
"anyOf": [
|
|
7700
|
+
{
|
|
7701
|
+
"type": "number"
|
|
7702
|
+
},
|
|
7703
|
+
{
|
|
7704
|
+
"$ref": "#/definitions/ExprRef"
|
|
7705
|
+
}
|
|
7706
|
+
]
|
|
7707
|
+
},
|
|
7708
|
+
"paddingX": {
|
|
6974
7709
|
"anyOf": [
|
|
6975
7710
|
{
|
|
6976
|
-
"
|
|
7711
|
+
"type": "number"
|
|
6977
7712
|
},
|
|
6978
7713
|
{
|
|
6979
7714
|
"$ref": "#/definitions/ExprRef"
|
|
6980
7715
|
}
|
|
6981
7716
|
],
|
|
6982
|
-
"description": "The
|
|
7717
|
+
"description": "The horizontal padding, in pixels, when the `x2` channel is used for ranged text.\n\n**Default value:** `0`"
|
|
6983
7718
|
},
|
|
6984
|
-
"
|
|
7719
|
+
"paddingY": {
|
|
6985
7720
|
"anyOf": [
|
|
6986
7721
|
{
|
|
6987
7722
|
"type": "number"
|
|
@@ -6990,9 +7725,9 @@
|
|
|
6990
7725
|
"$ref": "#/definitions/ExprRef"
|
|
6991
7726
|
}
|
|
6992
7727
|
],
|
|
6993
|
-
"description": "The
|
|
7728
|
+
"description": "The vertical padding, in pixels, when the `y2` channel is used for ranged text.\n\n**Default value:** `0`"
|
|
6994
7729
|
},
|
|
6995
|
-
"
|
|
7730
|
+
"size": {
|
|
6996
7731
|
"anyOf": [
|
|
6997
7732
|
{
|
|
6998
7733
|
"type": "number"
|
|
@@ -7001,202 +7736,116 @@
|
|
|
7001
7736
|
"$ref": "#/definitions/ExprRef"
|
|
7002
7737
|
}
|
|
7003
7738
|
],
|
|
7004
|
-
"description": "The
|
|
7739
|
+
"description": "The font size in pixels.\n\n**Default value:** `11`"
|
|
7005
7740
|
},
|
|
7006
|
-
"
|
|
7741
|
+
"squeeze": {
|
|
7007
7742
|
"anyOf": [
|
|
7008
7743
|
{
|
|
7009
|
-
"type": "
|
|
7744
|
+
"type": "boolean"
|
|
7010
7745
|
},
|
|
7011
7746
|
{
|
|
7012
7747
|
"$ref": "#/definitions/ExprRef"
|
|
7013
7748
|
}
|
|
7014
7749
|
],
|
|
7015
|
-
"description": "
|
|
7016
|
-
}
|
|
7017
|
-
},
|
|
7018
|
-
"required": [
|
|
7019
|
-
"start",
|
|
7020
|
-
"stop"
|
|
7021
|
-
],
|
|
7022
|
-
"type": "object"
|
|
7023
|
-
},
|
|
7024
|
-
"ShapeDef": {
|
|
7025
|
-
"$ref": "#/definitions/MarkPropDef%3C(string%7Cnull)%2CTypeForShape%3E"
|
|
7026
|
-
},
|
|
7027
|
-
"SizeDef": {
|
|
7028
|
-
"additionalProperties": false,
|
|
7029
|
-
"properties": {
|
|
7030
|
-
"grow": {
|
|
7031
|
-
"description": "Share of the remaining space",
|
|
7032
|
-
"type": "number"
|
|
7750
|
+
"description": "If the `squeeze` property is true and secondary positional channels (`x2` and/or `y2`) are used, the text is scaled to fit mark's width and/or height.\n\n**Default value:** `true`"
|
|
7033
7751
|
},
|
|
7034
|
-
"
|
|
7035
|
-
"
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
"descending"
|
|
7045
|
-
],
|
|
7046
|
-
"type": "string"
|
|
7047
|
-
},
|
|
7048
|
-
"StackParams": {
|
|
7049
|
-
"additionalProperties": false,
|
|
7050
|
-
"properties": {
|
|
7051
|
-
"as": {
|
|
7052
|
-
"description": "Fields to write the stacked values.\n\n**Default:** `[\"y0\", \"y1\"]`",
|
|
7053
|
-
"items": {
|
|
7054
|
-
"type": "string"
|
|
7055
|
-
},
|
|
7056
|
-
"type": "array"
|
|
7752
|
+
"text": {
|
|
7753
|
+
"anyOf": [
|
|
7754
|
+
{
|
|
7755
|
+
"$ref": "#/definitions/Scalar"
|
|
7756
|
+
},
|
|
7757
|
+
{
|
|
7758
|
+
"$ref": "#/definitions/ExprRef"
|
|
7759
|
+
}
|
|
7760
|
+
],
|
|
7761
|
+
"description": "The text to display. The format of numeric data can be customized by setting a [format specifier](https://github.com/d3/d3-format#locale_format) to channel definition's `format` property.\n\n**Default value:** `\"\"`"
|
|
7057
7762
|
},
|
|
7058
|
-
"
|
|
7059
|
-
"$ref": "#/definitions/
|
|
7060
|
-
"description": "
|
|
7763
|
+
"tooltip": {
|
|
7764
|
+
"$ref": "#/definitions/Tooltip",
|
|
7765
|
+
"description": "Tooltip handler. If `null`, no tooltip is shown."
|
|
7061
7766
|
},
|
|
7062
|
-
"
|
|
7063
|
-
"
|
|
7767
|
+
"type": {
|
|
7768
|
+
"const": "text",
|
|
7769
|
+
"type": "string"
|
|
7770
|
+
},
|
|
7771
|
+
"viewportEdgeFadeDistanceBottom": {
|
|
7064
7772
|
"type": "number"
|
|
7065
7773
|
},
|
|
7066
|
-
"
|
|
7067
|
-
"
|
|
7068
|
-
"description": "The field to stack. If no field is defined, a constant value of one is assumed."
|
|
7774
|
+
"viewportEdgeFadeDistanceLeft": {
|
|
7775
|
+
"type": "number"
|
|
7069
7776
|
},
|
|
7070
|
-
"
|
|
7071
|
-
"
|
|
7072
|
-
"items": {
|
|
7073
|
-
"$ref": "#/definitions/Field"
|
|
7074
|
-
},
|
|
7075
|
-
"type": "array"
|
|
7777
|
+
"viewportEdgeFadeDistanceRight": {
|
|
7778
|
+
"type": "number"
|
|
7076
7779
|
},
|
|
7077
|
-
"
|
|
7078
|
-
"
|
|
7079
|
-
"enum": [
|
|
7080
|
-
"zero",
|
|
7081
|
-
"center",
|
|
7082
|
-
"normalize",
|
|
7083
|
-
"information"
|
|
7084
|
-
],
|
|
7085
|
-
"type": "string"
|
|
7780
|
+
"viewportEdgeFadeDistanceTop": {
|
|
7781
|
+
"type": "number"
|
|
7086
7782
|
},
|
|
7087
|
-
"
|
|
7088
|
-
"
|
|
7089
|
-
"description": "The sort order of data in each stack."
|
|
7783
|
+
"viewportEdgeFadeWidthBottom": {
|
|
7784
|
+
"type": "number"
|
|
7090
7785
|
},
|
|
7091
|
-
"
|
|
7092
|
-
"const": "stack",
|
|
7093
|
-
"description": "The type of the transform to be applied",
|
|
7094
|
-
"type": "string"
|
|
7095
|
-
}
|
|
7096
|
-
},
|
|
7097
|
-
"required": [
|
|
7098
|
-
"as",
|
|
7099
|
-
"groupby",
|
|
7100
|
-
"type"
|
|
7101
|
-
],
|
|
7102
|
-
"type": "object"
|
|
7103
|
-
},
|
|
7104
|
-
"Step": {
|
|
7105
|
-
"additionalProperties": false,
|
|
7106
|
-
"properties": {
|
|
7107
|
-
"step": {
|
|
7786
|
+
"viewportEdgeFadeWidthLeft": {
|
|
7108
7787
|
"type": "number"
|
|
7109
|
-
}
|
|
7110
|
-
|
|
7111
|
-
"required": [
|
|
7112
|
-
"step"
|
|
7113
|
-
],
|
|
7114
|
-
"type": "object"
|
|
7115
|
-
},
|
|
7116
|
-
"StringDatumDef": {
|
|
7117
|
-
"additionalProperties": false,
|
|
7118
|
-
"properties": {
|
|
7119
|
-
"band": {
|
|
7120
|
-
"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`.",
|
|
7121
|
-
"maximum": 1,
|
|
7122
|
-
"minimum": 0,
|
|
7788
|
+
},
|
|
7789
|
+
"viewportEdgeFadeWidthRight": {
|
|
7123
7790
|
"type": "number"
|
|
7124
7791
|
},
|
|
7125
|
-
"
|
|
7792
|
+
"viewportEdgeFadeWidthTop": {
|
|
7793
|
+
"type": "number"
|
|
7794
|
+
},
|
|
7795
|
+
"x": {
|
|
7126
7796
|
"anyOf": [
|
|
7127
7797
|
{
|
|
7128
|
-
"
|
|
7798
|
+
"type": "number"
|
|
7129
7799
|
},
|
|
7130
7800
|
{
|
|
7131
7801
|
"$ref": "#/definitions/ExprRef"
|
|
7132
7802
|
}
|
|
7133
|
-
]
|
|
7134
|
-
"description": "A constant value in data domain."
|
|
7135
|
-
},
|
|
7136
|
-
"format": {
|
|
7137
|
-
"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.",
|
|
7138
|
-
"type": "string"
|
|
7803
|
+
]
|
|
7139
7804
|
},
|
|
7140
|
-
"
|
|
7141
|
-
"
|
|
7142
|
-
|
|
7143
|
-
|
|
7144
|
-
|
|
7805
|
+
"x2": {
|
|
7806
|
+
"anyOf": [
|
|
7807
|
+
{
|
|
7808
|
+
"type": "number"
|
|
7809
|
+
},
|
|
7810
|
+
{
|
|
7811
|
+
"$ref": "#/definitions/ExprRef"
|
|
7812
|
+
}
|
|
7145
7813
|
]
|
|
7146
7814
|
},
|
|
7147
|
-
"
|
|
7148
|
-
"
|
|
7149
|
-
|
|
7150
|
-
},
|
|
7151
|
-
"type": "object"
|
|
7152
|
-
},
|
|
7153
|
-
"StringFieldDef": {
|
|
7154
|
-
"additionalProperties": false,
|
|
7155
|
-
"properties": {
|
|
7156
|
-
"field": {
|
|
7157
|
-
"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`.",
|
|
7158
|
-
"type": "string"
|
|
7815
|
+
"xOffset": {
|
|
7816
|
+
"description": "Offsets of the `x` and `x2` coordinates in pixels. The offset is applied after the viewport scaling and translation.\n\n**Default value:** `0`",
|
|
7817
|
+
"type": "number"
|
|
7159
7818
|
},
|
|
7160
|
-
"
|
|
7161
|
-
"
|
|
7162
|
-
|
|
7819
|
+
"y": {
|
|
7820
|
+
"anyOf": [
|
|
7821
|
+
{
|
|
7822
|
+
"type": "number"
|
|
7823
|
+
},
|
|
7824
|
+
{
|
|
7825
|
+
"$ref": "#/definitions/ExprRef"
|
|
7826
|
+
}
|
|
7827
|
+
]
|
|
7163
7828
|
},
|
|
7164
|
-
"
|
|
7165
|
-
"
|
|
7166
|
-
|
|
7167
|
-
|
|
7168
|
-
|
|
7829
|
+
"y2": {
|
|
7830
|
+
"anyOf": [
|
|
7831
|
+
{
|
|
7832
|
+
"type": "number"
|
|
7833
|
+
},
|
|
7834
|
+
{
|
|
7835
|
+
"$ref": "#/definitions/ExprRef"
|
|
7836
|
+
}
|
|
7169
7837
|
]
|
|
7170
|
-
}
|
|
7171
|
-
|
|
7172
|
-
|
|
7173
|
-
|
|
7174
|
-
"TemplateImport": {
|
|
7175
|
-
"additionalProperties": false,
|
|
7176
|
-
"properties": {
|
|
7177
|
-
"template": {
|
|
7178
|
-
"description": "Imports a specification from the current view hierarchy, searching first in the current view, then ascending through ancestors.",
|
|
7179
|
-
"type": "string"
|
|
7838
|
+
},
|
|
7839
|
+
"yOffset": {
|
|
7840
|
+
"description": "Offsets of the `y` and `y2` coordinates in pixels. The offset is applied after the viewport scaling and translation.\n\n**Default value:** `0`",
|
|
7841
|
+
"type": "number"
|
|
7180
7842
|
}
|
|
7181
7843
|
},
|
|
7182
7844
|
"required": [
|
|
7183
|
-
"
|
|
7845
|
+
"type"
|
|
7184
7846
|
],
|
|
7185
7847
|
"type": "object"
|
|
7186
7848
|
},
|
|
7187
|
-
"TextDef": {
|
|
7188
|
-
"anyOf": [
|
|
7189
|
-
{
|
|
7190
|
-
"$ref": "#/definitions/StringFieldDef"
|
|
7191
|
-
},
|
|
7192
|
-
{
|
|
7193
|
-
"$ref": "#/definitions/StringDatumDef"
|
|
7194
|
-
},
|
|
7195
|
-
{
|
|
7196
|
-
"$ref": "#/definitions/ExprDef"
|
|
7197
|
-
}
|
|
7198
|
-
]
|
|
7199
|
-
},
|
|
7200
7849
|
"Title": {
|
|
7201
7850
|
"additionalProperties": false,
|
|
7202
7851
|
"properties": {
|
|
@@ -7487,7 +8136,7 @@
|
|
|
7487
8136
|
"$ref": "#/definitions/MarkType"
|
|
7488
8137
|
},
|
|
7489
8138
|
{
|
|
7490
|
-
"$ref": "#/definitions/
|
|
8139
|
+
"$ref": "#/definitions/MarkProps"
|
|
7491
8140
|
}
|
|
7492
8141
|
]
|
|
7493
8142
|
},
|
|
@@ -7903,6 +8552,12 @@
|
|
|
7903
8552
|
},
|
|
7904
8553
|
{
|
|
7905
8554
|
"$ref": "#/definitions/Conditional%3CValueDef%3C(string%7Cnull%7CExprRef)%3E%3E"
|
|
8555
|
+
},
|
|
8556
|
+
{
|
|
8557
|
+
"items": {
|
|
8558
|
+
"$ref": "#/definitions/Conditional%3CValueDef%3C(string%7Cnull%7CExprRef)%3E%3E"
|
|
8559
|
+
},
|
|
8560
|
+
"type": "array"
|
|
7906
8561
|
}
|
|
7907
8562
|
],
|
|
7908
8563
|
"description": "A field definition or one or more value definition(s) with a parameter predicate."
|
|
@@ -7945,6 +8600,12 @@
|
|
|
7945
8600
|
},
|
|
7946
8601
|
{
|
|
7947
8602
|
"$ref": "#/definitions/Conditional%3CValueDef%3C(number%7CExprRef)%3E%3E"
|
|
8603
|
+
},
|
|
8604
|
+
{
|
|
8605
|
+
"items": {
|
|
8606
|
+
"$ref": "#/definitions/Conditional%3CValueDef%3C(number%7CExprRef)%3E%3E"
|
|
8607
|
+
},
|
|
8608
|
+
"type": "array"
|
|
7948
8609
|
}
|
|
7949
8610
|
],
|
|
7950
8611
|
"description": "A field definition or one or more value definition(s) with a parameter predicate."
|
|
@@ -8046,6 +8707,7 @@
|
|
|
8046
8707
|
"description": "The stroke opacity. Value between [0, 1]."
|
|
8047
8708
|
},
|
|
8048
8709
|
"strokeWidth": {
|
|
8710
|
+
"description": "The stroke width in pixels.",
|
|
8049
8711
|
"type": "number"
|
|
8050
8712
|
}
|
|
8051
8713
|
},
|