@genome-spy/core 0.14.1 → 0.14.2
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/genome-spy-schema.json +3876 -0
- package/dist/index.js +1 -1
- package/package.json +4 -4
- package/src/genomeSpy.js +1 -1
- package/src/index.js +4 -8
- package/src/options.d.ts +9 -3
|
@@ -0,0 +1,3876 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ViewSpec",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"AggregateParams": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"groupby": {
|
|
9
|
+
"description": "Which fields to use for grouping. Missing `groupby` results in a single group that includes all the data items.",
|
|
10
|
+
"items": {
|
|
11
|
+
"$ref": "#/definitions/Field"
|
|
12
|
+
},
|
|
13
|
+
"type": "array"
|
|
14
|
+
},
|
|
15
|
+
"type": {
|
|
16
|
+
"const": "aggregate",
|
|
17
|
+
"description": "The type of the transform to be applied",
|
|
18
|
+
"type": "string"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": [
|
|
22
|
+
"type"
|
|
23
|
+
],
|
|
24
|
+
"type": "object"
|
|
25
|
+
},
|
|
26
|
+
"Align": {
|
|
27
|
+
"enum": [
|
|
28
|
+
"left",
|
|
29
|
+
"center",
|
|
30
|
+
"right"
|
|
31
|
+
],
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"Axis": {
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"properties": {
|
|
37
|
+
"domain": {
|
|
38
|
+
"description": "A boolean flag indicating if the domain (the axis baseline) should be included as part of the axis.\n\n__Default value:__ `true`",
|
|
39
|
+
"type": "boolean"
|
|
40
|
+
},
|
|
41
|
+
"domainCap": {
|
|
42
|
+
"description": "The stroke cap for the domain line's ending style. One of `\"butt\"`, `\"round\"` or `\"square\"`.\n\n__Default value:__ `\"butt\"`",
|
|
43
|
+
"enum": [
|
|
44
|
+
"butt",
|
|
45
|
+
"round",
|
|
46
|
+
"square"
|
|
47
|
+
],
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"domainColor": {
|
|
51
|
+
"description": "Color of axis domain line.\n\n__Default value:__ `\"gray\"`.",
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"domainDash": {
|
|
55
|
+
"description": "An array of alternating [stroke, space] lengths for dashed domain lines.",
|
|
56
|
+
"items": {
|
|
57
|
+
"type": "number"
|
|
58
|
+
},
|
|
59
|
+
"type": "array"
|
|
60
|
+
},
|
|
61
|
+
"domainDashOffset": {
|
|
62
|
+
"description": "The pixel offset at which to start drawing with the domain dash array.",
|
|
63
|
+
"type": "number"
|
|
64
|
+
},
|
|
65
|
+
"domainWidth": {
|
|
66
|
+
"description": "Stroke width of axis domain line\n\n__Default value:__ `1`",
|
|
67
|
+
"type": "number"
|
|
68
|
+
},
|
|
69
|
+
"format": {
|
|
70
|
+
"description": "The format specifier pattern for axis labels. Must be a legal [d3-format](https://github.com/d3/d3-format#locale_format) specifier.",
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
"labelAlign": {
|
|
74
|
+
"$ref": "#/definitions/Align",
|
|
75
|
+
"description": "Horizontal text alignment of axis tick labels, overriding the default setting for the current axis orientation."
|
|
76
|
+
},
|
|
77
|
+
"labelAngle": {
|
|
78
|
+
"description": "The rotation angle of the axis labels.\n\n__Default value:__ `-90` for nominal and ordinal fields; `0` otherwise.",
|
|
79
|
+
"maximum": 360,
|
|
80
|
+
"minimum": -360,
|
|
81
|
+
"type": "number"
|
|
82
|
+
},
|
|
83
|
+
"labelBaseline": {
|
|
84
|
+
"$ref": "#/definitions/Baseline",
|
|
85
|
+
"description": "Vertical text baseline of axis tick labels, overriding the default setting for the current axis orientation. One of `\"alphabetic\"` (default), `\"top\"`, `\"middle\"`, `\"bottom\"`."
|
|
86
|
+
},
|
|
87
|
+
"labelColor": {
|
|
88
|
+
"description": "The color of the tick label, can be in hex color code or regular color name.",
|
|
89
|
+
"type": "string"
|
|
90
|
+
},
|
|
91
|
+
"labelFont": {
|
|
92
|
+
"description": "The font of the tick label.",
|
|
93
|
+
"type": "string"
|
|
94
|
+
},
|
|
95
|
+
"labelFontSize": {
|
|
96
|
+
"description": "The font size of the label, in pixels.",
|
|
97
|
+
"minimum": 0,
|
|
98
|
+
"type": "number"
|
|
99
|
+
},
|
|
100
|
+
"labelFontStyle": {
|
|
101
|
+
"description": "Font style of the title.",
|
|
102
|
+
"type": "string"
|
|
103
|
+
},
|
|
104
|
+
"labelFontWeight": {
|
|
105
|
+
"description": "Font weight of axis tick labels.",
|
|
106
|
+
"type": "string"
|
|
107
|
+
},
|
|
108
|
+
"labelLimit": {
|
|
109
|
+
"description": "Maximum allowed pixel width of axis tick labels.\n\n__Default value:__ `180`",
|
|
110
|
+
"type": "number"
|
|
111
|
+
},
|
|
112
|
+
"labelPadding": {
|
|
113
|
+
"description": "The padding, in pixels, between axis and text labels.\n\n__Default value:__ `2`",
|
|
114
|
+
"type": "number"
|
|
115
|
+
},
|
|
116
|
+
"labels": {
|
|
117
|
+
"description": "A boolean flag indicating if labels should be included as part of the axis.\n\n__Default value:__ `true`.",
|
|
118
|
+
"type": "boolean"
|
|
119
|
+
},
|
|
120
|
+
"maxExtent": {
|
|
121
|
+
"description": "The maximum extent in pixels that axis ticks and labels should use. This determines a maximum offset value for axis titles.\n\n__Default value:__ `undefined`.",
|
|
122
|
+
"type": "number"
|
|
123
|
+
},
|
|
124
|
+
"minExtent": {
|
|
125
|
+
"description": "The minimum extent in pixels that axis ticks and labels should use. This determines a minimum offset value for axis titles.\n\n__Default value:__ `30` for y-axis; `undefined` for x-axis.",
|
|
126
|
+
"type": "number"
|
|
127
|
+
},
|
|
128
|
+
"offset": {
|
|
129
|
+
"description": "The orthogonal offset in pixels by which to displace the axis from its position along the edge of the chart.",
|
|
130
|
+
"type": "number"
|
|
131
|
+
},
|
|
132
|
+
"orient": {
|
|
133
|
+
"$ref": "#/definitions/AxisOrient",
|
|
134
|
+
"description": "The orientation of the axis. One of `\"top\"`, `\"bottom\"`, `\"left\"` or `\"right\"`. The orientation can be used to further specialize the axis type (e.g., a y axis oriented for the right edge of the chart).\n\n__Default value:__ `\"bottom\"` for x-axes and `\"left\"` for y-axes."
|
|
135
|
+
},
|
|
136
|
+
"tickCap": {
|
|
137
|
+
"description": "The stroke cap for the tick lines' ending style. One of `\"butt\"`, `\"round\"` or `\"square\"`.\n\n__Default value:__ `\"butt\"`",
|
|
138
|
+
"enum": [
|
|
139
|
+
"butt",
|
|
140
|
+
"round",
|
|
141
|
+
"square"
|
|
142
|
+
],
|
|
143
|
+
"type": "string"
|
|
144
|
+
},
|
|
145
|
+
"tickColor": {
|
|
146
|
+
"description": "The color of the axis's tick.\n\n__Default value:__ `\"gray\"`",
|
|
147
|
+
"type": "string"
|
|
148
|
+
},
|
|
149
|
+
"tickCount": {
|
|
150
|
+
"description": "A desired number of ticks, for axes visualizing quantitative scales. The resulting number may be different so that values are \"nice\" (multiples of `2`, `5`, `10`) and lie within the underlying scale's range.",
|
|
151
|
+
"minimum": 0,
|
|
152
|
+
"type": "number"
|
|
153
|
+
},
|
|
154
|
+
"tickDash": {
|
|
155
|
+
"description": "An array of alternating [stroke, space] lengths for dashed tick mark lines.",
|
|
156
|
+
"items": {
|
|
157
|
+
"type": "number"
|
|
158
|
+
},
|
|
159
|
+
"type": "array"
|
|
160
|
+
},
|
|
161
|
+
"tickDashOffset": {
|
|
162
|
+
"description": "The pixel offset at which to start drawing with the tick mark dash array.",
|
|
163
|
+
"type": "number"
|
|
164
|
+
},
|
|
165
|
+
"tickMinStep": {
|
|
166
|
+
"description": "The minimum desired step between axis ticks, in terms of scale domain values. For example, a value of `1` indicates that ticks should not be less than 1 unit apart. If `tickMinStep` is specified, the `tickCount` value will be adjusted, if necessary, to enforce the minimum step value.",
|
|
167
|
+
"type": "number"
|
|
168
|
+
},
|
|
169
|
+
"tickSize": {
|
|
170
|
+
"description": "The size in pixels of axis ticks.\n\n__Default value:__ `5`",
|
|
171
|
+
"minimum": 0,
|
|
172
|
+
"type": "number"
|
|
173
|
+
},
|
|
174
|
+
"tickWidth": {
|
|
175
|
+
"description": "The width, in pixels, of ticks.\n\n__Default value:__ `1`",
|
|
176
|
+
"minimum": 0,
|
|
177
|
+
"type": "number"
|
|
178
|
+
},
|
|
179
|
+
"ticks": {
|
|
180
|
+
"description": "Boolean value that determines whether the axis should include ticks.\n\n__Default value:__ `true`",
|
|
181
|
+
"type": "boolean"
|
|
182
|
+
},
|
|
183
|
+
"title": {
|
|
184
|
+
"description": "A title for the axis (none by default).",
|
|
185
|
+
"type": "string"
|
|
186
|
+
},
|
|
187
|
+
"titleColor": {
|
|
188
|
+
"description": "Color of the title, can be in hex color code or regular color name.",
|
|
189
|
+
"type": "string"
|
|
190
|
+
},
|
|
191
|
+
"titleFont": {
|
|
192
|
+
"description": "Font of the title. (e.g., `\"Helvetica Neue\"`).",
|
|
193
|
+
"type": "string"
|
|
194
|
+
},
|
|
195
|
+
"titleFontSize": {
|
|
196
|
+
"description": "Font size of the title.",
|
|
197
|
+
"minimum": 0,
|
|
198
|
+
"type": "number"
|
|
199
|
+
},
|
|
200
|
+
"titleFontStyle": {
|
|
201
|
+
"description": "Font style of the title.",
|
|
202
|
+
"type": "string"
|
|
203
|
+
},
|
|
204
|
+
"titleFontWeight": {
|
|
205
|
+
"description": "Font weight of the title. This can be either a string (e.g `\"bold\"`, `\"normal\"`) or a number (`100`, `200`, `300`, ..., `900` where `\"normal\"` = `400` and `\"bold\"` = `700`).",
|
|
206
|
+
"type": "string"
|
|
207
|
+
},
|
|
208
|
+
"titleOpacity": {
|
|
209
|
+
"description": "Opacity of the axis title.",
|
|
210
|
+
"type": "number"
|
|
211
|
+
},
|
|
212
|
+
"titlePadding": {
|
|
213
|
+
"description": "The padding, in pixels, between title and axis.",
|
|
214
|
+
"type": "number"
|
|
215
|
+
},
|
|
216
|
+
"values": {
|
|
217
|
+
"description": "Explicitly set the visible axis tick and label values.",
|
|
218
|
+
"items": {},
|
|
219
|
+
"type": "array"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"type": "object"
|
|
223
|
+
},
|
|
224
|
+
"AxisOrient": {
|
|
225
|
+
"enum": [
|
|
226
|
+
"top",
|
|
227
|
+
"bottom",
|
|
228
|
+
"left",
|
|
229
|
+
"right"
|
|
230
|
+
],
|
|
231
|
+
"type": "string"
|
|
232
|
+
},
|
|
233
|
+
"Baseline": {
|
|
234
|
+
"enum": [
|
|
235
|
+
"top",
|
|
236
|
+
"middle",
|
|
237
|
+
"bottom",
|
|
238
|
+
"alphabetic"
|
|
239
|
+
],
|
|
240
|
+
"type": "string"
|
|
241
|
+
},
|
|
242
|
+
"Channel": {
|
|
243
|
+
"anyOf": [
|
|
244
|
+
{
|
|
245
|
+
"$ref": "#/definitions/PositionalChannel"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"$ref": "#/definitions/SecondaryPositionalChannel"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"const": "color",
|
|
252
|
+
"type": "string"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"const": "fill",
|
|
256
|
+
"type": "string"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"const": "stroke",
|
|
260
|
+
"type": "string"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"const": "opacity",
|
|
264
|
+
"type": "string"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"const": "fillOpacity",
|
|
268
|
+
"type": "string"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"const": "strokeOpacity",
|
|
272
|
+
"type": "string"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"const": "strokeWidth",
|
|
276
|
+
"type": "string"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"const": "size",
|
|
280
|
+
"type": "string"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"const": "shape",
|
|
284
|
+
"type": "string"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"const": "text",
|
|
288
|
+
"type": "string"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"const": "size2",
|
|
292
|
+
"type": "string"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"const": "color2",
|
|
296
|
+
"type": "string"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"const": "angle",
|
|
300
|
+
"type": "string"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"const": "sample",
|
|
304
|
+
"type": "string"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"const": "uniqueId",
|
|
308
|
+
"type": "string"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"const": "search",
|
|
312
|
+
"type": "string"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"const": "facetIndex",
|
|
316
|
+
"type": "string"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"const": "semanticScore",
|
|
320
|
+
"type": "string"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"const": "dx",
|
|
324
|
+
"type": "string"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"const": "dy",
|
|
328
|
+
"type": "string"
|
|
329
|
+
}
|
|
330
|
+
]
|
|
331
|
+
},
|
|
332
|
+
"ChannelDef": {
|
|
333
|
+
"anyOf": [
|
|
334
|
+
{
|
|
335
|
+
"$ref": "#/definitions/FieldDef"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"$ref": "#/definitions/DatumDef"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"$ref": "#/definitions/ValueDef"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"$ref": "#/definitions/ExprDef"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"$ref": "#/definitions/ChromPosDef"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"$ref": "#/definitions/FacetFieldDef"
|
|
351
|
+
}
|
|
352
|
+
]
|
|
353
|
+
},
|
|
354
|
+
"ChromPosDef": {
|
|
355
|
+
"additionalProperties": false,
|
|
356
|
+
"properties": {
|
|
357
|
+
"axis": {
|
|
358
|
+
"anyOf": [
|
|
359
|
+
{
|
|
360
|
+
"$ref": "#/definitions/Axis"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"type": "null"
|
|
364
|
+
}
|
|
365
|
+
]
|
|
366
|
+
},
|
|
367
|
+
"band": {
|
|
368
|
+
"description": "Offset within a band of a band scale, [0, 1]\n\nTODO: rename to bandPosition: https://github.com/vega/vega-lite/pull/7190",
|
|
369
|
+
"type": "number"
|
|
370
|
+
},
|
|
371
|
+
"chrom": {
|
|
372
|
+
"$ref": "#/definitions/FieldName",
|
|
373
|
+
"description": "The field having the chromosome or contig."
|
|
374
|
+
},
|
|
375
|
+
"format": {
|
|
376
|
+
"type": "string"
|
|
377
|
+
},
|
|
378
|
+
"fp64": {
|
|
379
|
+
"description": "Use emulated 64 bit floating points to increase precision of scales computed on the GPU. By default, 32 bit floats are used.",
|
|
380
|
+
"type": "boolean"
|
|
381
|
+
},
|
|
382
|
+
"offset": {
|
|
383
|
+
"description": "An offset or offsets that allow for adjusting the numbering base. The offset is subtracted from the positions.\n\nGenomeSpy uses internally zero-based indexing with half-open intervals. UCSC-based formats (BED, etc.) generally use this scheme. However, for example, VCF files use one-based indexing and must be adjusted by setting the offset to `1`.\n\n**Default:** `0`",
|
|
384
|
+
"type": "number"
|
|
385
|
+
},
|
|
386
|
+
"pos": {
|
|
387
|
+
"$ref": "#/definitions/FieldName",
|
|
388
|
+
"description": "The field having an intra-chromosomal position."
|
|
389
|
+
},
|
|
390
|
+
"resolutionChannel": {
|
|
391
|
+
"$ref": "#/definitions/Channel",
|
|
392
|
+
"description": "Use an alternative channel for scale resolution.\n\nThis is mainly for internal use and allows using `color` channel to resolve `fill` and `stroke` channels under certain circumstances."
|
|
393
|
+
},
|
|
394
|
+
"scale": {
|
|
395
|
+
"$ref": "#/definitions/Scale"
|
|
396
|
+
},
|
|
397
|
+
"title": {
|
|
398
|
+
"type": [
|
|
399
|
+
"string",
|
|
400
|
+
"null"
|
|
401
|
+
]
|
|
402
|
+
},
|
|
403
|
+
"type": {
|
|
404
|
+
"const": "locus",
|
|
405
|
+
"type": "string"
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
"required": [
|
|
409
|
+
"chrom",
|
|
410
|
+
"type"
|
|
411
|
+
],
|
|
412
|
+
"type": "object"
|
|
413
|
+
},
|
|
414
|
+
"ChromosomalLocus": {
|
|
415
|
+
"additionalProperties": false,
|
|
416
|
+
"properties": {
|
|
417
|
+
"chrom": {
|
|
418
|
+
"description": "The name of the chromosome. For example: `\"chr1\"`, `\"CHR1\"`, or `\"1\"`.",
|
|
419
|
+
"type": "string"
|
|
420
|
+
},
|
|
421
|
+
"pos": {
|
|
422
|
+
"description": "The zero-based position inside the chromosome or contig.",
|
|
423
|
+
"type": "number"
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
"required": [
|
|
427
|
+
"chrom"
|
|
428
|
+
],
|
|
429
|
+
"type": "object"
|
|
430
|
+
},
|
|
431
|
+
"CollectParams": {
|
|
432
|
+
"additionalProperties": false,
|
|
433
|
+
"properties": {
|
|
434
|
+
"groupby": {
|
|
435
|
+
"description": "Arranges the data into consecutive batches based on the groups. This is mainly intended for internal use so that faceted data can be handled as batches.",
|
|
436
|
+
"items": {
|
|
437
|
+
"$ref": "#/definitions/Field"
|
|
438
|
+
},
|
|
439
|
+
"type": "array"
|
|
440
|
+
},
|
|
441
|
+
"sort": {
|
|
442
|
+
"$ref": "#/definitions/CompareParams",
|
|
443
|
+
"description": "The sort order."
|
|
444
|
+
},
|
|
445
|
+
"type": {
|
|
446
|
+
"const": "collect",
|
|
447
|
+
"description": "The type of the transform to be applied",
|
|
448
|
+
"type": "string"
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
"required": [
|
|
452
|
+
"type"
|
|
453
|
+
],
|
|
454
|
+
"type": "object"
|
|
455
|
+
},
|
|
456
|
+
"CompareParams": {
|
|
457
|
+
"additionalProperties": false,
|
|
458
|
+
"properties": {
|
|
459
|
+
"field": {
|
|
460
|
+
"anyOf": [
|
|
461
|
+
{
|
|
462
|
+
"items": {
|
|
463
|
+
"$ref": "#/definitions/Field"
|
|
464
|
+
},
|
|
465
|
+
"type": "array"
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"$ref": "#/definitions/Field"
|
|
469
|
+
}
|
|
470
|
+
],
|
|
471
|
+
"description": "The field(s) to sort by"
|
|
472
|
+
},
|
|
473
|
+
"order": {
|
|
474
|
+
"anyOf": [
|
|
475
|
+
{
|
|
476
|
+
"items": {
|
|
477
|
+
"$ref": "#/definitions/SortOrder"
|
|
478
|
+
},
|
|
479
|
+
"type": "array"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"$ref": "#/definitions/SortOrder"
|
|
483
|
+
}
|
|
484
|
+
],
|
|
485
|
+
"description": "The order(s) to use: `\"ascending\"` (default), `\"descending\"`."
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
"required": [
|
|
489
|
+
"field"
|
|
490
|
+
],
|
|
491
|
+
"type": "object"
|
|
492
|
+
},
|
|
493
|
+
"ComplexDomain": {
|
|
494
|
+
"description": "A complex domain that needs to be converted into a scalar domain before it is assigned to a scale.",
|
|
495
|
+
"items": {
|
|
496
|
+
"$ref": "#/definitions/ChromosomalLocus"
|
|
497
|
+
},
|
|
498
|
+
"type": "array"
|
|
499
|
+
},
|
|
500
|
+
"ConcatSpec": {
|
|
501
|
+
"additionalProperties": false,
|
|
502
|
+
"properties": {
|
|
503
|
+
"baseUrl": {
|
|
504
|
+
"type": "string"
|
|
505
|
+
},
|
|
506
|
+
"concat": {
|
|
507
|
+
"items": {
|
|
508
|
+
"anyOf": [
|
|
509
|
+
{
|
|
510
|
+
"$ref": "#/definitions/ViewSpec"
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"$ref": "#/definitions/ImportSpec"
|
|
514
|
+
}
|
|
515
|
+
]
|
|
516
|
+
},
|
|
517
|
+
"type": "array"
|
|
518
|
+
},
|
|
519
|
+
"configurableVisibility": {
|
|
520
|
+
"description": "Is the visibility configurable interactively from the App. Configurability requires that the view has an explicitly specified name that is *unique* in within the view specification.\n\n**Default:** `false` for children of `layer`, `true` for others.",
|
|
521
|
+
"type": "boolean"
|
|
522
|
+
},
|
|
523
|
+
"data": {
|
|
524
|
+
"$ref": "#/definitions/Data"
|
|
525
|
+
},
|
|
526
|
+
"description": {
|
|
527
|
+
"anyOf": [
|
|
528
|
+
{
|
|
529
|
+
"type": "string"
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"items": {
|
|
533
|
+
"type": "string"
|
|
534
|
+
},
|
|
535
|
+
"type": "array"
|
|
536
|
+
}
|
|
537
|
+
],
|
|
538
|
+
"description": "A description of the view. Multiple lines can be provided as an array."
|
|
539
|
+
},
|
|
540
|
+
"encoding": {
|
|
541
|
+
"$ref": "#/definitions/Encoding"
|
|
542
|
+
},
|
|
543
|
+
"height": {
|
|
544
|
+
"anyOf": [
|
|
545
|
+
{
|
|
546
|
+
"$ref": "#/definitions/SizeDef"
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"type": "number"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"$ref": "#/definitions/Step"
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"const": "container",
|
|
556
|
+
"type": "string"
|
|
557
|
+
}
|
|
558
|
+
]
|
|
559
|
+
},
|
|
560
|
+
"name": {
|
|
561
|
+
"type": "string"
|
|
562
|
+
},
|
|
563
|
+
"opacity": {
|
|
564
|
+
"$ref": "#/definitions/ViewOpacityDef",
|
|
565
|
+
"description": "Opacity of the view and all its children.\n\n**Default:* `1.0`"
|
|
566
|
+
},
|
|
567
|
+
"padding": {
|
|
568
|
+
"$ref": "#/definitions/PaddingConfig",
|
|
569
|
+
"description": "Padding in pixels.\n\n**Default:* `0`"
|
|
570
|
+
},
|
|
571
|
+
"resolve": {
|
|
572
|
+
"additionalProperties": false,
|
|
573
|
+
"properties": {
|
|
574
|
+
"axis": {
|
|
575
|
+
"additionalProperties": {
|
|
576
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
577
|
+
},
|
|
578
|
+
"properties": {
|
|
579
|
+
"default": {
|
|
580
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
"type": "object"
|
|
584
|
+
},
|
|
585
|
+
"scale": {
|
|
586
|
+
"additionalProperties": {
|
|
587
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
588
|
+
},
|
|
589
|
+
"properties": {
|
|
590
|
+
"default": {
|
|
591
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
592
|
+
}
|
|
593
|
+
},
|
|
594
|
+
"type": "object"
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
"type": "object"
|
|
598
|
+
},
|
|
599
|
+
"spacing": {
|
|
600
|
+
"type": "number"
|
|
601
|
+
},
|
|
602
|
+
"title": {
|
|
603
|
+
"type": "string"
|
|
604
|
+
},
|
|
605
|
+
"transform": {
|
|
606
|
+
"items": {
|
|
607
|
+
"$ref": "#/definitions/TransformParams"
|
|
608
|
+
},
|
|
609
|
+
"type": "array"
|
|
610
|
+
},
|
|
611
|
+
"visible": {
|
|
612
|
+
"description": "Visibility of the view. An invisible view is removed from the layout and not rendered.\n\n**Default:** `true`",
|
|
613
|
+
"type": "boolean"
|
|
614
|
+
},
|
|
615
|
+
"width": {
|
|
616
|
+
"anyOf": [
|
|
617
|
+
{
|
|
618
|
+
"$ref": "#/definitions/SizeDef"
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"type": "number"
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"$ref": "#/definitions/Step"
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
"const": "container",
|
|
628
|
+
"type": "string"
|
|
629
|
+
}
|
|
630
|
+
]
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
"required": [
|
|
634
|
+
"concat"
|
|
635
|
+
],
|
|
636
|
+
"type": "object"
|
|
637
|
+
},
|
|
638
|
+
"CoverageParams": {
|
|
639
|
+
"additionalProperties": false,
|
|
640
|
+
"properties": {
|
|
641
|
+
"as": {
|
|
642
|
+
"description": "The output field for the computed coverage.",
|
|
643
|
+
"type": "string"
|
|
644
|
+
},
|
|
645
|
+
"asChrom": {
|
|
646
|
+
"description": "The output field for the chromosome.\n\n**Default:** Same as `chrom`",
|
|
647
|
+
"type": "string"
|
|
648
|
+
},
|
|
649
|
+
"asEnd": {
|
|
650
|
+
"description": "The output field for the end coordinate.\n\n**Default:** Same as `end`",
|
|
651
|
+
"type": "string"
|
|
652
|
+
},
|
|
653
|
+
"asStart": {
|
|
654
|
+
"description": "The output field for the start coordinate.\n\n**Default:** Same as `start`",
|
|
655
|
+
"type": "string"
|
|
656
|
+
},
|
|
657
|
+
"chrom": {
|
|
658
|
+
"$ref": "#/definitions/Field",
|
|
659
|
+
"description": "An optional chromosome field that is passed through. TODO: groupby"
|
|
660
|
+
},
|
|
661
|
+
"end": {
|
|
662
|
+
"$ref": "#/definitions/Field",
|
|
663
|
+
"description": "The field representing the end coordinate of the segment (exclusive)."
|
|
664
|
+
},
|
|
665
|
+
"start": {
|
|
666
|
+
"$ref": "#/definitions/Field",
|
|
667
|
+
"description": "The field representing the start coordinate of the segment (inclusive)."
|
|
668
|
+
},
|
|
669
|
+
"type": {
|
|
670
|
+
"const": "coverage",
|
|
671
|
+
"description": "The type of the transform to be applied",
|
|
672
|
+
"type": "string"
|
|
673
|
+
},
|
|
674
|
+
"weight": {
|
|
675
|
+
"$ref": "#/definitions/Field",
|
|
676
|
+
"description": "A field representing an optional weight for the segment. Can be used with copy ratios, for example."
|
|
677
|
+
}
|
|
678
|
+
},
|
|
679
|
+
"required": [
|
|
680
|
+
"end",
|
|
681
|
+
"start",
|
|
682
|
+
"type"
|
|
683
|
+
],
|
|
684
|
+
"type": "object"
|
|
685
|
+
},
|
|
686
|
+
"CsvDataFormat": {
|
|
687
|
+
"additionalProperties": false,
|
|
688
|
+
"properties": {
|
|
689
|
+
"parse": {
|
|
690
|
+
"anyOf": [
|
|
691
|
+
{
|
|
692
|
+
"$ref": "#/definitions/Parse"
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"type": "null"
|
|
696
|
+
}
|
|
697
|
+
],
|
|
698
|
+
"description": "If set to `null`, disable type inference based on the spec and only use type inference based on the data. Alternatively, a parsing directive object can be provided for explicit data types. Each property of the object corresponds to a field name, and the value to the desired data type (one of `\"number\"`, `\"boolean\"`, `\"date\"`, or null (do not parse the field)). For example, `\"parse\": {\"modified_on\": \"date\"}` parses the `modified_on` field in each input record a Date value.\n\nFor `\"date\"`, we parse data based using Javascript's [`Date.parse()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse). For Specific date formats can be provided (e.g., `{foo: \"date:'%m%d%Y'\"}`), using the [d3-time-format syntax](https://github.com/d3/d3-time-format#locale_format). UTC date format parsing is supported similarly (e.g., `{foo: \"utc:'%m%d%Y'\"}`). See more about [UTC time](https://vega.github.io/vega-lite/docs/timeunit.html#utc)"
|
|
699
|
+
},
|
|
700
|
+
"type": {
|
|
701
|
+
"description": "Type of input data: `\"json\"`, `\"csv\"`, `\"tsv\"`, `\"dsv\"`.\n\n__Default value:__ The default format type is determined by the extension of the file URL. If no extension is detected, `\"json\"` will be used by default.",
|
|
702
|
+
"enum": [
|
|
703
|
+
"csv",
|
|
704
|
+
"tsv"
|
|
705
|
+
],
|
|
706
|
+
"type": "string"
|
|
707
|
+
}
|
|
708
|
+
},
|
|
709
|
+
"type": "object"
|
|
710
|
+
},
|
|
711
|
+
"Data": {
|
|
712
|
+
"anyOf": [
|
|
713
|
+
{
|
|
714
|
+
"$ref": "#/definitions/DataSource"
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"$ref": "#/definitions/Generator"
|
|
718
|
+
}
|
|
719
|
+
]
|
|
720
|
+
},
|
|
721
|
+
"DataFormat": {
|
|
722
|
+
"anyOf": [
|
|
723
|
+
{
|
|
724
|
+
"$ref": "#/definitions/CsvDataFormat"
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"$ref": "#/definitions/DsvDataFormat"
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"$ref": "#/definitions/JsonDataFormat"
|
|
731
|
+
}
|
|
732
|
+
]
|
|
733
|
+
},
|
|
734
|
+
"DataSource": {
|
|
735
|
+
"anyOf": [
|
|
736
|
+
{
|
|
737
|
+
"$ref": "#/definitions/UrlData"
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"$ref": "#/definitions/InlineData"
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
"$ref": "#/definitions/NamedData"
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
"$ref": "#/definitions/DynamicCallbackData"
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"$ref": "#/definitions/DynamicData"
|
|
750
|
+
}
|
|
751
|
+
]
|
|
752
|
+
},
|
|
753
|
+
"DatumDef": {
|
|
754
|
+
"additionalProperties": false,
|
|
755
|
+
"properties": {
|
|
756
|
+
"axis": {
|
|
757
|
+
"anyOf": [
|
|
758
|
+
{
|
|
759
|
+
"$ref": "#/definitions/Axis"
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"type": "null"
|
|
763
|
+
}
|
|
764
|
+
]
|
|
765
|
+
},
|
|
766
|
+
"band": {
|
|
767
|
+
"description": "Offset within a band of a band scale, [0, 1]\n\nTODO: rename to bandPosition: https://github.com/vega/vega-lite/pull/7190",
|
|
768
|
+
"type": "number"
|
|
769
|
+
},
|
|
770
|
+
"datum": {
|
|
771
|
+
"$ref": "#/definitions/Scalar",
|
|
772
|
+
"description": "A constant value on the data domain"
|
|
773
|
+
},
|
|
774
|
+
"format": {
|
|
775
|
+
"type": "string"
|
|
776
|
+
},
|
|
777
|
+
"fp64": {
|
|
778
|
+
"description": "Use emulated 64 bit floating points to increase precision of scales computed on the GPU. By default, 32 bit floats are used.",
|
|
779
|
+
"type": "boolean"
|
|
780
|
+
},
|
|
781
|
+
"resolutionChannel": {
|
|
782
|
+
"$ref": "#/definitions/Channel",
|
|
783
|
+
"description": "Use an alternative channel for scale resolution.\n\nThis is mainly for internal use and allows using `color` channel to resolve `fill` and `stroke` channels under certain circumstances."
|
|
784
|
+
},
|
|
785
|
+
"scale": {
|
|
786
|
+
"$ref": "#/definitions/Scale"
|
|
787
|
+
},
|
|
788
|
+
"title": {
|
|
789
|
+
"type": [
|
|
790
|
+
"string",
|
|
791
|
+
"null"
|
|
792
|
+
]
|
|
793
|
+
},
|
|
794
|
+
"type": {
|
|
795
|
+
"type": "string"
|
|
796
|
+
}
|
|
797
|
+
},
|
|
798
|
+
"required": [
|
|
799
|
+
"datum",
|
|
800
|
+
"type"
|
|
801
|
+
],
|
|
802
|
+
"type": "object"
|
|
803
|
+
},
|
|
804
|
+
"DsvDataFormat": {
|
|
805
|
+
"additionalProperties": false,
|
|
806
|
+
"properties": {
|
|
807
|
+
"delimiter": {
|
|
808
|
+
"description": "The delimiter between records. The delimiter must be a single character (i.e., a single 16-bit code unit); so, ASCII delimiters are fine, but emoji delimiters are not.",
|
|
809
|
+
"maxLength": 1,
|
|
810
|
+
"minLength": 1,
|
|
811
|
+
"type": "string"
|
|
812
|
+
},
|
|
813
|
+
"parse": {
|
|
814
|
+
"anyOf": [
|
|
815
|
+
{
|
|
816
|
+
"$ref": "#/definitions/Parse"
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
"type": "null"
|
|
820
|
+
}
|
|
821
|
+
],
|
|
822
|
+
"description": "If set to `null`, disable type inference based on the spec and only use type inference based on the data. Alternatively, a parsing directive object can be provided for explicit data types. Each property of the object corresponds to a field name, and the value to the desired data type (one of `\"number\"`, `\"boolean\"`, `\"date\"`, or null (do not parse the field)). For example, `\"parse\": {\"modified_on\": \"date\"}` parses the `modified_on` field in each input record a Date value.\n\nFor `\"date\"`, we parse data based using Javascript's [`Date.parse()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse). For Specific date formats can be provided (e.g., `{foo: \"date:'%m%d%Y'\"}`), using the [d3-time-format syntax](https://github.com/d3/d3-time-format#locale_format). UTC date format parsing is supported similarly (e.g., `{foo: \"utc:'%m%d%Y'\"}`). See more about [UTC time](https://vega.github.io/vega-lite/docs/timeunit.html#utc)"
|
|
823
|
+
},
|
|
824
|
+
"type": {
|
|
825
|
+
"const": "dsv",
|
|
826
|
+
"description": "Type of input data: `\"json\"`, `\"csv\"`, `\"tsv\"`, `\"dsv\"`.\n\n__Default value:__ The default format type is determined by the extension of the file URL. If no extension is detected, `\"json\"` will be used by default.",
|
|
827
|
+
"type": "string"
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
"required": [
|
|
831
|
+
"delimiter"
|
|
832
|
+
],
|
|
833
|
+
"type": "object"
|
|
834
|
+
},
|
|
835
|
+
"DynamicCallbackData": {
|
|
836
|
+
"additionalProperties": false,
|
|
837
|
+
"properties": {
|
|
838
|
+
"dynamicCallbackSource": {
|
|
839
|
+
"description": "The View class has `getDynamicData()` methods that provides the data. This is intended for internal use.",
|
|
840
|
+
"type": "boolean"
|
|
841
|
+
},
|
|
842
|
+
"format": {
|
|
843
|
+
"$ref": "#/definitions/DataFormat",
|
|
844
|
+
"description": "An object that specifies the format for parsing the data."
|
|
845
|
+
},
|
|
846
|
+
"name": {
|
|
847
|
+
"description": "Provide a placeholder name and bind data at runtime.",
|
|
848
|
+
"type": "string"
|
|
849
|
+
}
|
|
850
|
+
},
|
|
851
|
+
"required": [
|
|
852
|
+
"dynamicCallbackSource"
|
|
853
|
+
],
|
|
854
|
+
"type": "object"
|
|
855
|
+
},
|
|
856
|
+
"DynamicData": {
|
|
857
|
+
"additionalProperties": false,
|
|
858
|
+
"properties": {
|
|
859
|
+
"dynamicSource": {
|
|
860
|
+
"description": "For internal use.",
|
|
861
|
+
"type": "boolean"
|
|
862
|
+
},
|
|
863
|
+
"format": {
|
|
864
|
+
"$ref": "#/definitions/DataFormat",
|
|
865
|
+
"description": "An object that specifies the format for parsing the data."
|
|
866
|
+
},
|
|
867
|
+
"name": {
|
|
868
|
+
"description": "Provide a placeholder name and bind data at runtime.",
|
|
869
|
+
"type": "string"
|
|
870
|
+
}
|
|
871
|
+
},
|
|
872
|
+
"required": [
|
|
873
|
+
"dynamicSource"
|
|
874
|
+
],
|
|
875
|
+
"type": "object"
|
|
876
|
+
},
|
|
877
|
+
"DynamicOpacity": {
|
|
878
|
+
"additionalProperties": false,
|
|
879
|
+
"description": "DynamicOpacity specifies a zoom-dependent behavior for view opacity. The opacity is interpolated between the specified stops.",
|
|
880
|
+
"properties": {
|
|
881
|
+
"channel": {
|
|
882
|
+
"$ref": "#/definitions/PositionalChannel"
|
|
883
|
+
},
|
|
884
|
+
"unitsPerPixel": {
|
|
885
|
+
"description": "Stops expressed as units (base pairs, for example) per pixel.",
|
|
886
|
+
"items": {
|
|
887
|
+
"type": "number"
|
|
888
|
+
},
|
|
889
|
+
"type": "array"
|
|
890
|
+
},
|
|
891
|
+
"values": {
|
|
892
|
+
"description": "Opacity values that match the given stops.",
|
|
893
|
+
"items": {
|
|
894
|
+
"type": "number"
|
|
895
|
+
},
|
|
896
|
+
"type": "array"
|
|
897
|
+
}
|
|
898
|
+
},
|
|
899
|
+
"required": [
|
|
900
|
+
"unitsPerPixel",
|
|
901
|
+
"values"
|
|
902
|
+
],
|
|
903
|
+
"type": "object"
|
|
904
|
+
},
|
|
905
|
+
"Encoding": {
|
|
906
|
+
"additionalProperties": {
|
|
907
|
+
"anyOf": [
|
|
908
|
+
{
|
|
909
|
+
"$ref": "#/definitions/ChannelDef"
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
"type": "null"
|
|
913
|
+
}
|
|
914
|
+
]
|
|
915
|
+
},
|
|
916
|
+
"properties": {
|
|
917
|
+
"angle": {
|
|
918
|
+
"anyOf": [
|
|
919
|
+
{
|
|
920
|
+
"$ref": "#/definitions/ChannelDef"
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
"type": "null"
|
|
924
|
+
}
|
|
925
|
+
]
|
|
926
|
+
},
|
|
927
|
+
"color": {
|
|
928
|
+
"anyOf": [
|
|
929
|
+
{
|
|
930
|
+
"$ref": "#/definitions/ChannelDef"
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
"type": "null"
|
|
934
|
+
}
|
|
935
|
+
]
|
|
936
|
+
},
|
|
937
|
+
"color2": {
|
|
938
|
+
"anyOf": [
|
|
939
|
+
{
|
|
940
|
+
"$ref": "#/definitions/ChannelDef"
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
"type": "null"
|
|
944
|
+
}
|
|
945
|
+
]
|
|
946
|
+
},
|
|
947
|
+
"dx": {
|
|
948
|
+
"anyOf": [
|
|
949
|
+
{
|
|
950
|
+
"$ref": "#/definitions/ChannelDef"
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
"type": "null"
|
|
954
|
+
}
|
|
955
|
+
]
|
|
956
|
+
},
|
|
957
|
+
"dy": {
|
|
958
|
+
"anyOf": [
|
|
959
|
+
{
|
|
960
|
+
"$ref": "#/definitions/ChannelDef"
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
"type": "null"
|
|
964
|
+
}
|
|
965
|
+
]
|
|
966
|
+
},
|
|
967
|
+
"facetIndex": {
|
|
968
|
+
"anyOf": [
|
|
969
|
+
{
|
|
970
|
+
"$ref": "#/definitions/ChannelDef"
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
"type": "null"
|
|
974
|
+
}
|
|
975
|
+
]
|
|
976
|
+
},
|
|
977
|
+
"fill": {
|
|
978
|
+
"anyOf": [
|
|
979
|
+
{
|
|
980
|
+
"$ref": "#/definitions/ChannelDef"
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
"type": "null"
|
|
984
|
+
}
|
|
985
|
+
]
|
|
986
|
+
},
|
|
987
|
+
"fillOpacity": {
|
|
988
|
+
"anyOf": [
|
|
989
|
+
{
|
|
990
|
+
"$ref": "#/definitions/ChannelDef"
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
"type": "null"
|
|
994
|
+
}
|
|
995
|
+
]
|
|
996
|
+
},
|
|
997
|
+
"opacity": {
|
|
998
|
+
"anyOf": [
|
|
999
|
+
{
|
|
1000
|
+
"$ref": "#/definitions/ChannelDef"
|
|
1001
|
+
},
|
|
1002
|
+
{
|
|
1003
|
+
"type": "null"
|
|
1004
|
+
}
|
|
1005
|
+
]
|
|
1006
|
+
},
|
|
1007
|
+
"sample": {
|
|
1008
|
+
"anyOf": [
|
|
1009
|
+
{
|
|
1010
|
+
"$ref": "#/definitions/ChannelDef"
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"type": "null"
|
|
1014
|
+
}
|
|
1015
|
+
]
|
|
1016
|
+
},
|
|
1017
|
+
"search": {
|
|
1018
|
+
"anyOf": [
|
|
1019
|
+
{
|
|
1020
|
+
"$ref": "#/definitions/ChannelDef"
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
"type": "null"
|
|
1024
|
+
}
|
|
1025
|
+
]
|
|
1026
|
+
},
|
|
1027
|
+
"semanticScore": {
|
|
1028
|
+
"anyOf": [
|
|
1029
|
+
{
|
|
1030
|
+
"$ref": "#/definitions/ChannelDef"
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
"type": "null"
|
|
1034
|
+
}
|
|
1035
|
+
]
|
|
1036
|
+
},
|
|
1037
|
+
"shape": {
|
|
1038
|
+
"anyOf": [
|
|
1039
|
+
{
|
|
1040
|
+
"$ref": "#/definitions/ChannelDef"
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
"type": "null"
|
|
1044
|
+
}
|
|
1045
|
+
]
|
|
1046
|
+
},
|
|
1047
|
+
"size": {
|
|
1048
|
+
"anyOf": [
|
|
1049
|
+
{
|
|
1050
|
+
"$ref": "#/definitions/ChannelDef"
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
"type": "null"
|
|
1054
|
+
}
|
|
1055
|
+
]
|
|
1056
|
+
},
|
|
1057
|
+
"size2": {
|
|
1058
|
+
"anyOf": [
|
|
1059
|
+
{
|
|
1060
|
+
"$ref": "#/definitions/ChannelDef"
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
"type": "null"
|
|
1064
|
+
}
|
|
1065
|
+
]
|
|
1066
|
+
},
|
|
1067
|
+
"stroke": {
|
|
1068
|
+
"anyOf": [
|
|
1069
|
+
{
|
|
1070
|
+
"$ref": "#/definitions/ChannelDef"
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
"type": "null"
|
|
1074
|
+
}
|
|
1075
|
+
]
|
|
1076
|
+
},
|
|
1077
|
+
"strokeOpacity": {
|
|
1078
|
+
"anyOf": [
|
|
1079
|
+
{
|
|
1080
|
+
"$ref": "#/definitions/ChannelDef"
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
"type": "null"
|
|
1084
|
+
}
|
|
1085
|
+
]
|
|
1086
|
+
},
|
|
1087
|
+
"strokeWidth": {
|
|
1088
|
+
"anyOf": [
|
|
1089
|
+
{
|
|
1090
|
+
"$ref": "#/definitions/ChannelDef"
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
"type": "null"
|
|
1094
|
+
}
|
|
1095
|
+
]
|
|
1096
|
+
},
|
|
1097
|
+
"text": {
|
|
1098
|
+
"anyOf": [
|
|
1099
|
+
{
|
|
1100
|
+
"$ref": "#/definitions/ChannelDef"
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
"type": "null"
|
|
1104
|
+
}
|
|
1105
|
+
]
|
|
1106
|
+
},
|
|
1107
|
+
"uniqueId": {
|
|
1108
|
+
"anyOf": [
|
|
1109
|
+
{
|
|
1110
|
+
"$ref": "#/definitions/ChannelDef"
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
"type": "null"
|
|
1114
|
+
}
|
|
1115
|
+
]
|
|
1116
|
+
}
|
|
1117
|
+
},
|
|
1118
|
+
"type": "object"
|
|
1119
|
+
},
|
|
1120
|
+
"ExprDef": {
|
|
1121
|
+
"additionalProperties": false,
|
|
1122
|
+
"properties": {
|
|
1123
|
+
"axis": {
|
|
1124
|
+
"anyOf": [
|
|
1125
|
+
{
|
|
1126
|
+
"$ref": "#/definitions/Axis"
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
"type": "null"
|
|
1130
|
+
}
|
|
1131
|
+
]
|
|
1132
|
+
},
|
|
1133
|
+
"band": {
|
|
1134
|
+
"description": "Offset within a band of a band scale, [0, 1]\n\nTODO: rename to bandPosition: https://github.com/vega/vega-lite/pull/7190",
|
|
1135
|
+
"type": "number"
|
|
1136
|
+
},
|
|
1137
|
+
"expr": {
|
|
1138
|
+
"description": "An expression. Properties of the data can be accessed through the `datum` object.",
|
|
1139
|
+
"type": "string"
|
|
1140
|
+
},
|
|
1141
|
+
"format": {
|
|
1142
|
+
"type": "string"
|
|
1143
|
+
},
|
|
1144
|
+
"fp64": {
|
|
1145
|
+
"description": "Use emulated 64 bit floating points to increase precision of scales computed on the GPU. By default, 32 bit floats are used.",
|
|
1146
|
+
"type": "boolean"
|
|
1147
|
+
},
|
|
1148
|
+
"resolutionChannel": {
|
|
1149
|
+
"$ref": "#/definitions/Channel",
|
|
1150
|
+
"description": "Use an alternative channel for scale resolution.\n\nThis is mainly for internal use and allows using `color` channel to resolve `fill` and `stroke` channels under certain circumstances."
|
|
1151
|
+
},
|
|
1152
|
+
"scale": {
|
|
1153
|
+
"$ref": "#/definitions/Scale"
|
|
1154
|
+
},
|
|
1155
|
+
"title": {
|
|
1156
|
+
"type": [
|
|
1157
|
+
"string",
|
|
1158
|
+
"null"
|
|
1159
|
+
]
|
|
1160
|
+
},
|
|
1161
|
+
"type": {
|
|
1162
|
+
"type": "string"
|
|
1163
|
+
}
|
|
1164
|
+
},
|
|
1165
|
+
"required": [
|
|
1166
|
+
"expr",
|
|
1167
|
+
"type"
|
|
1168
|
+
],
|
|
1169
|
+
"type": "object"
|
|
1170
|
+
},
|
|
1171
|
+
"FacetFieldDef": {
|
|
1172
|
+
"additionalProperties": false,
|
|
1173
|
+
"properties": {
|
|
1174
|
+
"field": {
|
|
1175
|
+
"$ref": "#/definitions/FieldName"
|
|
1176
|
+
},
|
|
1177
|
+
"spacing": {
|
|
1178
|
+
"type": "number"
|
|
1179
|
+
},
|
|
1180
|
+
"title": {
|
|
1181
|
+
"type": [
|
|
1182
|
+
"string",
|
|
1183
|
+
"null"
|
|
1184
|
+
]
|
|
1185
|
+
}
|
|
1186
|
+
},
|
|
1187
|
+
"required": [
|
|
1188
|
+
"field"
|
|
1189
|
+
],
|
|
1190
|
+
"type": "object"
|
|
1191
|
+
},
|
|
1192
|
+
"FacetMapping": {
|
|
1193
|
+
"additionalProperties": false,
|
|
1194
|
+
"properties": {
|
|
1195
|
+
"column": {
|
|
1196
|
+
"$ref": "#/definitions/FacetFieldDef"
|
|
1197
|
+
},
|
|
1198
|
+
"row": {
|
|
1199
|
+
"$ref": "#/definitions/FacetFieldDef"
|
|
1200
|
+
}
|
|
1201
|
+
},
|
|
1202
|
+
"type": "object"
|
|
1203
|
+
},
|
|
1204
|
+
"FacetSpec": {
|
|
1205
|
+
"additionalProperties": false,
|
|
1206
|
+
"properties": {
|
|
1207
|
+
"baseUrl": {
|
|
1208
|
+
"type": "string"
|
|
1209
|
+
},
|
|
1210
|
+
"columns": {
|
|
1211
|
+
"type": "number"
|
|
1212
|
+
},
|
|
1213
|
+
"configurableVisibility": {
|
|
1214
|
+
"description": "Is the visibility configurable interactively from the App. Configurability requires that the view has an explicitly specified name that is *unique* in within the view specification.\n\n**Default:** `false` for children of `layer`, `true` for others.",
|
|
1215
|
+
"type": "boolean"
|
|
1216
|
+
},
|
|
1217
|
+
"data": {
|
|
1218
|
+
"$ref": "#/definitions/Data"
|
|
1219
|
+
},
|
|
1220
|
+
"description": {
|
|
1221
|
+
"anyOf": [
|
|
1222
|
+
{
|
|
1223
|
+
"type": "string"
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
"items": {
|
|
1227
|
+
"type": "string"
|
|
1228
|
+
},
|
|
1229
|
+
"type": "array"
|
|
1230
|
+
}
|
|
1231
|
+
],
|
|
1232
|
+
"description": "A description of the view. Multiple lines can be provided as an array."
|
|
1233
|
+
},
|
|
1234
|
+
"encoding": {
|
|
1235
|
+
"$ref": "#/definitions/Encoding"
|
|
1236
|
+
},
|
|
1237
|
+
"facet": {
|
|
1238
|
+
"anyOf": [
|
|
1239
|
+
{
|
|
1240
|
+
"$ref": "#/definitions/FacetFieldDef"
|
|
1241
|
+
},
|
|
1242
|
+
{
|
|
1243
|
+
"$ref": "#/definitions/FacetMapping"
|
|
1244
|
+
}
|
|
1245
|
+
]
|
|
1246
|
+
},
|
|
1247
|
+
"height": {
|
|
1248
|
+
"anyOf": [
|
|
1249
|
+
{
|
|
1250
|
+
"$ref": "#/definitions/SizeDef"
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
"type": "number"
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
"$ref": "#/definitions/Step"
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
"const": "container",
|
|
1260
|
+
"type": "string"
|
|
1261
|
+
}
|
|
1262
|
+
]
|
|
1263
|
+
},
|
|
1264
|
+
"name": {
|
|
1265
|
+
"type": "string"
|
|
1266
|
+
},
|
|
1267
|
+
"opacity": {
|
|
1268
|
+
"$ref": "#/definitions/ViewOpacityDef",
|
|
1269
|
+
"description": "Opacity of the view and all its children.\n\n**Default:* `1.0`"
|
|
1270
|
+
},
|
|
1271
|
+
"padding": {
|
|
1272
|
+
"$ref": "#/definitions/PaddingConfig",
|
|
1273
|
+
"description": "Padding in pixels.\n\n**Default:* `0`"
|
|
1274
|
+
},
|
|
1275
|
+
"resolve": {
|
|
1276
|
+
"additionalProperties": false,
|
|
1277
|
+
"properties": {
|
|
1278
|
+
"axis": {
|
|
1279
|
+
"additionalProperties": {
|
|
1280
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
1281
|
+
},
|
|
1282
|
+
"properties": {
|
|
1283
|
+
"default": {
|
|
1284
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
1285
|
+
}
|
|
1286
|
+
},
|
|
1287
|
+
"type": "object"
|
|
1288
|
+
},
|
|
1289
|
+
"scale": {
|
|
1290
|
+
"additionalProperties": {
|
|
1291
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
1292
|
+
},
|
|
1293
|
+
"properties": {
|
|
1294
|
+
"default": {
|
|
1295
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
1296
|
+
}
|
|
1297
|
+
},
|
|
1298
|
+
"type": "object"
|
|
1299
|
+
}
|
|
1300
|
+
},
|
|
1301
|
+
"type": "object"
|
|
1302
|
+
},
|
|
1303
|
+
"spacing": {
|
|
1304
|
+
"type": "number"
|
|
1305
|
+
},
|
|
1306
|
+
"spec": {
|
|
1307
|
+
"anyOf": [
|
|
1308
|
+
{
|
|
1309
|
+
"$ref": "#/definitions/LayerSpec"
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
"$ref": "#/definitions/UnitSpec"
|
|
1313
|
+
}
|
|
1314
|
+
]
|
|
1315
|
+
},
|
|
1316
|
+
"title": {
|
|
1317
|
+
"type": "string"
|
|
1318
|
+
},
|
|
1319
|
+
"transform": {
|
|
1320
|
+
"items": {
|
|
1321
|
+
"$ref": "#/definitions/TransformParams"
|
|
1322
|
+
},
|
|
1323
|
+
"type": "array"
|
|
1324
|
+
},
|
|
1325
|
+
"visible": {
|
|
1326
|
+
"description": "Visibility of the view. An invisible view is removed from the layout and not rendered.\n\n**Default:** `true`",
|
|
1327
|
+
"type": "boolean"
|
|
1328
|
+
},
|
|
1329
|
+
"width": {
|
|
1330
|
+
"anyOf": [
|
|
1331
|
+
{
|
|
1332
|
+
"$ref": "#/definitions/SizeDef"
|
|
1333
|
+
},
|
|
1334
|
+
{
|
|
1335
|
+
"type": "number"
|
|
1336
|
+
},
|
|
1337
|
+
{
|
|
1338
|
+
"$ref": "#/definitions/Step"
|
|
1339
|
+
},
|
|
1340
|
+
{
|
|
1341
|
+
"const": "container",
|
|
1342
|
+
"type": "string"
|
|
1343
|
+
}
|
|
1344
|
+
]
|
|
1345
|
+
}
|
|
1346
|
+
},
|
|
1347
|
+
"required": [
|
|
1348
|
+
"facet",
|
|
1349
|
+
"spec"
|
|
1350
|
+
],
|
|
1351
|
+
"type": "object"
|
|
1352
|
+
},
|
|
1353
|
+
"Field": {
|
|
1354
|
+
"description": "The name of the field or a JavaScript expression for accessing nested properties. Dots and brackets in the field name must be escaped.",
|
|
1355
|
+
"type": "string"
|
|
1356
|
+
},
|
|
1357
|
+
"FieldDef": {
|
|
1358
|
+
"additionalProperties": false,
|
|
1359
|
+
"properties": {
|
|
1360
|
+
"axis": {
|
|
1361
|
+
"anyOf": [
|
|
1362
|
+
{
|
|
1363
|
+
"$ref": "#/definitions/Axis"
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
"type": "null"
|
|
1367
|
+
}
|
|
1368
|
+
]
|
|
1369
|
+
},
|
|
1370
|
+
"band": {
|
|
1371
|
+
"description": "Offset within a band of a band scale, [0, 1]\n\nTODO: rename to bandPosition: https://github.com/vega/vega-lite/pull/7190",
|
|
1372
|
+
"type": "number"
|
|
1373
|
+
},
|
|
1374
|
+
"field": {
|
|
1375
|
+
"$ref": "#/definitions/FieldName"
|
|
1376
|
+
},
|
|
1377
|
+
"format": {
|
|
1378
|
+
"type": "string"
|
|
1379
|
+
},
|
|
1380
|
+
"fp64": {
|
|
1381
|
+
"description": "Use emulated 64 bit floating points to increase precision of scales computed on the GPU. By default, 32 bit floats are used.",
|
|
1382
|
+
"type": "boolean"
|
|
1383
|
+
},
|
|
1384
|
+
"resolutionChannel": {
|
|
1385
|
+
"$ref": "#/definitions/Channel",
|
|
1386
|
+
"description": "Use an alternative channel for scale resolution.\n\nThis is mainly for internal use and allows using `color` channel to resolve `fill` and `stroke` channels under certain circumstances."
|
|
1387
|
+
},
|
|
1388
|
+
"scale": {
|
|
1389
|
+
"$ref": "#/definitions/Scale"
|
|
1390
|
+
},
|
|
1391
|
+
"title": {
|
|
1392
|
+
"type": [
|
|
1393
|
+
"string",
|
|
1394
|
+
"null"
|
|
1395
|
+
]
|
|
1396
|
+
},
|
|
1397
|
+
"type": {
|
|
1398
|
+
"type": "string"
|
|
1399
|
+
}
|
|
1400
|
+
},
|
|
1401
|
+
"required": [
|
|
1402
|
+
"field",
|
|
1403
|
+
"type"
|
|
1404
|
+
],
|
|
1405
|
+
"type": "object"
|
|
1406
|
+
},
|
|
1407
|
+
"FieldName": {
|
|
1408
|
+
"type": "string"
|
|
1409
|
+
},
|
|
1410
|
+
"FilterParams": {
|
|
1411
|
+
"additionalProperties": false,
|
|
1412
|
+
"properties": {
|
|
1413
|
+
"expr": {
|
|
1414
|
+
"description": "An expression string. The data object is removed if the expression evaluates to false.",
|
|
1415
|
+
"type": "string"
|
|
1416
|
+
},
|
|
1417
|
+
"type": {
|
|
1418
|
+
"const": "filter",
|
|
1419
|
+
"description": "The type of the transform to be applied",
|
|
1420
|
+
"type": "string"
|
|
1421
|
+
}
|
|
1422
|
+
},
|
|
1423
|
+
"required": [
|
|
1424
|
+
"expr",
|
|
1425
|
+
"type"
|
|
1426
|
+
],
|
|
1427
|
+
"type": "object"
|
|
1428
|
+
},
|
|
1429
|
+
"FilterScoredLabelsParams": {
|
|
1430
|
+
"additionalProperties": false,
|
|
1431
|
+
"properties": {
|
|
1432
|
+
"channel": {
|
|
1433
|
+
"description": "**Default:** `\"x\"`",
|
|
1434
|
+
"enum": [
|
|
1435
|
+
"x",
|
|
1436
|
+
"y"
|
|
1437
|
+
],
|
|
1438
|
+
"type": "string"
|
|
1439
|
+
},
|
|
1440
|
+
"lane": {
|
|
1441
|
+
"$ref": "#/definitions/Field",
|
|
1442
|
+
"description": "An optional field representing element's lane, e.g., if transcripts are shown using a piled up layout."
|
|
1443
|
+
},
|
|
1444
|
+
"padding": {
|
|
1445
|
+
"description": "Padding (in pixels) around the element.\n\n**Default:** `0`",
|
|
1446
|
+
"type": "number"
|
|
1447
|
+
},
|
|
1448
|
+
"pos": {
|
|
1449
|
+
"$ref": "#/definitions/Field",
|
|
1450
|
+
"description": "The field representing element's position on the domain."
|
|
1451
|
+
},
|
|
1452
|
+
"score": {
|
|
1453
|
+
"$ref": "#/definitions/Field",
|
|
1454
|
+
"description": "The field representing the score used for prioritization."
|
|
1455
|
+
},
|
|
1456
|
+
"type": {
|
|
1457
|
+
"const": "filterScoredLabels",
|
|
1458
|
+
"description": "The type of the transform to be applied",
|
|
1459
|
+
"type": "string"
|
|
1460
|
+
},
|
|
1461
|
+
"width": {
|
|
1462
|
+
"$ref": "#/definitions/Field",
|
|
1463
|
+
"description": "The field representing element's width in pixels"
|
|
1464
|
+
}
|
|
1465
|
+
},
|
|
1466
|
+
"required": [
|
|
1467
|
+
"pos",
|
|
1468
|
+
"score",
|
|
1469
|
+
"type",
|
|
1470
|
+
"width"
|
|
1471
|
+
],
|
|
1472
|
+
"type": "object"
|
|
1473
|
+
},
|
|
1474
|
+
"FlattenCompressedExonsParams": {
|
|
1475
|
+
"additionalProperties": false,
|
|
1476
|
+
"properties": {
|
|
1477
|
+
"as": {
|
|
1478
|
+
"description": "Field names for the flattened exons.\n\n**Default:** `[\"exonStart\", \"exonEnd\"]`",
|
|
1479
|
+
"items": {
|
|
1480
|
+
"type": "string"
|
|
1481
|
+
},
|
|
1482
|
+
"maxItems": 2,
|
|
1483
|
+
"minItems": 2,
|
|
1484
|
+
"type": "array"
|
|
1485
|
+
},
|
|
1486
|
+
"exons": {
|
|
1487
|
+
"$ref": "#/definitions/Field",
|
|
1488
|
+
"description": "The field containing the exons.\n\n**Default:** `\"exons\"`"
|
|
1489
|
+
},
|
|
1490
|
+
"start": {
|
|
1491
|
+
"$ref": "#/definitions/Field",
|
|
1492
|
+
"description": "Start coordinate of the gene body.\n\n**Default:** `\"start\"`"
|
|
1493
|
+
},
|
|
1494
|
+
"type": {
|
|
1495
|
+
"const": "flattenCompressedExons",
|
|
1496
|
+
"description": "The type of the transform to be applied",
|
|
1497
|
+
"type": "string"
|
|
1498
|
+
}
|
|
1499
|
+
},
|
|
1500
|
+
"required": [
|
|
1501
|
+
"type"
|
|
1502
|
+
],
|
|
1503
|
+
"type": "object"
|
|
1504
|
+
},
|
|
1505
|
+
"FlattenDelimitedParams": {
|
|
1506
|
+
"additionalProperties": false,
|
|
1507
|
+
"properties": {
|
|
1508
|
+
"as": {
|
|
1509
|
+
"anyOf": [
|
|
1510
|
+
{
|
|
1511
|
+
"items": {
|
|
1512
|
+
"type": "string"
|
|
1513
|
+
},
|
|
1514
|
+
"type": "array"
|
|
1515
|
+
},
|
|
1516
|
+
{
|
|
1517
|
+
"type": "string"
|
|
1518
|
+
}
|
|
1519
|
+
],
|
|
1520
|
+
"description": "The output field name(s) for the flattened field.\n\n**Default:** the input fields."
|
|
1521
|
+
},
|
|
1522
|
+
"field": {
|
|
1523
|
+
"anyOf": [
|
|
1524
|
+
{
|
|
1525
|
+
"items": {
|
|
1526
|
+
"$ref": "#/definitions/Field"
|
|
1527
|
+
},
|
|
1528
|
+
"type": "array"
|
|
1529
|
+
},
|
|
1530
|
+
{
|
|
1531
|
+
"$ref": "#/definitions/Field"
|
|
1532
|
+
}
|
|
1533
|
+
],
|
|
1534
|
+
"description": "The field(s) to split and flatten"
|
|
1535
|
+
},
|
|
1536
|
+
"separator": {
|
|
1537
|
+
"anyOf": [
|
|
1538
|
+
{
|
|
1539
|
+
"items": {
|
|
1540
|
+
"type": "string"
|
|
1541
|
+
},
|
|
1542
|
+
"type": "array"
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
"type": "string"
|
|
1546
|
+
}
|
|
1547
|
+
],
|
|
1548
|
+
"description": "Separator(s) used on the field(s) TODO: Rename to delimiter"
|
|
1549
|
+
},
|
|
1550
|
+
"type": {
|
|
1551
|
+
"const": "flattenDelimited",
|
|
1552
|
+
"description": "The type of the transform to be applied",
|
|
1553
|
+
"type": "string"
|
|
1554
|
+
}
|
|
1555
|
+
},
|
|
1556
|
+
"required": [
|
|
1557
|
+
"field",
|
|
1558
|
+
"separator",
|
|
1559
|
+
"type"
|
|
1560
|
+
],
|
|
1561
|
+
"type": "object"
|
|
1562
|
+
},
|
|
1563
|
+
"FlattenSequenceParams": {
|
|
1564
|
+
"additionalProperties": false,
|
|
1565
|
+
"properties": {
|
|
1566
|
+
"as": {
|
|
1567
|
+
"description": "Name of the fields where the zero-based index number and flattened sequence letter are written to.\n\n**Default:** `[\"pos\", \"sequence\"]`",
|
|
1568
|
+
"items": {
|
|
1569
|
+
"type": "string"
|
|
1570
|
+
},
|
|
1571
|
+
"maxItems": 2,
|
|
1572
|
+
"minItems": 2,
|
|
1573
|
+
"type": "array"
|
|
1574
|
+
},
|
|
1575
|
+
"field": {
|
|
1576
|
+
"$ref": "#/definitions/Field",
|
|
1577
|
+
"description": "The field to flatten.\n\n**Default:** `\"sequence\"`"
|
|
1578
|
+
},
|
|
1579
|
+
"type": {
|
|
1580
|
+
"const": "flattenSequence",
|
|
1581
|
+
"description": "The type of the transform to be applied",
|
|
1582
|
+
"type": "string"
|
|
1583
|
+
}
|
|
1584
|
+
},
|
|
1585
|
+
"required": [
|
|
1586
|
+
"type"
|
|
1587
|
+
],
|
|
1588
|
+
"type": "object"
|
|
1589
|
+
},
|
|
1590
|
+
"FontStyle": {
|
|
1591
|
+
"enum": [
|
|
1592
|
+
"normal",
|
|
1593
|
+
"italic"
|
|
1594
|
+
],
|
|
1595
|
+
"type": "string"
|
|
1596
|
+
},
|
|
1597
|
+
"FontWeight": {
|
|
1598
|
+
"anyOf": [
|
|
1599
|
+
{
|
|
1600
|
+
"type": "number"
|
|
1601
|
+
},
|
|
1602
|
+
{
|
|
1603
|
+
"const": "thin",
|
|
1604
|
+
"type": "string"
|
|
1605
|
+
},
|
|
1606
|
+
{
|
|
1607
|
+
"const": "light",
|
|
1608
|
+
"type": "string"
|
|
1609
|
+
},
|
|
1610
|
+
{
|
|
1611
|
+
"const": "regular",
|
|
1612
|
+
"type": "string"
|
|
1613
|
+
},
|
|
1614
|
+
{
|
|
1615
|
+
"const": "normal",
|
|
1616
|
+
"type": "string"
|
|
1617
|
+
},
|
|
1618
|
+
{
|
|
1619
|
+
"const": "medium",
|
|
1620
|
+
"type": "string"
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
"const": "bold",
|
|
1624
|
+
"type": "string"
|
|
1625
|
+
},
|
|
1626
|
+
{
|
|
1627
|
+
"const": "black",
|
|
1628
|
+
"type": "string"
|
|
1629
|
+
}
|
|
1630
|
+
]
|
|
1631
|
+
},
|
|
1632
|
+
"FormulaParams": {
|
|
1633
|
+
"additionalProperties": false,
|
|
1634
|
+
"properties": {
|
|
1635
|
+
"as": {
|
|
1636
|
+
"description": "The (new) field where the computed value is written to",
|
|
1637
|
+
"type": "string"
|
|
1638
|
+
},
|
|
1639
|
+
"expr": {
|
|
1640
|
+
"description": "An expression string",
|
|
1641
|
+
"type": "string"
|
|
1642
|
+
},
|
|
1643
|
+
"type": {
|
|
1644
|
+
"const": "formula",
|
|
1645
|
+
"description": "The type of the transform to be applied",
|
|
1646
|
+
"type": "string"
|
|
1647
|
+
}
|
|
1648
|
+
},
|
|
1649
|
+
"required": [
|
|
1650
|
+
"as",
|
|
1651
|
+
"expr",
|
|
1652
|
+
"type"
|
|
1653
|
+
],
|
|
1654
|
+
"type": "object"
|
|
1655
|
+
},
|
|
1656
|
+
"Generator": {
|
|
1657
|
+
"$ref": "#/definitions/SequenceGenerator"
|
|
1658
|
+
},
|
|
1659
|
+
"HConcatSpec": {
|
|
1660
|
+
"additionalProperties": false,
|
|
1661
|
+
"properties": {
|
|
1662
|
+
"baseUrl": {
|
|
1663
|
+
"type": "string"
|
|
1664
|
+
},
|
|
1665
|
+
"configurableVisibility": {
|
|
1666
|
+
"description": "Is the visibility configurable interactively from the App. Configurability requires that the view has an explicitly specified name that is *unique* in within the view specification.\n\n**Default:** `false` for children of `layer`, `true` for others.",
|
|
1667
|
+
"type": "boolean"
|
|
1668
|
+
},
|
|
1669
|
+
"data": {
|
|
1670
|
+
"$ref": "#/definitions/Data"
|
|
1671
|
+
},
|
|
1672
|
+
"description": {
|
|
1673
|
+
"anyOf": [
|
|
1674
|
+
{
|
|
1675
|
+
"type": "string"
|
|
1676
|
+
},
|
|
1677
|
+
{
|
|
1678
|
+
"items": {
|
|
1679
|
+
"type": "string"
|
|
1680
|
+
},
|
|
1681
|
+
"type": "array"
|
|
1682
|
+
}
|
|
1683
|
+
],
|
|
1684
|
+
"description": "A description of the view. Multiple lines can be provided as an array."
|
|
1685
|
+
},
|
|
1686
|
+
"encoding": {
|
|
1687
|
+
"$ref": "#/definitions/Encoding"
|
|
1688
|
+
},
|
|
1689
|
+
"hconcat": {
|
|
1690
|
+
"items": {
|
|
1691
|
+
"anyOf": [
|
|
1692
|
+
{
|
|
1693
|
+
"$ref": "#/definitions/ViewSpec"
|
|
1694
|
+
},
|
|
1695
|
+
{
|
|
1696
|
+
"$ref": "#/definitions/ImportSpec"
|
|
1697
|
+
}
|
|
1698
|
+
]
|
|
1699
|
+
},
|
|
1700
|
+
"type": "array"
|
|
1701
|
+
},
|
|
1702
|
+
"height": {
|
|
1703
|
+
"anyOf": [
|
|
1704
|
+
{
|
|
1705
|
+
"$ref": "#/definitions/SizeDef"
|
|
1706
|
+
},
|
|
1707
|
+
{
|
|
1708
|
+
"type": "number"
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
"$ref": "#/definitions/Step"
|
|
1712
|
+
},
|
|
1713
|
+
{
|
|
1714
|
+
"const": "container",
|
|
1715
|
+
"type": "string"
|
|
1716
|
+
}
|
|
1717
|
+
]
|
|
1718
|
+
},
|
|
1719
|
+
"name": {
|
|
1720
|
+
"type": "string"
|
|
1721
|
+
},
|
|
1722
|
+
"opacity": {
|
|
1723
|
+
"$ref": "#/definitions/ViewOpacityDef",
|
|
1724
|
+
"description": "Opacity of the view and all its children.\n\n**Default:* `1.0`"
|
|
1725
|
+
},
|
|
1726
|
+
"padding": {
|
|
1727
|
+
"$ref": "#/definitions/PaddingConfig",
|
|
1728
|
+
"description": "Padding in pixels.\n\n**Default:* `0`"
|
|
1729
|
+
},
|
|
1730
|
+
"resolve": {
|
|
1731
|
+
"additionalProperties": false,
|
|
1732
|
+
"properties": {
|
|
1733
|
+
"axis": {
|
|
1734
|
+
"additionalProperties": {
|
|
1735
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
1736
|
+
},
|
|
1737
|
+
"properties": {
|
|
1738
|
+
"default": {
|
|
1739
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
1740
|
+
}
|
|
1741
|
+
},
|
|
1742
|
+
"type": "object"
|
|
1743
|
+
},
|
|
1744
|
+
"scale": {
|
|
1745
|
+
"additionalProperties": {
|
|
1746
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
1747
|
+
},
|
|
1748
|
+
"properties": {
|
|
1749
|
+
"default": {
|
|
1750
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
1751
|
+
}
|
|
1752
|
+
},
|
|
1753
|
+
"type": "object"
|
|
1754
|
+
}
|
|
1755
|
+
},
|
|
1756
|
+
"type": "object"
|
|
1757
|
+
},
|
|
1758
|
+
"spacing": {
|
|
1759
|
+
"type": "number"
|
|
1760
|
+
},
|
|
1761
|
+
"title": {
|
|
1762
|
+
"type": "string"
|
|
1763
|
+
},
|
|
1764
|
+
"transform": {
|
|
1765
|
+
"items": {
|
|
1766
|
+
"$ref": "#/definitions/TransformParams"
|
|
1767
|
+
},
|
|
1768
|
+
"type": "array"
|
|
1769
|
+
},
|
|
1770
|
+
"visible": {
|
|
1771
|
+
"description": "Visibility of the view. An invisible view is removed from the layout and not rendered.\n\n**Default:** `true`",
|
|
1772
|
+
"type": "boolean"
|
|
1773
|
+
},
|
|
1774
|
+
"width": {
|
|
1775
|
+
"anyOf": [
|
|
1776
|
+
{
|
|
1777
|
+
"$ref": "#/definitions/SizeDef"
|
|
1778
|
+
},
|
|
1779
|
+
{
|
|
1780
|
+
"type": "number"
|
|
1781
|
+
},
|
|
1782
|
+
{
|
|
1783
|
+
"$ref": "#/definitions/Step"
|
|
1784
|
+
},
|
|
1785
|
+
{
|
|
1786
|
+
"const": "container",
|
|
1787
|
+
"type": "string"
|
|
1788
|
+
}
|
|
1789
|
+
]
|
|
1790
|
+
}
|
|
1791
|
+
},
|
|
1792
|
+
"required": [
|
|
1793
|
+
"hconcat"
|
|
1794
|
+
],
|
|
1795
|
+
"type": "object"
|
|
1796
|
+
},
|
|
1797
|
+
"HandledTooltip": {
|
|
1798
|
+
"additionalProperties": false,
|
|
1799
|
+
"properties": {
|
|
1800
|
+
"handler": {
|
|
1801
|
+
"type": "string"
|
|
1802
|
+
},
|
|
1803
|
+
"params": {
|
|
1804
|
+
"type": "object"
|
|
1805
|
+
}
|
|
1806
|
+
},
|
|
1807
|
+
"required": [
|
|
1808
|
+
"handler"
|
|
1809
|
+
],
|
|
1810
|
+
"type": "object"
|
|
1811
|
+
},
|
|
1812
|
+
"IdentifierParams": {
|
|
1813
|
+
"additionalProperties": false,
|
|
1814
|
+
"properties": {
|
|
1815
|
+
"as": {
|
|
1816
|
+
"description": "**Default:** `\"_uniqueId\"`",
|
|
1817
|
+
"type": "string"
|
|
1818
|
+
},
|
|
1819
|
+
"type": {
|
|
1820
|
+
"const": "identifier",
|
|
1821
|
+
"description": "The type of the transform to be applied",
|
|
1822
|
+
"type": "string"
|
|
1823
|
+
}
|
|
1824
|
+
},
|
|
1825
|
+
"required": [
|
|
1826
|
+
"type"
|
|
1827
|
+
],
|
|
1828
|
+
"type": "object"
|
|
1829
|
+
},
|
|
1830
|
+
"ImportConfig": {
|
|
1831
|
+
"additionalProperties": false,
|
|
1832
|
+
"properties": {
|
|
1833
|
+
"name": {
|
|
1834
|
+
"type": "string"
|
|
1835
|
+
},
|
|
1836
|
+
"params": {
|
|
1837
|
+
"type": "object"
|
|
1838
|
+
},
|
|
1839
|
+
"url": {
|
|
1840
|
+
"type": "string"
|
|
1841
|
+
}
|
|
1842
|
+
},
|
|
1843
|
+
"type": "object"
|
|
1844
|
+
},
|
|
1845
|
+
"ImportSpec": {
|
|
1846
|
+
"additionalProperties": false,
|
|
1847
|
+
"properties": {
|
|
1848
|
+
"import": {
|
|
1849
|
+
"$ref": "#/definitions/ImportConfig"
|
|
1850
|
+
}
|
|
1851
|
+
},
|
|
1852
|
+
"required": [
|
|
1853
|
+
"import"
|
|
1854
|
+
],
|
|
1855
|
+
"type": "object"
|
|
1856
|
+
},
|
|
1857
|
+
"InlineData": {
|
|
1858
|
+
"additionalProperties": false,
|
|
1859
|
+
"properties": {
|
|
1860
|
+
"format": {
|
|
1861
|
+
"$ref": "#/definitions/DataFormat",
|
|
1862
|
+
"description": "An object that specifies the format for parsing the data."
|
|
1863
|
+
},
|
|
1864
|
+
"name": {
|
|
1865
|
+
"description": "Provide a placeholder name and bind data at runtime.",
|
|
1866
|
+
"type": "string"
|
|
1867
|
+
},
|
|
1868
|
+
"values": {
|
|
1869
|
+
"$ref": "#/definitions/InlineDataset",
|
|
1870
|
+
"description": "The full data set, included inline. This can be an array of objects or primitive values, an object, or a string. Arrays of primitive values are ingested as objects with a `data` property. Strings are parsed according to the specified format type."
|
|
1871
|
+
}
|
|
1872
|
+
},
|
|
1873
|
+
"required": [
|
|
1874
|
+
"values"
|
|
1875
|
+
],
|
|
1876
|
+
"type": "object"
|
|
1877
|
+
},
|
|
1878
|
+
"InlineDataset": {
|
|
1879
|
+
"anyOf": [
|
|
1880
|
+
{
|
|
1881
|
+
"items": {
|
|
1882
|
+
"type": "number"
|
|
1883
|
+
},
|
|
1884
|
+
"type": "array"
|
|
1885
|
+
},
|
|
1886
|
+
{
|
|
1887
|
+
"items": {
|
|
1888
|
+
"type": "string"
|
|
1889
|
+
},
|
|
1890
|
+
"type": "array"
|
|
1891
|
+
},
|
|
1892
|
+
{
|
|
1893
|
+
"items": {
|
|
1894
|
+
"type": "boolean"
|
|
1895
|
+
},
|
|
1896
|
+
"type": "array"
|
|
1897
|
+
},
|
|
1898
|
+
{
|
|
1899
|
+
"items": {
|
|
1900
|
+
"type": "object"
|
|
1901
|
+
},
|
|
1902
|
+
"type": "array"
|
|
1903
|
+
},
|
|
1904
|
+
{
|
|
1905
|
+
"type": "string"
|
|
1906
|
+
},
|
|
1907
|
+
{
|
|
1908
|
+
"type": "object"
|
|
1909
|
+
}
|
|
1910
|
+
]
|
|
1911
|
+
},
|
|
1912
|
+
"JsonDataFormat": {
|
|
1913
|
+
"additionalProperties": false,
|
|
1914
|
+
"properties": {
|
|
1915
|
+
"parse": {
|
|
1916
|
+
"anyOf": [
|
|
1917
|
+
{
|
|
1918
|
+
"$ref": "#/definitions/Parse"
|
|
1919
|
+
},
|
|
1920
|
+
{
|
|
1921
|
+
"type": "null"
|
|
1922
|
+
}
|
|
1923
|
+
],
|
|
1924
|
+
"description": "If set to `null`, disable type inference based on the spec and only use type inference based on the data. Alternatively, a parsing directive object can be provided for explicit data types. Each property of the object corresponds to a field name, and the value to the desired data type (one of `\"number\"`, `\"boolean\"`, `\"date\"`, or null (do not parse the field)). For example, `\"parse\": {\"modified_on\": \"date\"}` parses the `modified_on` field in each input record a Date value.\n\nFor `\"date\"`, we parse data based using Javascript's [`Date.parse()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse). For Specific date formats can be provided (e.g., `{foo: \"date:'%m%d%Y'\"}`), using the [d3-time-format syntax](https://github.com/d3/d3-time-format#locale_format). UTC date format parsing is supported similarly (e.g., `{foo: \"utc:'%m%d%Y'\"}`). See more about [UTC time](https://vega.github.io/vega-lite/docs/timeunit.html#utc)"
|
|
1925
|
+
},
|
|
1926
|
+
"property": {
|
|
1927
|
+
"description": "The JSON property containing the desired data. This parameter can be used when the loaded JSON file may have surrounding structure or meta-data. For example `\"property\": \"values.features\"` is equivalent to retrieving `json.values.features` from the loaded JSON object.",
|
|
1928
|
+
"type": "string"
|
|
1929
|
+
},
|
|
1930
|
+
"type": {
|
|
1931
|
+
"const": "json",
|
|
1932
|
+
"description": "Type of input data: `\"json\"`, `\"csv\"`, `\"tsv\"`, `\"dsv\"`.\n\n__Default value:__ The default format type is determined by the extension of the file URL. If no extension is detected, `\"json\"` will be used by default.",
|
|
1933
|
+
"type": "string"
|
|
1934
|
+
}
|
|
1935
|
+
},
|
|
1936
|
+
"type": "object"
|
|
1937
|
+
},
|
|
1938
|
+
"LayerSpec": {
|
|
1939
|
+
"additionalProperties": false,
|
|
1940
|
+
"properties": {
|
|
1941
|
+
"aggregateSamples": {
|
|
1942
|
+
"items": {
|
|
1943
|
+
"anyOf": [
|
|
1944
|
+
{
|
|
1945
|
+
"$ref": "#/definitions/UnitSpec"
|
|
1946
|
+
},
|
|
1947
|
+
{
|
|
1948
|
+
"$ref": "#/definitions/LayerSpec"
|
|
1949
|
+
}
|
|
1950
|
+
]
|
|
1951
|
+
},
|
|
1952
|
+
"type": "array"
|
|
1953
|
+
},
|
|
1954
|
+
"baseUrl": {
|
|
1955
|
+
"type": "string"
|
|
1956
|
+
},
|
|
1957
|
+
"configurableVisibility": {
|
|
1958
|
+
"description": "Is the visibility configurable interactively from the App. Configurability requires that the view has an explicitly specified name that is *unique* in within the view specification.\n\n**Default:** `false` for children of `layer`, `true` for others.",
|
|
1959
|
+
"type": "boolean"
|
|
1960
|
+
},
|
|
1961
|
+
"data": {
|
|
1962
|
+
"$ref": "#/definitions/Data"
|
|
1963
|
+
},
|
|
1964
|
+
"description": {
|
|
1965
|
+
"anyOf": [
|
|
1966
|
+
{
|
|
1967
|
+
"type": "string"
|
|
1968
|
+
},
|
|
1969
|
+
{
|
|
1970
|
+
"items": {
|
|
1971
|
+
"type": "string"
|
|
1972
|
+
},
|
|
1973
|
+
"type": "array"
|
|
1974
|
+
}
|
|
1975
|
+
],
|
|
1976
|
+
"description": "A description of the view. Multiple lines can be provided as an array."
|
|
1977
|
+
},
|
|
1978
|
+
"encoding": {
|
|
1979
|
+
"$ref": "#/definitions/Encoding"
|
|
1980
|
+
},
|
|
1981
|
+
"height": {
|
|
1982
|
+
"anyOf": [
|
|
1983
|
+
{
|
|
1984
|
+
"$ref": "#/definitions/SizeDef"
|
|
1985
|
+
},
|
|
1986
|
+
{
|
|
1987
|
+
"type": "number"
|
|
1988
|
+
},
|
|
1989
|
+
{
|
|
1990
|
+
"$ref": "#/definitions/Step"
|
|
1991
|
+
},
|
|
1992
|
+
{
|
|
1993
|
+
"const": "container",
|
|
1994
|
+
"type": "string"
|
|
1995
|
+
}
|
|
1996
|
+
]
|
|
1997
|
+
},
|
|
1998
|
+
"layer": {
|
|
1999
|
+
"items": {
|
|
2000
|
+
"anyOf": [
|
|
2001
|
+
{
|
|
2002
|
+
"$ref": "#/definitions/LayerSpec"
|
|
2003
|
+
},
|
|
2004
|
+
{
|
|
2005
|
+
"$ref": "#/definitions/UnitSpec"
|
|
2006
|
+
}
|
|
2007
|
+
]
|
|
2008
|
+
},
|
|
2009
|
+
"type": "array"
|
|
2010
|
+
},
|
|
2011
|
+
"name": {
|
|
2012
|
+
"type": "string"
|
|
2013
|
+
},
|
|
2014
|
+
"opacity": {
|
|
2015
|
+
"$ref": "#/definitions/ViewOpacityDef",
|
|
2016
|
+
"description": "Opacity of the view and all its children.\n\n**Default:* `1.0`"
|
|
2017
|
+
},
|
|
2018
|
+
"padding": {
|
|
2019
|
+
"$ref": "#/definitions/PaddingConfig",
|
|
2020
|
+
"description": "Padding in pixels.\n\n**Default:* `0`"
|
|
2021
|
+
},
|
|
2022
|
+
"resolve": {
|
|
2023
|
+
"additionalProperties": false,
|
|
2024
|
+
"properties": {
|
|
2025
|
+
"axis": {
|
|
2026
|
+
"additionalProperties": {
|
|
2027
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
2028
|
+
},
|
|
2029
|
+
"properties": {
|
|
2030
|
+
"default": {
|
|
2031
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
2032
|
+
}
|
|
2033
|
+
},
|
|
2034
|
+
"type": "object"
|
|
2035
|
+
},
|
|
2036
|
+
"scale": {
|
|
2037
|
+
"additionalProperties": {
|
|
2038
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
2039
|
+
},
|
|
2040
|
+
"properties": {
|
|
2041
|
+
"default": {
|
|
2042
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
2043
|
+
}
|
|
2044
|
+
},
|
|
2045
|
+
"type": "object"
|
|
2046
|
+
}
|
|
2047
|
+
},
|
|
2048
|
+
"type": "object"
|
|
2049
|
+
},
|
|
2050
|
+
"title": {
|
|
2051
|
+
"type": "string"
|
|
2052
|
+
},
|
|
2053
|
+
"transform": {
|
|
2054
|
+
"items": {
|
|
2055
|
+
"$ref": "#/definitions/TransformParams"
|
|
2056
|
+
},
|
|
2057
|
+
"type": "array"
|
|
2058
|
+
},
|
|
2059
|
+
"view": {
|
|
2060
|
+
"$ref": "#/definitions/ViewConfig"
|
|
2061
|
+
},
|
|
2062
|
+
"visible": {
|
|
2063
|
+
"description": "Visibility of the view. An invisible view is removed from the layout and not rendered.\n\n**Default:** `true`",
|
|
2064
|
+
"type": "boolean"
|
|
2065
|
+
},
|
|
2066
|
+
"width": {
|
|
2067
|
+
"anyOf": [
|
|
2068
|
+
{
|
|
2069
|
+
"$ref": "#/definitions/SizeDef"
|
|
2070
|
+
},
|
|
2071
|
+
{
|
|
2072
|
+
"type": "number"
|
|
2073
|
+
},
|
|
2074
|
+
{
|
|
2075
|
+
"$ref": "#/definitions/Step"
|
|
2076
|
+
},
|
|
2077
|
+
{
|
|
2078
|
+
"const": "container",
|
|
2079
|
+
"type": "string"
|
|
2080
|
+
}
|
|
2081
|
+
]
|
|
2082
|
+
}
|
|
2083
|
+
},
|
|
2084
|
+
"required": [
|
|
2085
|
+
"layer"
|
|
2086
|
+
],
|
|
2087
|
+
"type": "object"
|
|
2088
|
+
},
|
|
2089
|
+
"LinearizeGenomicCoordinateParams": {
|
|
2090
|
+
"additionalProperties": false,
|
|
2091
|
+
"properties": {
|
|
2092
|
+
"as": {
|
|
2093
|
+
"anyOf": [
|
|
2094
|
+
{
|
|
2095
|
+
"type": "string"
|
|
2096
|
+
},
|
|
2097
|
+
{
|
|
2098
|
+
"items": {
|
|
2099
|
+
"type": "string"
|
|
2100
|
+
},
|
|
2101
|
+
"type": "array"
|
|
2102
|
+
}
|
|
2103
|
+
],
|
|
2104
|
+
"description": "The output field or fields for linearized coordinates."
|
|
2105
|
+
},
|
|
2106
|
+
"channel": {
|
|
2107
|
+
"description": "Get the genome assembly from the scale of the channel.\n\n**Default:** `\"x\"`",
|
|
2108
|
+
"enum": [
|
|
2109
|
+
"x",
|
|
2110
|
+
"y"
|
|
2111
|
+
],
|
|
2112
|
+
"type": "string"
|
|
2113
|
+
},
|
|
2114
|
+
"chrom": {
|
|
2115
|
+
"$ref": "#/definitions/Field",
|
|
2116
|
+
"description": "The chromosome/contig field"
|
|
2117
|
+
},
|
|
2118
|
+
"offset": {
|
|
2119
|
+
"anyOf": [
|
|
2120
|
+
{
|
|
2121
|
+
"type": "number"
|
|
2122
|
+
},
|
|
2123
|
+
{
|
|
2124
|
+
"items": {
|
|
2125
|
+
"type": "number"
|
|
2126
|
+
},
|
|
2127
|
+
"type": "array"
|
|
2128
|
+
}
|
|
2129
|
+
],
|
|
2130
|
+
"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`"
|
|
2131
|
+
},
|
|
2132
|
+
"pos": {
|
|
2133
|
+
"anyOf": [
|
|
2134
|
+
{
|
|
2135
|
+
"$ref": "#/definitions/Field"
|
|
2136
|
+
},
|
|
2137
|
+
{
|
|
2138
|
+
"items": {
|
|
2139
|
+
"$ref": "#/definitions/Field"
|
|
2140
|
+
},
|
|
2141
|
+
"type": "array"
|
|
2142
|
+
}
|
|
2143
|
+
],
|
|
2144
|
+
"description": "The field or fields that contain intra-chromosomal positions"
|
|
2145
|
+
},
|
|
2146
|
+
"type": {
|
|
2147
|
+
"const": "linearizeGenomicCoordinate",
|
|
2148
|
+
"description": "The type of the transform to be applied",
|
|
2149
|
+
"type": "string"
|
|
2150
|
+
}
|
|
2151
|
+
},
|
|
2152
|
+
"required": [
|
|
2153
|
+
"as",
|
|
2154
|
+
"chrom",
|
|
2155
|
+
"pos",
|
|
2156
|
+
"type"
|
|
2157
|
+
],
|
|
2158
|
+
"type": "object"
|
|
2159
|
+
},
|
|
2160
|
+
"MarkConfigAndType": {
|
|
2161
|
+
"additionalProperties": false,
|
|
2162
|
+
"properties": {
|
|
2163
|
+
"align": {
|
|
2164
|
+
"$ref": "#/definitions/Align",
|
|
2165
|
+
"description": "The horizontal alignment of the text. One of `\"left\"`, `\"center\"`, or `\"right\"`.\n\n**Default value:** `\"left\"`"
|
|
2166
|
+
},
|
|
2167
|
+
"angle": {
|
|
2168
|
+
"description": "The rotation angle in degrees.\n\n**Default value:** `0`",
|
|
2169
|
+
"type": "number"
|
|
2170
|
+
},
|
|
2171
|
+
"baseline": {
|
|
2172
|
+
"$ref": "#/definitions/Baseline",
|
|
2173
|
+
"description": "The vertical alignment of the text. One of `\"top\"`, `\"middle\"`, `\"bottom\"`.\n\n**Default value:** `\"bottom\"`"
|
|
2174
|
+
},
|
|
2175
|
+
"buildIndex": {
|
|
2176
|
+
"description": "Builds and index for efficient rendering of subsets of the data. The data must be sorted by the x coordinate.\n\nTODO: This should be enabled automatically if the data are sorted.",
|
|
2177
|
+
"type": "boolean"
|
|
2178
|
+
},
|
|
2179
|
+
"clip": {
|
|
2180
|
+
"description": "If true, the mark is clipped to the UnitView's rectangle. By default, clipping is enabled for marks that have zoomable positional scales.",
|
|
2181
|
+
"type": "boolean"
|
|
2182
|
+
},
|
|
2183
|
+
"color": {
|
|
2184
|
+
"type": "string"
|
|
2185
|
+
},
|
|
2186
|
+
"color2": {
|
|
2187
|
+
"description": "TODO",
|
|
2188
|
+
"type": "string"
|
|
2189
|
+
},
|
|
2190
|
+
"cornerRadius": {
|
|
2191
|
+
"description": "Radius of the rounded corners.\n\n**Default value:** `0`",
|
|
2192
|
+
"type": "number"
|
|
2193
|
+
},
|
|
2194
|
+
"cornerRadiusBottomLeft": {
|
|
2195
|
+
"description": "Radius of the bottom left rounded corner. Has higher precedence than `cornerRadius`.\n\n**Default value:** (None)",
|
|
2196
|
+
"type": "number"
|
|
2197
|
+
},
|
|
2198
|
+
"cornerRadiusBottomRight": {
|
|
2199
|
+
"description": "Radius of the bottom right rounded corner. Has higher precedence than `cornerRadius`.\n\n**Default value:** (None)",
|
|
2200
|
+
"type": "number"
|
|
2201
|
+
},
|
|
2202
|
+
"cornerRadiusTopLeft": {
|
|
2203
|
+
"description": "Radius of the top left rounded corner. Has higher precedence than `cornerRadius`.\n\n**Default value:** (None)",
|
|
2204
|
+
"type": "number"
|
|
2205
|
+
},
|
|
2206
|
+
"cornerRadiusTopRight": {
|
|
2207
|
+
"description": "Radius of the top right rounded corner. Has higher precedence than `cornerRadius`.\n\n**Default value:** (None)",
|
|
2208
|
+
"type": "number"
|
|
2209
|
+
},
|
|
2210
|
+
"dx": {
|
|
2211
|
+
"description": "The horizontal offset between the text and its anchor point, in pixels. Applied after the rotation by `angle`.",
|
|
2212
|
+
"type": "number"
|
|
2213
|
+
},
|
|
2214
|
+
"dy": {
|
|
2215
|
+
"description": "The vertical offset between the text and its anchor point, in pixels. Applied after the rotation by `angle`.",
|
|
2216
|
+
"type": "number"
|
|
2217
|
+
},
|
|
2218
|
+
"dynamicData": {
|
|
2219
|
+
"type": "boolean"
|
|
2220
|
+
},
|
|
2221
|
+
"fill": {
|
|
2222
|
+
"type": "string"
|
|
2223
|
+
},
|
|
2224
|
+
"fillGradientStrength": {
|
|
2225
|
+
"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`",
|
|
2226
|
+
"type": "number"
|
|
2227
|
+
},
|
|
2228
|
+
"fillOpacity": {
|
|
2229
|
+
"type": "number"
|
|
2230
|
+
},
|
|
2231
|
+
"filled": {
|
|
2232
|
+
"description": "Whether the `color` represents the `fill` color (`true`) or the `stroke` color (`false`).",
|
|
2233
|
+
"type": "boolean"
|
|
2234
|
+
},
|
|
2235
|
+
"fitToBand": {
|
|
2236
|
+
"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`",
|
|
2237
|
+
"type": "boolean"
|
|
2238
|
+
},
|
|
2239
|
+
"flushX": {
|
|
2240
|
+
"description": "If true, the text is kept inside the viewport when the range of `x` and `x2` intersect the viewport.",
|
|
2241
|
+
"type": "boolean"
|
|
2242
|
+
},
|
|
2243
|
+
"flushY": {
|
|
2244
|
+
"description": "If true, the text is kept inside the viewport when the range of `y` and `y2` intersect the viewport.",
|
|
2245
|
+
"type": "boolean"
|
|
2246
|
+
},
|
|
2247
|
+
"font": {
|
|
2248
|
+
"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\"`",
|
|
2249
|
+
"type": "string"
|
|
2250
|
+
},
|
|
2251
|
+
"fontStyle": {
|
|
2252
|
+
"$ref": "#/definitions/FontStyle",
|
|
2253
|
+
"description": "The font style. Valid values: `\"normal\"` and `\"italic\"`.\n\n**Default value:** `\"normal\"`"
|
|
2254
|
+
},
|
|
2255
|
+
"fontWeight": {
|
|
2256
|
+
"$ref": "#/definitions/FontWeight",
|
|
2257
|
+
"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\"`"
|
|
2258
|
+
},
|
|
2259
|
+
"geometricZoomBound": {
|
|
2260
|
+
"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`",
|
|
2261
|
+
"type": "number"
|
|
2262
|
+
},
|
|
2263
|
+
"inwardStroke": {
|
|
2264
|
+
"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`",
|
|
2265
|
+
"type": "boolean"
|
|
2266
|
+
},
|
|
2267
|
+
"logoLetters": {
|
|
2268
|
+
"description": "Stretch letters so that they can be used with [sequence logos](https://en.wikipedia.org/wiki/Sequence_logo), etc...",
|
|
2269
|
+
"type": "boolean"
|
|
2270
|
+
},
|
|
2271
|
+
"minBufferSize": {
|
|
2272
|
+
"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.",
|
|
2273
|
+
"type": "number"
|
|
2274
|
+
},
|
|
2275
|
+
"minHeight": {
|
|
2276
|
+
"description": "The minimum height of a rectangle in pixels. The property clamps rectangles' heights.\n\n**Default value:** `0`",
|
|
2277
|
+
"type": "number"
|
|
2278
|
+
},
|
|
2279
|
+
"minLength": {
|
|
2280
|
+
"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`",
|
|
2281
|
+
"type": "number"
|
|
2282
|
+
},
|
|
2283
|
+
"minOpacity": {
|
|
2284
|
+
"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`",
|
|
2285
|
+
"type": "number"
|
|
2286
|
+
},
|
|
2287
|
+
"minSagittaLength": {
|
|
2288
|
+
"description": "Minimum length of the arc's sagitta. Makes very short links more clearly visible.\n\n**Default value:** `1.5`",
|
|
2289
|
+
"type": "number"
|
|
2290
|
+
},
|
|
2291
|
+
"minWidth": {
|
|
2292
|
+
"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`",
|
|
2293
|
+
"type": "number"
|
|
2294
|
+
},
|
|
2295
|
+
"opacity": {
|
|
2296
|
+
"type": "number"
|
|
2297
|
+
},
|
|
2298
|
+
"paddingX": {
|
|
2299
|
+
"description": "The horizontal padding, in pixels, when the `x2` channel is used for ranged text.\n\n**Default value:** `0`",
|
|
2300
|
+
"type": "number"
|
|
2301
|
+
},
|
|
2302
|
+
"paddingY": {
|
|
2303
|
+
"description": "The vertical padding, in pixels, when the `y2` channel is used for ranged text.\n\n**Default value:** `0`",
|
|
2304
|
+
"type": "number"
|
|
2305
|
+
},
|
|
2306
|
+
"sagittaScaleFactor": {
|
|
2307
|
+
"description": "Scaling factor of the arc's sagitta. The default value `1.0` produces roughly circular arcs.\n\n**Default value:** `1.0`",
|
|
2308
|
+
"type": "number"
|
|
2309
|
+
},
|
|
2310
|
+
"sampleFacetPadding": {
|
|
2311
|
+
"description": "Padding between sample facet's upper/lower edge and the maximum point size. This property controls how tightly points are squeezed when facet's height is smaller than the maximum point size. The unit is a proportion of facet's height. The value must be between `0` and `0.5`. This property has no effect when sample faceting is not used.\n\n**Default value:** `0.1`",
|
|
2312
|
+
"type": "number"
|
|
2313
|
+
},
|
|
2314
|
+
"segments": {
|
|
2315
|
+
"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`",
|
|
2316
|
+
"type": "number"
|
|
2317
|
+
},
|
|
2318
|
+
"semanticZoomFraction": {
|
|
2319
|
+
"description": "TODO\n\n**Default value:** `0.02`",
|
|
2320
|
+
"type": "number"
|
|
2321
|
+
},
|
|
2322
|
+
"shape": {
|
|
2323
|
+
"description": "One of `\"circle\"`, `\"square\"`, `\"cross\"`, `\"diamond\"`, `\"triangle-up\"`, `\"triangle-down\"`, `\"triangle-right\"`, or `\"triangle-left\"`.\n\n**Default value:** `\"circle\"`",
|
|
2324
|
+
"type": "string"
|
|
2325
|
+
},
|
|
2326
|
+
"size": {
|
|
2327
|
+
"description": "The font size in pixels.\n\n**Default value:** `11`",
|
|
2328
|
+
"type": "number"
|
|
2329
|
+
},
|
|
2330
|
+
"size2": {
|
|
2331
|
+
"description": "TODO",
|
|
2332
|
+
"type": "number"
|
|
2333
|
+
},
|
|
2334
|
+
"squeeze": {
|
|
2335
|
+
"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`",
|
|
2336
|
+
"type": "boolean"
|
|
2337
|
+
},
|
|
2338
|
+
"stroke": {
|
|
2339
|
+
"type": "string"
|
|
2340
|
+
},
|
|
2341
|
+
"strokeCap": {
|
|
2342
|
+
"description": "The style of stroke ends. Available choices: `\"butt\"`, `\"round`\", and `\"square\"`.\n\n**Default value:** `\"butt\"`",
|
|
2343
|
+
"enum": [
|
|
2344
|
+
"butt",
|
|
2345
|
+
"square",
|
|
2346
|
+
"round"
|
|
2347
|
+
],
|
|
2348
|
+
"type": "string"
|
|
2349
|
+
},
|
|
2350
|
+
"strokeDash": {
|
|
2351
|
+
"description": "An array of of alternating stroke and gap lengths or `null` for solid strokes.\n\n**Default value:** `null`",
|
|
2352
|
+
"items": {
|
|
2353
|
+
"type": "number"
|
|
2354
|
+
},
|
|
2355
|
+
"type": "array"
|
|
2356
|
+
},
|
|
2357
|
+
"strokeDashOffset": {
|
|
2358
|
+
"description": "An offset for the stroke dash pattern.\n\n**Default value:** `0`",
|
|
2359
|
+
"type": "number"
|
|
2360
|
+
},
|
|
2361
|
+
"strokeOpacity": {
|
|
2362
|
+
"type": "number"
|
|
2363
|
+
},
|
|
2364
|
+
"strokeWidth": {
|
|
2365
|
+
"description": "The stroke width in pixels.",
|
|
2366
|
+
"type": "number"
|
|
2367
|
+
},
|
|
2368
|
+
"text": {
|
|
2369
|
+
"$ref": "#/definitions/Scalar",
|
|
2370
|
+
"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:** `\"\"`"
|
|
2371
|
+
},
|
|
2372
|
+
"tooltip": {
|
|
2373
|
+
"$ref": "#/definitions/Tooltip",
|
|
2374
|
+
"description": "TODO"
|
|
2375
|
+
},
|
|
2376
|
+
"type": {
|
|
2377
|
+
"$ref": "#/definitions/MarkType"
|
|
2378
|
+
},
|
|
2379
|
+
"viewportEdgeFadeDistanceBottom": {
|
|
2380
|
+
"type": "number"
|
|
2381
|
+
},
|
|
2382
|
+
"viewportEdgeFadeDistanceLeft": {
|
|
2383
|
+
"type": "number"
|
|
2384
|
+
},
|
|
2385
|
+
"viewportEdgeFadeDistanceRight": {
|
|
2386
|
+
"type": "number"
|
|
2387
|
+
},
|
|
2388
|
+
"viewportEdgeFadeDistanceTop": {
|
|
2389
|
+
"type": "number"
|
|
2390
|
+
},
|
|
2391
|
+
"viewportEdgeFadeWidthBottom": {
|
|
2392
|
+
"type": "number"
|
|
2393
|
+
},
|
|
2394
|
+
"viewportEdgeFadeWidthLeft": {
|
|
2395
|
+
"type": "number"
|
|
2396
|
+
},
|
|
2397
|
+
"viewportEdgeFadeWidthRight": {
|
|
2398
|
+
"type": "number"
|
|
2399
|
+
},
|
|
2400
|
+
"viewportEdgeFadeWidthTop": {
|
|
2401
|
+
"type": "number"
|
|
2402
|
+
},
|
|
2403
|
+
"x": {
|
|
2404
|
+
"type": "number"
|
|
2405
|
+
},
|
|
2406
|
+
"x2": {
|
|
2407
|
+
"type": "number"
|
|
2408
|
+
},
|
|
2409
|
+
"xOffset": {
|
|
2410
|
+
"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`",
|
|
2411
|
+
"type": "number"
|
|
2412
|
+
},
|
|
2413
|
+
"y": {
|
|
2414
|
+
"type": "number"
|
|
2415
|
+
},
|
|
2416
|
+
"y2": {
|
|
2417
|
+
"type": "number"
|
|
2418
|
+
},
|
|
2419
|
+
"yOffset": {
|
|
2420
|
+
"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`",
|
|
2421
|
+
"type": "number"
|
|
2422
|
+
}
|
|
2423
|
+
},
|
|
2424
|
+
"required": [
|
|
2425
|
+
"type"
|
|
2426
|
+
],
|
|
2427
|
+
"type": "object"
|
|
2428
|
+
},
|
|
2429
|
+
"MarkType": {
|
|
2430
|
+
"enum": [
|
|
2431
|
+
"rect",
|
|
2432
|
+
"point",
|
|
2433
|
+
"rule",
|
|
2434
|
+
"text",
|
|
2435
|
+
"link"
|
|
2436
|
+
],
|
|
2437
|
+
"type": "string"
|
|
2438
|
+
},
|
|
2439
|
+
"MeasureTextParams": {
|
|
2440
|
+
"additionalProperties": false,
|
|
2441
|
+
"properties": {
|
|
2442
|
+
"as": {
|
|
2443
|
+
"type": "string"
|
|
2444
|
+
},
|
|
2445
|
+
"field": {
|
|
2446
|
+
"$ref": "#/definitions/Field"
|
|
2447
|
+
},
|
|
2448
|
+
"fontSize": {
|
|
2449
|
+
"type": "number"
|
|
2450
|
+
},
|
|
2451
|
+
"type": {
|
|
2452
|
+
"const": "measureText",
|
|
2453
|
+
"description": "The type of the transform to be applied",
|
|
2454
|
+
"type": "string"
|
|
2455
|
+
}
|
|
2456
|
+
},
|
|
2457
|
+
"required": [
|
|
2458
|
+
"as",
|
|
2459
|
+
"field",
|
|
2460
|
+
"fontSize",
|
|
2461
|
+
"type"
|
|
2462
|
+
],
|
|
2463
|
+
"type": "object"
|
|
2464
|
+
},
|
|
2465
|
+
"MergeFacetsParams": {
|
|
2466
|
+
"additionalProperties": false,
|
|
2467
|
+
"properties": {
|
|
2468
|
+
"type": {
|
|
2469
|
+
"const": "mergeFacets",
|
|
2470
|
+
"description": "The type of the transform to be applied",
|
|
2471
|
+
"type": "string"
|
|
2472
|
+
}
|
|
2473
|
+
},
|
|
2474
|
+
"required": [
|
|
2475
|
+
"type"
|
|
2476
|
+
],
|
|
2477
|
+
"type": "object"
|
|
2478
|
+
},
|
|
2479
|
+
"NamedData": {
|
|
2480
|
+
"additionalProperties": false,
|
|
2481
|
+
"properties": {
|
|
2482
|
+
"format": {
|
|
2483
|
+
"$ref": "#/definitions/DataFormat",
|
|
2484
|
+
"description": "An object that specifies the format for parsing the data."
|
|
2485
|
+
},
|
|
2486
|
+
"name": {
|
|
2487
|
+
"description": "Provide a placeholder name and bind data at runtime.",
|
|
2488
|
+
"type": "string"
|
|
2489
|
+
}
|
|
2490
|
+
},
|
|
2491
|
+
"required": [
|
|
2492
|
+
"name"
|
|
2493
|
+
],
|
|
2494
|
+
"type": "object"
|
|
2495
|
+
},
|
|
2496
|
+
"NumericDomain": {
|
|
2497
|
+
"items": {
|
|
2498
|
+
"type": "number"
|
|
2499
|
+
},
|
|
2500
|
+
"type": "array"
|
|
2501
|
+
},
|
|
2502
|
+
"PaddingConfig": {
|
|
2503
|
+
"anyOf": [
|
|
2504
|
+
{
|
|
2505
|
+
"$ref": "#/definitions/Paddings"
|
|
2506
|
+
},
|
|
2507
|
+
{
|
|
2508
|
+
"type": "number"
|
|
2509
|
+
}
|
|
2510
|
+
]
|
|
2511
|
+
},
|
|
2512
|
+
"Paddings": {
|
|
2513
|
+
"additionalProperties": false,
|
|
2514
|
+
"properties": {
|
|
2515
|
+
"bottom": {
|
|
2516
|
+
"type": "number"
|
|
2517
|
+
},
|
|
2518
|
+
"left": {
|
|
2519
|
+
"type": "number"
|
|
2520
|
+
},
|
|
2521
|
+
"right": {
|
|
2522
|
+
"type": "number"
|
|
2523
|
+
},
|
|
2524
|
+
"top": {
|
|
2525
|
+
"type": "number"
|
|
2526
|
+
}
|
|
2527
|
+
},
|
|
2528
|
+
"type": "object"
|
|
2529
|
+
},
|
|
2530
|
+
"Parse": {
|
|
2531
|
+
"additionalProperties": {
|
|
2532
|
+
"$ref": "#/definitions/ParseValue"
|
|
2533
|
+
},
|
|
2534
|
+
"type": "object"
|
|
2535
|
+
},
|
|
2536
|
+
"ParseValue": {
|
|
2537
|
+
"anyOf": [
|
|
2538
|
+
{
|
|
2539
|
+
"type": "null"
|
|
2540
|
+
},
|
|
2541
|
+
{
|
|
2542
|
+
"type": "string"
|
|
2543
|
+
},
|
|
2544
|
+
{
|
|
2545
|
+
"const": "string",
|
|
2546
|
+
"type": "string"
|
|
2547
|
+
},
|
|
2548
|
+
{
|
|
2549
|
+
"const": "boolean",
|
|
2550
|
+
"type": "string"
|
|
2551
|
+
},
|
|
2552
|
+
{
|
|
2553
|
+
"const": "date",
|
|
2554
|
+
"type": "string"
|
|
2555
|
+
},
|
|
2556
|
+
{
|
|
2557
|
+
"const": "number",
|
|
2558
|
+
"type": "string"
|
|
2559
|
+
}
|
|
2560
|
+
]
|
|
2561
|
+
},
|
|
2562
|
+
"PileupParams": {
|
|
2563
|
+
"additionalProperties": false,
|
|
2564
|
+
"properties": {
|
|
2565
|
+
"as": {
|
|
2566
|
+
"description": "The output field name for the computed lane.\n\n**Default:** `\"lane\"`.",
|
|
2567
|
+
"type": "string"
|
|
2568
|
+
},
|
|
2569
|
+
"end": {
|
|
2570
|
+
"$ref": "#/definitions/Field",
|
|
2571
|
+
"description": "The field representing the end coordinate of the segment (exclusive)."
|
|
2572
|
+
},
|
|
2573
|
+
"preference": {
|
|
2574
|
+
"$ref": "#/definitions/Field",
|
|
2575
|
+
"description": "An optional field indicating the preferred lane. Use together with the `preferredOrder` property."
|
|
2576
|
+
},
|
|
2577
|
+
"preferredOrder": {
|
|
2578
|
+
"anyOf": [
|
|
2579
|
+
{
|
|
2580
|
+
"items": {
|
|
2581
|
+
"type": "string"
|
|
2582
|
+
},
|
|
2583
|
+
"type": "array"
|
|
2584
|
+
},
|
|
2585
|
+
{
|
|
2586
|
+
"items": {
|
|
2587
|
+
"type": "number"
|
|
2588
|
+
},
|
|
2589
|
+
"type": "array"
|
|
2590
|
+
},
|
|
2591
|
+
{
|
|
2592
|
+
"items": {
|
|
2593
|
+
"type": "boolean"
|
|
2594
|
+
},
|
|
2595
|
+
"type": "array"
|
|
2596
|
+
}
|
|
2597
|
+
],
|
|
2598
|
+
"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."
|
|
2599
|
+
},
|
|
2600
|
+
"spacing": {
|
|
2601
|
+
"description": "The spacing between adjacent segments on the same lane in coordinate units.\n\n**Default:** `1`.",
|
|
2602
|
+
"type": "number"
|
|
2603
|
+
},
|
|
2604
|
+
"start": {
|
|
2605
|
+
"$ref": "#/definitions/Field",
|
|
2606
|
+
"description": "The field representing the start coordinate of the segment (inclusive)."
|
|
2607
|
+
},
|
|
2608
|
+
"type": {
|
|
2609
|
+
"const": "pileup",
|
|
2610
|
+
"description": "The type of the transform to be applied",
|
|
2611
|
+
"type": "string"
|
|
2612
|
+
}
|
|
2613
|
+
},
|
|
2614
|
+
"required": [
|
|
2615
|
+
"end",
|
|
2616
|
+
"start",
|
|
2617
|
+
"type"
|
|
2618
|
+
],
|
|
2619
|
+
"type": "object"
|
|
2620
|
+
},
|
|
2621
|
+
"PositionalChannel": {
|
|
2622
|
+
"enum": [
|
|
2623
|
+
"x",
|
|
2624
|
+
"y"
|
|
2625
|
+
],
|
|
2626
|
+
"type": "string"
|
|
2627
|
+
},
|
|
2628
|
+
"ProjectParams": {
|
|
2629
|
+
"additionalProperties": false,
|
|
2630
|
+
"properties": {
|
|
2631
|
+
"as": {
|
|
2632
|
+
"description": "New names for the projected fields. If omitted, the names of the source fields are used.",
|
|
2633
|
+
"items": {
|
|
2634
|
+
"type": "string"
|
|
2635
|
+
},
|
|
2636
|
+
"type": "array"
|
|
2637
|
+
},
|
|
2638
|
+
"fields": {
|
|
2639
|
+
"description": "The fields to be projected.",
|
|
2640
|
+
"items": {
|
|
2641
|
+
"$ref": "#/definitions/Field"
|
|
2642
|
+
},
|
|
2643
|
+
"type": "array"
|
|
2644
|
+
},
|
|
2645
|
+
"type": {
|
|
2646
|
+
"const": "project",
|
|
2647
|
+
"description": "The type of the transform to be applied",
|
|
2648
|
+
"type": "string"
|
|
2649
|
+
}
|
|
2650
|
+
},
|
|
2651
|
+
"required": [
|
|
2652
|
+
"fields",
|
|
2653
|
+
"type"
|
|
2654
|
+
],
|
|
2655
|
+
"type": "object"
|
|
2656
|
+
},
|
|
2657
|
+
"RegexExtractParams": {
|
|
2658
|
+
"additionalProperties": false,
|
|
2659
|
+
"properties": {
|
|
2660
|
+
"as": {
|
|
2661
|
+
"anyOf": [
|
|
2662
|
+
{
|
|
2663
|
+
"type": "string"
|
|
2664
|
+
},
|
|
2665
|
+
{
|
|
2666
|
+
"items": {
|
|
2667
|
+
"type": "string"
|
|
2668
|
+
},
|
|
2669
|
+
"type": "array"
|
|
2670
|
+
}
|
|
2671
|
+
],
|
|
2672
|
+
"description": "The new field or an array of fields where the extracted values are written."
|
|
2673
|
+
},
|
|
2674
|
+
"field": {
|
|
2675
|
+
"$ref": "#/definitions/Field",
|
|
2676
|
+
"description": "The source field"
|
|
2677
|
+
},
|
|
2678
|
+
"regex": {
|
|
2679
|
+
"description": "A valid JavaScript regular expression with at least one group. For example: `\"^Sample(\\\\d+)$\"`.\n\nRead more at: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions",
|
|
2680
|
+
"type": "string"
|
|
2681
|
+
},
|
|
2682
|
+
"skipInvalidInput": {
|
|
2683
|
+
"description": "Do not complain about invalid input. Just skip it and leave the new fields undefined on the affected datum.\n\n**Default:** `false`",
|
|
2684
|
+
"type": "boolean"
|
|
2685
|
+
},
|
|
2686
|
+
"type": {
|
|
2687
|
+
"const": "regexExtract",
|
|
2688
|
+
"description": "The type of the transform to be applied",
|
|
2689
|
+
"type": "string"
|
|
2690
|
+
}
|
|
2691
|
+
},
|
|
2692
|
+
"required": [
|
|
2693
|
+
"as",
|
|
2694
|
+
"field",
|
|
2695
|
+
"regex",
|
|
2696
|
+
"type"
|
|
2697
|
+
],
|
|
2698
|
+
"type": "object"
|
|
2699
|
+
},
|
|
2700
|
+
"RegexFoldParams": {
|
|
2701
|
+
"additionalProperties": false,
|
|
2702
|
+
"properties": {
|
|
2703
|
+
"asKey": {
|
|
2704
|
+
"description": "**Default:** `\"sample\"`",
|
|
2705
|
+
"type": "string"
|
|
2706
|
+
},
|
|
2707
|
+
"asValue": {
|
|
2708
|
+
"anyOf": [
|
|
2709
|
+
{
|
|
2710
|
+
"items": {
|
|
2711
|
+
"type": "string"
|
|
2712
|
+
},
|
|
2713
|
+
"type": "array"
|
|
2714
|
+
},
|
|
2715
|
+
{
|
|
2716
|
+
"type": "string"
|
|
2717
|
+
}
|
|
2718
|
+
],
|
|
2719
|
+
"description": "A new column name for the extracted values."
|
|
2720
|
+
},
|
|
2721
|
+
"columnRegex": {
|
|
2722
|
+
"anyOf": [
|
|
2723
|
+
{
|
|
2724
|
+
"items": {
|
|
2725
|
+
"type": "string"
|
|
2726
|
+
},
|
|
2727
|
+
"type": "array"
|
|
2728
|
+
},
|
|
2729
|
+
{
|
|
2730
|
+
"type": "string"
|
|
2731
|
+
}
|
|
2732
|
+
],
|
|
2733
|
+
"description": "A regular expression that matches to column names. The regex must have one capturing group that is used for extracting the key (e.g., a sample id) from the column name."
|
|
2734
|
+
},
|
|
2735
|
+
"skipRegex": {
|
|
2736
|
+
"description": "An optional regex that matches to fields that should not be included in the new folded data objects.",
|
|
2737
|
+
"type": "string"
|
|
2738
|
+
},
|
|
2739
|
+
"type": {
|
|
2740
|
+
"const": "regexFold",
|
|
2741
|
+
"description": "The type of the transform to be applied",
|
|
2742
|
+
"type": "string"
|
|
2743
|
+
}
|
|
2744
|
+
},
|
|
2745
|
+
"required": [
|
|
2746
|
+
"asValue",
|
|
2747
|
+
"columnRegex",
|
|
2748
|
+
"type"
|
|
2749
|
+
],
|
|
2750
|
+
"type": "object"
|
|
2751
|
+
},
|
|
2752
|
+
"ResolutionBehavior": {
|
|
2753
|
+
"description": "`\"independent\"` and `\"shared\"` behave similarly to Vega-Lite. `\"excluded\"` behaves like `\"shared\"`, but is not pulled towards the root.",
|
|
2754
|
+
"enum": [
|
|
2755
|
+
"independent",
|
|
2756
|
+
"shared",
|
|
2757
|
+
"excluded"
|
|
2758
|
+
],
|
|
2759
|
+
"type": "string"
|
|
2760
|
+
},
|
|
2761
|
+
"SampleAttributeDef": {
|
|
2762
|
+
"additionalProperties": false,
|
|
2763
|
+
"properties": {
|
|
2764
|
+
"barScale": {
|
|
2765
|
+
"$ref": "#/definitions/Scale"
|
|
2766
|
+
},
|
|
2767
|
+
"scale": {
|
|
2768
|
+
"$ref": "#/definitions/Scale",
|
|
2769
|
+
"description": "Color scale (primary)"
|
|
2770
|
+
},
|
|
2771
|
+
"type": {
|
|
2772
|
+
"type": "string"
|
|
2773
|
+
},
|
|
2774
|
+
"visible": {
|
|
2775
|
+
"type": "boolean"
|
|
2776
|
+
},
|
|
2777
|
+
"width": {
|
|
2778
|
+
"type": "number"
|
|
2779
|
+
}
|
|
2780
|
+
},
|
|
2781
|
+
"required": [
|
|
2782
|
+
"type"
|
|
2783
|
+
],
|
|
2784
|
+
"type": "object"
|
|
2785
|
+
},
|
|
2786
|
+
"SampleDef": {
|
|
2787
|
+
"additionalProperties": false,
|
|
2788
|
+
"properties": {
|
|
2789
|
+
"attributes": {
|
|
2790
|
+
"additionalProperties": {
|
|
2791
|
+
"$ref": "#/definitions/SampleAttributeDef"
|
|
2792
|
+
},
|
|
2793
|
+
"type": "object"
|
|
2794
|
+
},
|
|
2795
|
+
"data": {
|
|
2796
|
+
"$ref": "#/definitions/Data"
|
|
2797
|
+
}
|
|
2798
|
+
},
|
|
2799
|
+
"type": "object"
|
|
2800
|
+
},
|
|
2801
|
+
"SampleParams": {
|
|
2802
|
+
"additionalProperties": false,
|
|
2803
|
+
"properties": {
|
|
2804
|
+
"size": {
|
|
2805
|
+
"description": "The maximum sample size.\n\n**Default:** `500`",
|
|
2806
|
+
"type": "number"
|
|
2807
|
+
},
|
|
2808
|
+
"type": {
|
|
2809
|
+
"const": "sample",
|
|
2810
|
+
"description": "The type of the transform to be applied",
|
|
2811
|
+
"type": "string"
|
|
2812
|
+
}
|
|
2813
|
+
},
|
|
2814
|
+
"required": [
|
|
2815
|
+
"type"
|
|
2816
|
+
],
|
|
2817
|
+
"type": "object"
|
|
2818
|
+
},
|
|
2819
|
+
"SampleSpec": {
|
|
2820
|
+
"additionalProperties": false,
|
|
2821
|
+
"properties": {
|
|
2822
|
+
"baseUrl": {
|
|
2823
|
+
"type": "string"
|
|
2824
|
+
},
|
|
2825
|
+
"configurableVisibility": {
|
|
2826
|
+
"description": "Is the visibility configurable interactively from the App. Configurability requires that the view has an explicitly specified name that is *unique* in within the view specification.\n\n**Default:** `false` for children of `layer`, `true` for others.",
|
|
2827
|
+
"type": "boolean"
|
|
2828
|
+
},
|
|
2829
|
+
"data": {
|
|
2830
|
+
"$ref": "#/definitions/Data"
|
|
2831
|
+
},
|
|
2832
|
+
"description": {
|
|
2833
|
+
"anyOf": [
|
|
2834
|
+
{
|
|
2835
|
+
"type": "string"
|
|
2836
|
+
},
|
|
2837
|
+
{
|
|
2838
|
+
"items": {
|
|
2839
|
+
"type": "string"
|
|
2840
|
+
},
|
|
2841
|
+
"type": "array"
|
|
2842
|
+
}
|
|
2843
|
+
],
|
|
2844
|
+
"description": "A description of the view. Multiple lines can be provided as an array."
|
|
2845
|
+
},
|
|
2846
|
+
"encoding": {
|
|
2847
|
+
"$ref": "#/definitions/Encoding"
|
|
2848
|
+
},
|
|
2849
|
+
"height": {
|
|
2850
|
+
"anyOf": [
|
|
2851
|
+
{
|
|
2852
|
+
"$ref": "#/definitions/SizeDef"
|
|
2853
|
+
},
|
|
2854
|
+
{
|
|
2855
|
+
"type": "number"
|
|
2856
|
+
},
|
|
2857
|
+
{
|
|
2858
|
+
"$ref": "#/definitions/Step"
|
|
2859
|
+
},
|
|
2860
|
+
{
|
|
2861
|
+
"const": "container",
|
|
2862
|
+
"type": "string"
|
|
2863
|
+
}
|
|
2864
|
+
]
|
|
2865
|
+
},
|
|
2866
|
+
"name": {
|
|
2867
|
+
"type": "string"
|
|
2868
|
+
},
|
|
2869
|
+
"opacity": {
|
|
2870
|
+
"$ref": "#/definitions/ViewOpacityDef",
|
|
2871
|
+
"description": "Opacity of the view and all its children.\n\n**Default:* `1.0`"
|
|
2872
|
+
},
|
|
2873
|
+
"padding": {
|
|
2874
|
+
"$ref": "#/definitions/PaddingConfig",
|
|
2875
|
+
"description": "Padding in pixels.\n\n**Default:* `0`"
|
|
2876
|
+
},
|
|
2877
|
+
"resolve": {
|
|
2878
|
+
"additionalProperties": false,
|
|
2879
|
+
"properties": {
|
|
2880
|
+
"axis": {
|
|
2881
|
+
"additionalProperties": {
|
|
2882
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
2883
|
+
},
|
|
2884
|
+
"properties": {
|
|
2885
|
+
"default": {
|
|
2886
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
2887
|
+
}
|
|
2888
|
+
},
|
|
2889
|
+
"type": "object"
|
|
2890
|
+
},
|
|
2891
|
+
"scale": {
|
|
2892
|
+
"additionalProperties": {
|
|
2893
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
2894
|
+
},
|
|
2895
|
+
"properties": {
|
|
2896
|
+
"default": {
|
|
2897
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
2898
|
+
}
|
|
2899
|
+
},
|
|
2900
|
+
"type": "object"
|
|
2901
|
+
}
|
|
2902
|
+
},
|
|
2903
|
+
"type": "object"
|
|
2904
|
+
},
|
|
2905
|
+
"samples": {
|
|
2906
|
+
"$ref": "#/definitions/SampleDef"
|
|
2907
|
+
},
|
|
2908
|
+
"spec": {
|
|
2909
|
+
"anyOf": [
|
|
2910
|
+
{
|
|
2911
|
+
"$ref": "#/definitions/LayerSpec"
|
|
2912
|
+
},
|
|
2913
|
+
{
|
|
2914
|
+
"$ref": "#/definitions/UnitSpec"
|
|
2915
|
+
}
|
|
2916
|
+
]
|
|
2917
|
+
},
|
|
2918
|
+
"stickySummaries": {
|
|
2919
|
+
"type": "boolean"
|
|
2920
|
+
},
|
|
2921
|
+
"title": {
|
|
2922
|
+
"type": "string"
|
|
2923
|
+
},
|
|
2924
|
+
"transform": {
|
|
2925
|
+
"items": {
|
|
2926
|
+
"$ref": "#/definitions/TransformParams"
|
|
2927
|
+
},
|
|
2928
|
+
"type": "array"
|
|
2929
|
+
},
|
|
2930
|
+
"visible": {
|
|
2931
|
+
"description": "Visibility of the view. An invisible view is removed from the layout and not rendered.\n\n**Default:** `true`",
|
|
2932
|
+
"type": "boolean"
|
|
2933
|
+
},
|
|
2934
|
+
"width": {
|
|
2935
|
+
"anyOf": [
|
|
2936
|
+
{
|
|
2937
|
+
"$ref": "#/definitions/SizeDef"
|
|
2938
|
+
},
|
|
2939
|
+
{
|
|
2940
|
+
"type": "number"
|
|
2941
|
+
},
|
|
2942
|
+
{
|
|
2943
|
+
"$ref": "#/definitions/Step"
|
|
2944
|
+
},
|
|
2945
|
+
{
|
|
2946
|
+
"const": "container",
|
|
2947
|
+
"type": "string"
|
|
2948
|
+
}
|
|
2949
|
+
]
|
|
2950
|
+
}
|
|
2951
|
+
},
|
|
2952
|
+
"required": [
|
|
2953
|
+
"samples",
|
|
2954
|
+
"spec"
|
|
2955
|
+
],
|
|
2956
|
+
"type": "object"
|
|
2957
|
+
},
|
|
2958
|
+
"Scalar": {
|
|
2959
|
+
"type": [
|
|
2960
|
+
"string",
|
|
2961
|
+
"number",
|
|
2962
|
+
"boolean"
|
|
2963
|
+
]
|
|
2964
|
+
},
|
|
2965
|
+
"ScalarDomain": {
|
|
2966
|
+
"anyOf": [
|
|
2967
|
+
{
|
|
2968
|
+
"$ref": "#/definitions/NumericDomain"
|
|
2969
|
+
},
|
|
2970
|
+
{
|
|
2971
|
+
"items": {
|
|
2972
|
+
"type": "string"
|
|
2973
|
+
},
|
|
2974
|
+
"type": "array"
|
|
2975
|
+
},
|
|
2976
|
+
{
|
|
2977
|
+
"items": {
|
|
2978
|
+
"type": "boolean"
|
|
2979
|
+
},
|
|
2980
|
+
"type": "array"
|
|
2981
|
+
}
|
|
2982
|
+
]
|
|
2983
|
+
},
|
|
2984
|
+
"Scale": {
|
|
2985
|
+
"additionalProperties": false,
|
|
2986
|
+
"properties": {
|
|
2987
|
+
"align": {
|
|
2988
|
+
"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`",
|
|
2989
|
+
"type": "number"
|
|
2990
|
+
},
|
|
2991
|
+
"base": {
|
|
2992
|
+
"description": "The logarithm base of the `log` scale (default `10`).",
|
|
2993
|
+
"type": "number"
|
|
2994
|
+
},
|
|
2995
|
+
"bins": {
|
|
2996
|
+
"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.",
|
|
2997
|
+
"items": {
|
|
2998
|
+
"type": "number"
|
|
2999
|
+
},
|
|
3000
|
+
"type": "array"
|
|
3001
|
+
},
|
|
3002
|
+
"clamp": {
|
|
3003
|
+
"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).",
|
|
3004
|
+
"type": "boolean"
|
|
3005
|
+
},
|
|
3006
|
+
"constant": {
|
|
3007
|
+
"description": "A constant determining the slope of the symlog function around zero. Only used for `symlog` scales.\n\n__Default value:__ `1`",
|
|
3008
|
+
"type": "number"
|
|
3009
|
+
},
|
|
3010
|
+
"domain": {
|
|
3011
|
+
"anyOf": [
|
|
3012
|
+
{
|
|
3013
|
+
"$ref": "#/definitions/ScalarDomain"
|
|
3014
|
+
},
|
|
3015
|
+
{
|
|
3016
|
+
"$ref": "#/definitions/ComplexDomain"
|
|
3017
|
+
}
|
|
3018
|
+
],
|
|
3019
|
+
"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."
|
|
3020
|
+
},
|
|
3021
|
+
"domainMax": {
|
|
3022
|
+
"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.",
|
|
3023
|
+
"type": "number"
|
|
3024
|
+
},
|
|
3025
|
+
"domainMid": {
|
|
3026
|
+
"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.",
|
|
3027
|
+
"type": "number"
|
|
3028
|
+
},
|
|
3029
|
+
"domainMin": {
|
|
3030
|
+
"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.",
|
|
3031
|
+
"type": "number"
|
|
3032
|
+
},
|
|
3033
|
+
"exponent": {
|
|
3034
|
+
"description": "The exponent of the `pow` scale.",
|
|
3035
|
+
"type": "number"
|
|
3036
|
+
},
|
|
3037
|
+
"fp64": {
|
|
3038
|
+
"description": "Use emulated 64bit floating points on the GPU to increase precision.\n\nEmulation has a performance cost when compared to the native 32bit processing, but the effect is negligible in the most cases.\n\n__Default value:__ `true` for `\"locus\"` scale, `false` for others.",
|
|
3039
|
+
"type": "boolean"
|
|
3040
|
+
},
|
|
3041
|
+
"interpolate": {
|
|
3042
|
+
"anyOf": [
|
|
3043
|
+
{
|
|
3044
|
+
"$ref": "#/definitions/ScaleInterpolate"
|
|
3045
|
+
},
|
|
3046
|
+
{
|
|
3047
|
+
"$ref": "#/definitions/ScaleInterpolateParams"
|
|
3048
|
+
}
|
|
3049
|
+
],
|
|
3050
|
+
"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`"
|
|
3051
|
+
},
|
|
3052
|
+
"name": {
|
|
3053
|
+
"description": "The name of the scale. Names are optional but allow the scales to be referenced and found with the API.",
|
|
3054
|
+
"type": "string"
|
|
3055
|
+
},
|
|
3056
|
+
"nice": {
|
|
3057
|
+
"anyOf": [
|
|
3058
|
+
{
|
|
3059
|
+
"type": "boolean"
|
|
3060
|
+
},
|
|
3061
|
+
{
|
|
3062
|
+
"type": "number"
|
|
3063
|
+
},
|
|
3064
|
+
{
|
|
3065
|
+
"additionalProperties": false,
|
|
3066
|
+
"properties": {
|
|
3067
|
+
"interval": {
|
|
3068
|
+
"type": "string"
|
|
3069
|
+
},
|
|
3070
|
+
"step": {
|
|
3071
|
+
"type": "number"
|
|
3072
|
+
}
|
|
3073
|
+
},
|
|
3074
|
+
"required": [
|
|
3075
|
+
"interval",
|
|
3076
|
+
"step"
|
|
3077
|
+
],
|
|
3078
|
+
"type": "object"
|
|
3079
|
+
}
|
|
3080
|
+
],
|
|
3081
|
+
"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."
|
|
3082
|
+
},
|
|
3083
|
+
"padding": {
|
|
3084
|
+
"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_.",
|
|
3085
|
+
"minimum": 0,
|
|
3086
|
+
"type": "number"
|
|
3087
|
+
},
|
|
3088
|
+
"paddingInner": {
|
|
3089
|
+
"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`.",
|
|
3090
|
+
"maximum": 1,
|
|
3091
|
+
"minimum": 0,
|
|
3092
|
+
"type": "number"
|
|
3093
|
+
},
|
|
3094
|
+
"paddingOuter": {
|
|
3095
|
+
"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_.",
|
|
3096
|
+
"maximum": 1,
|
|
3097
|
+
"minimum": 0,
|
|
3098
|
+
"type": "number"
|
|
3099
|
+
},
|
|
3100
|
+
"range": {
|
|
3101
|
+
"anyOf": [
|
|
3102
|
+
{
|
|
3103
|
+
"items": {
|
|
3104
|
+
"type": "number"
|
|
3105
|
+
},
|
|
3106
|
+
"type": "array"
|
|
3107
|
+
},
|
|
3108
|
+
{
|
|
3109
|
+
"items": {
|
|
3110
|
+
"type": "string"
|
|
3111
|
+
},
|
|
3112
|
+
"type": "array"
|
|
3113
|
+
},
|
|
3114
|
+
{
|
|
3115
|
+
"type": "string"
|
|
3116
|
+
}
|
|
3117
|
+
],
|
|
3118
|
+
"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`)."
|
|
3119
|
+
},
|
|
3120
|
+
"reverse": {
|
|
3121
|
+
"description": "If true, reverses the order of the scale range.\n\n__Default value:__ `false`.",
|
|
3122
|
+
"type": "boolean"
|
|
3123
|
+
},
|
|
3124
|
+
"round": {
|
|
3125
|
+
"description": "If `true`, rounds numeric output values to integers. This can be helpful for snapping to the pixel grid.\n\n__Default value:__ `false`.",
|
|
3126
|
+
"type": "boolean"
|
|
3127
|
+
},
|
|
3128
|
+
"scheme": {
|
|
3129
|
+
"anyOf": [
|
|
3130
|
+
{
|
|
3131
|
+
"type": "string"
|
|
3132
|
+
},
|
|
3133
|
+
{
|
|
3134
|
+
"$ref": "#/definitions/SchemeParams"
|
|
3135
|
+
}
|
|
3136
|
+
],
|
|
3137
|
+
"description": "A string indicating a color [scheme](https://vega.github.io/vega-lite/docs/scale.html#scheme) name (e.g., `\"category10\"` or `\"blues\"`) or a [scheme parameter object](https://vega.github.io/vega-lite/docs/scale.html#scheme-params).\n\nDiscrete color schemes may be used with [discrete](https://vega.github.io/vega-lite/docs/scale.html#discrete) or [discretizing](https://vega.github.io/vega-lite/docs/scale.html#discretizing) scales. Continuous color schemes are intended for use with color scales.\n\nFor the full list of supported schemes, please refer to the [Vega Scheme](https://vega.github.io/vega/docs/schemes/#reference) reference."
|
|
3138
|
+
},
|
|
3139
|
+
"type": {
|
|
3140
|
+
"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).",
|
|
3141
|
+
"type": "string"
|
|
3142
|
+
},
|
|
3143
|
+
"zero": {
|
|
3144
|
+
"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`.",
|
|
3145
|
+
"type": "boolean"
|
|
3146
|
+
},
|
|
3147
|
+
"zoom": {
|
|
3148
|
+
"anyOf": [
|
|
3149
|
+
{
|
|
3150
|
+
"type": "boolean"
|
|
3151
|
+
},
|
|
3152
|
+
{
|
|
3153
|
+
"$ref": "#/definitions/ZoomParams"
|
|
3154
|
+
}
|
|
3155
|
+
],
|
|
3156
|
+
"description": "If `true` and the scale is used on a positional channel, it can bee zoomed and translated interactively."
|
|
3157
|
+
}
|
|
3158
|
+
},
|
|
3159
|
+
"type": "object"
|
|
3160
|
+
},
|
|
3161
|
+
"ScaleInterpolate": {
|
|
3162
|
+
"enum": [
|
|
3163
|
+
"rgb",
|
|
3164
|
+
"lab",
|
|
3165
|
+
"hcl",
|
|
3166
|
+
"hsl",
|
|
3167
|
+
"hsl-long",
|
|
3168
|
+
"hcl-long",
|
|
3169
|
+
"cubehelix",
|
|
3170
|
+
"cubehelix-long"
|
|
3171
|
+
],
|
|
3172
|
+
"type": "string"
|
|
3173
|
+
},
|
|
3174
|
+
"ScaleInterpolateParams": {
|
|
3175
|
+
"additionalProperties": false,
|
|
3176
|
+
"properties": {
|
|
3177
|
+
"gamma": {
|
|
3178
|
+
"type": "number"
|
|
3179
|
+
},
|
|
3180
|
+
"type": {
|
|
3181
|
+
"enum": [
|
|
3182
|
+
"rgb",
|
|
3183
|
+
"cubehelix",
|
|
3184
|
+
"cubehelix-long"
|
|
3185
|
+
],
|
|
3186
|
+
"type": "string"
|
|
3187
|
+
}
|
|
3188
|
+
},
|
|
3189
|
+
"required": [
|
|
3190
|
+
"type"
|
|
3191
|
+
],
|
|
3192
|
+
"type": "object"
|
|
3193
|
+
},
|
|
3194
|
+
"SchemeParams": {
|
|
3195
|
+
"additionalProperties": false,
|
|
3196
|
+
"properties": {
|
|
3197
|
+
"count": {
|
|
3198
|
+
"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.",
|
|
3199
|
+
"type": "number"
|
|
3200
|
+
},
|
|
3201
|
+
"extent": {
|
|
3202
|
+
"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.",
|
|
3203
|
+
"items": {
|
|
3204
|
+
"type": "number"
|
|
3205
|
+
},
|
|
3206
|
+
"type": "array"
|
|
3207
|
+
},
|
|
3208
|
+
"name": {
|
|
3209
|
+
"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.",
|
|
3210
|
+
"type": "string"
|
|
3211
|
+
}
|
|
3212
|
+
},
|
|
3213
|
+
"required": [
|
|
3214
|
+
"name"
|
|
3215
|
+
],
|
|
3216
|
+
"type": "object"
|
|
3217
|
+
},
|
|
3218
|
+
"SecondaryPositionalChannel": {
|
|
3219
|
+
"enum": [
|
|
3220
|
+
"x2",
|
|
3221
|
+
"y2"
|
|
3222
|
+
],
|
|
3223
|
+
"type": "string"
|
|
3224
|
+
},
|
|
3225
|
+
"SequenceGenerator": {
|
|
3226
|
+
"additionalProperties": false,
|
|
3227
|
+
"properties": {
|
|
3228
|
+
"name": {
|
|
3229
|
+
"description": "Provide a placeholder name and bind data at runtime.",
|
|
3230
|
+
"type": "string"
|
|
3231
|
+
},
|
|
3232
|
+
"sequence": {
|
|
3233
|
+
"$ref": "#/definitions/SequenceParams",
|
|
3234
|
+
"description": "Generate a sequence of numbers."
|
|
3235
|
+
}
|
|
3236
|
+
},
|
|
3237
|
+
"required": [
|
|
3238
|
+
"sequence"
|
|
3239
|
+
],
|
|
3240
|
+
"type": "object"
|
|
3241
|
+
},
|
|
3242
|
+
"SequenceParams": {
|
|
3243
|
+
"additionalProperties": false,
|
|
3244
|
+
"properties": {
|
|
3245
|
+
"as": {
|
|
3246
|
+
"$ref": "#/definitions/FieldName",
|
|
3247
|
+
"description": "The name of the generated sequence field.\n\n__Default value:__ `\"data\"`"
|
|
3248
|
+
},
|
|
3249
|
+
"start": {
|
|
3250
|
+
"description": "The starting value of the sequence (inclusive).",
|
|
3251
|
+
"type": "number"
|
|
3252
|
+
},
|
|
3253
|
+
"step": {
|
|
3254
|
+
"description": "The step value between sequence entries.\n\n__Default value:__ `1`",
|
|
3255
|
+
"type": "number"
|
|
3256
|
+
},
|
|
3257
|
+
"stop": {
|
|
3258
|
+
"description": "The ending value of the sequence (exclusive).",
|
|
3259
|
+
"type": "number"
|
|
3260
|
+
}
|
|
3261
|
+
},
|
|
3262
|
+
"required": [
|
|
3263
|
+
"start",
|
|
3264
|
+
"stop"
|
|
3265
|
+
],
|
|
3266
|
+
"type": "object"
|
|
3267
|
+
},
|
|
3268
|
+
"SizeDef": {
|
|
3269
|
+
"additionalProperties": false,
|
|
3270
|
+
"properties": {
|
|
3271
|
+
"grow": {
|
|
3272
|
+
"description": "Share of the remaining space",
|
|
3273
|
+
"type": "number"
|
|
3274
|
+
},
|
|
3275
|
+
"px": {
|
|
3276
|
+
"description": "Size in pixels",
|
|
3277
|
+
"type": "number"
|
|
3278
|
+
}
|
|
3279
|
+
},
|
|
3280
|
+
"type": "object"
|
|
3281
|
+
},
|
|
3282
|
+
"SortOrder": {
|
|
3283
|
+
"enum": [
|
|
3284
|
+
"ascending",
|
|
3285
|
+
"descending"
|
|
3286
|
+
],
|
|
3287
|
+
"type": "string"
|
|
3288
|
+
},
|
|
3289
|
+
"StackParams": {
|
|
3290
|
+
"additionalProperties": false,
|
|
3291
|
+
"properties": {
|
|
3292
|
+
"as": {
|
|
3293
|
+
"description": "Fields to write the stacked values.\n\n**Default:** `[\"y0\", \"y1\"]`",
|
|
3294
|
+
"items": {
|
|
3295
|
+
"type": "string"
|
|
3296
|
+
},
|
|
3297
|
+
"type": "array"
|
|
3298
|
+
},
|
|
3299
|
+
"baseField": {
|
|
3300
|
+
"$ref": "#/definitions/Field",
|
|
3301
|
+
"description": "The field that contains the base or amino acid. Used for information content calculation when the offset is `\"information\"`. The data items that have `null` in the baseField are considered gaps and they are taken into account when scaling the the locus' information content."
|
|
3302
|
+
},
|
|
3303
|
+
"cardinality": {
|
|
3304
|
+
"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`;",
|
|
3305
|
+
"type": "number"
|
|
3306
|
+
},
|
|
3307
|
+
"field": {
|
|
3308
|
+
"$ref": "#/definitions/Field",
|
|
3309
|
+
"description": "The field to stack. If no field is defined, a constant value of one is assumed."
|
|
3310
|
+
},
|
|
3311
|
+
"groupby": {
|
|
3312
|
+
"description": "The fields to be used for forming groups for different stacks.",
|
|
3313
|
+
"items": {
|
|
3314
|
+
"$ref": "#/definitions/Field"
|
|
3315
|
+
},
|
|
3316
|
+
"type": "array"
|
|
3317
|
+
},
|
|
3318
|
+
"offset": {
|
|
3319
|
+
"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.",
|
|
3320
|
+
"enum": [
|
|
3321
|
+
"zero",
|
|
3322
|
+
"center",
|
|
3323
|
+
"normalize",
|
|
3324
|
+
"information"
|
|
3325
|
+
],
|
|
3326
|
+
"type": "string"
|
|
3327
|
+
},
|
|
3328
|
+
"sort": {
|
|
3329
|
+
"$ref": "#/definitions/CompareParams",
|
|
3330
|
+
"description": "The sort order of data in each stack."
|
|
3331
|
+
},
|
|
3332
|
+
"type": {
|
|
3333
|
+
"const": "stack",
|
|
3334
|
+
"description": "The type of the transform to be applied",
|
|
3335
|
+
"type": "string"
|
|
3336
|
+
}
|
|
3337
|
+
},
|
|
3338
|
+
"required": [
|
|
3339
|
+
"as",
|
|
3340
|
+
"groupby",
|
|
3341
|
+
"type"
|
|
3342
|
+
],
|
|
3343
|
+
"type": "object"
|
|
3344
|
+
},
|
|
3345
|
+
"Step": {
|
|
3346
|
+
"additionalProperties": false,
|
|
3347
|
+
"properties": {
|
|
3348
|
+
"step": {
|
|
3349
|
+
"type": "number"
|
|
3350
|
+
}
|
|
3351
|
+
},
|
|
3352
|
+
"required": [
|
|
3353
|
+
"step"
|
|
3354
|
+
],
|
|
3355
|
+
"type": "object"
|
|
3356
|
+
},
|
|
3357
|
+
"Tooltip": {
|
|
3358
|
+
"anyOf": [
|
|
3359
|
+
{
|
|
3360
|
+
"$ref": "#/definitions/HandledTooltip"
|
|
3361
|
+
},
|
|
3362
|
+
{
|
|
3363
|
+
"type": "null"
|
|
3364
|
+
}
|
|
3365
|
+
]
|
|
3366
|
+
},
|
|
3367
|
+
"TransformParams": {
|
|
3368
|
+
"anyOf": [
|
|
3369
|
+
{
|
|
3370
|
+
"$ref": "#/definitions/AggregateParams"
|
|
3371
|
+
},
|
|
3372
|
+
{
|
|
3373
|
+
"$ref": "#/definitions/CollectParams"
|
|
3374
|
+
},
|
|
3375
|
+
{
|
|
3376
|
+
"$ref": "#/definitions/CoverageParams"
|
|
3377
|
+
},
|
|
3378
|
+
{
|
|
3379
|
+
"$ref": "#/definitions/FlattenDelimitedParams"
|
|
3380
|
+
},
|
|
3381
|
+
{
|
|
3382
|
+
"$ref": "#/definitions/FormulaParams"
|
|
3383
|
+
},
|
|
3384
|
+
{
|
|
3385
|
+
"$ref": "#/definitions/FilterParams"
|
|
3386
|
+
},
|
|
3387
|
+
{
|
|
3388
|
+
"$ref": "#/definitions/FilterScoredLabelsParams"
|
|
3389
|
+
},
|
|
3390
|
+
{
|
|
3391
|
+
"$ref": "#/definitions/FlattenCompressedExonsParams"
|
|
3392
|
+
},
|
|
3393
|
+
{
|
|
3394
|
+
"$ref": "#/definitions/FlattenSequenceParams"
|
|
3395
|
+
},
|
|
3396
|
+
{
|
|
3397
|
+
"$ref": "#/definitions/IdentifierParams"
|
|
3398
|
+
},
|
|
3399
|
+
{
|
|
3400
|
+
"$ref": "#/definitions/LinearizeGenomicCoordinateParams"
|
|
3401
|
+
},
|
|
3402
|
+
{
|
|
3403
|
+
"$ref": "#/definitions/MeasureTextParams"
|
|
3404
|
+
},
|
|
3405
|
+
{
|
|
3406
|
+
"$ref": "#/definitions/MergeFacetsParams"
|
|
3407
|
+
},
|
|
3408
|
+
{
|
|
3409
|
+
"$ref": "#/definitions/PileupParams"
|
|
3410
|
+
},
|
|
3411
|
+
{
|
|
3412
|
+
"$ref": "#/definitions/ProjectParams"
|
|
3413
|
+
},
|
|
3414
|
+
{
|
|
3415
|
+
"$ref": "#/definitions/RegexExtractParams"
|
|
3416
|
+
},
|
|
3417
|
+
{
|
|
3418
|
+
"$ref": "#/definitions/RegexFoldParams"
|
|
3419
|
+
},
|
|
3420
|
+
{
|
|
3421
|
+
"$ref": "#/definitions/SampleParams"
|
|
3422
|
+
},
|
|
3423
|
+
{
|
|
3424
|
+
"$ref": "#/definitions/StackParams"
|
|
3425
|
+
}
|
|
3426
|
+
]
|
|
3427
|
+
},
|
|
3428
|
+
"UnitSpec": {
|
|
3429
|
+
"additionalProperties": false,
|
|
3430
|
+
"properties": {
|
|
3431
|
+
"aggregateSamples": {
|
|
3432
|
+
"items": {
|
|
3433
|
+
"anyOf": [
|
|
3434
|
+
{
|
|
3435
|
+
"$ref": "#/definitions/UnitSpec"
|
|
3436
|
+
},
|
|
3437
|
+
{
|
|
3438
|
+
"$ref": "#/definitions/LayerSpec"
|
|
3439
|
+
}
|
|
3440
|
+
]
|
|
3441
|
+
},
|
|
3442
|
+
"type": "array"
|
|
3443
|
+
},
|
|
3444
|
+
"baseUrl": {
|
|
3445
|
+
"type": "string"
|
|
3446
|
+
},
|
|
3447
|
+
"configurableVisibility": {
|
|
3448
|
+
"description": "Is the visibility configurable interactively from the App. Configurability requires that the view has an explicitly specified name that is *unique* in within the view specification.\n\n**Default:** `false` for children of `layer`, `true` for others.",
|
|
3449
|
+
"type": "boolean"
|
|
3450
|
+
},
|
|
3451
|
+
"data": {
|
|
3452
|
+
"$ref": "#/definitions/Data"
|
|
3453
|
+
},
|
|
3454
|
+
"description": {
|
|
3455
|
+
"anyOf": [
|
|
3456
|
+
{
|
|
3457
|
+
"type": "string"
|
|
3458
|
+
},
|
|
3459
|
+
{
|
|
3460
|
+
"items": {
|
|
3461
|
+
"type": "string"
|
|
3462
|
+
},
|
|
3463
|
+
"type": "array"
|
|
3464
|
+
}
|
|
3465
|
+
],
|
|
3466
|
+
"description": "A description of the view. Multiple lines can be provided as an array."
|
|
3467
|
+
},
|
|
3468
|
+
"encoding": {
|
|
3469
|
+
"$ref": "#/definitions/Encoding"
|
|
3470
|
+
},
|
|
3471
|
+
"height": {
|
|
3472
|
+
"anyOf": [
|
|
3473
|
+
{
|
|
3474
|
+
"$ref": "#/definitions/SizeDef"
|
|
3475
|
+
},
|
|
3476
|
+
{
|
|
3477
|
+
"type": "number"
|
|
3478
|
+
},
|
|
3479
|
+
{
|
|
3480
|
+
"$ref": "#/definitions/Step"
|
|
3481
|
+
},
|
|
3482
|
+
{
|
|
3483
|
+
"const": "container",
|
|
3484
|
+
"type": "string"
|
|
3485
|
+
}
|
|
3486
|
+
]
|
|
3487
|
+
},
|
|
3488
|
+
"mark": {
|
|
3489
|
+
"anyOf": [
|
|
3490
|
+
{
|
|
3491
|
+
"$ref": "#/definitions/MarkType"
|
|
3492
|
+
},
|
|
3493
|
+
{
|
|
3494
|
+
"$ref": "#/definitions/MarkConfigAndType"
|
|
3495
|
+
}
|
|
3496
|
+
]
|
|
3497
|
+
},
|
|
3498
|
+
"name": {
|
|
3499
|
+
"type": "string"
|
|
3500
|
+
},
|
|
3501
|
+
"opacity": {
|
|
3502
|
+
"$ref": "#/definitions/ViewOpacityDef",
|
|
3503
|
+
"description": "Opacity of the view and all its children.\n\n**Default:* `1.0`"
|
|
3504
|
+
},
|
|
3505
|
+
"padding": {
|
|
3506
|
+
"$ref": "#/definitions/PaddingConfig",
|
|
3507
|
+
"description": "Padding in pixels.\n\n**Default:* `0`"
|
|
3508
|
+
},
|
|
3509
|
+
"resolve": {
|
|
3510
|
+
"additionalProperties": false,
|
|
3511
|
+
"properties": {
|
|
3512
|
+
"axis": {
|
|
3513
|
+
"additionalProperties": {
|
|
3514
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
3515
|
+
},
|
|
3516
|
+
"properties": {
|
|
3517
|
+
"default": {
|
|
3518
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
3519
|
+
}
|
|
3520
|
+
},
|
|
3521
|
+
"type": "object"
|
|
3522
|
+
},
|
|
3523
|
+
"scale": {
|
|
3524
|
+
"additionalProperties": {
|
|
3525
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
3526
|
+
},
|
|
3527
|
+
"properties": {
|
|
3528
|
+
"default": {
|
|
3529
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
3530
|
+
}
|
|
3531
|
+
},
|
|
3532
|
+
"type": "object"
|
|
3533
|
+
}
|
|
3534
|
+
},
|
|
3535
|
+
"type": "object"
|
|
3536
|
+
},
|
|
3537
|
+
"title": {
|
|
3538
|
+
"type": "string"
|
|
3539
|
+
},
|
|
3540
|
+
"transform": {
|
|
3541
|
+
"items": {
|
|
3542
|
+
"$ref": "#/definitions/TransformParams"
|
|
3543
|
+
},
|
|
3544
|
+
"type": "array"
|
|
3545
|
+
},
|
|
3546
|
+
"view": {
|
|
3547
|
+
"$ref": "#/definitions/ViewConfig"
|
|
3548
|
+
},
|
|
3549
|
+
"visible": {
|
|
3550
|
+
"description": "Visibility of the view. An invisible view is removed from the layout and not rendered.\n\n**Default:** `true`",
|
|
3551
|
+
"type": "boolean"
|
|
3552
|
+
},
|
|
3553
|
+
"width": {
|
|
3554
|
+
"anyOf": [
|
|
3555
|
+
{
|
|
3556
|
+
"$ref": "#/definitions/SizeDef"
|
|
3557
|
+
},
|
|
3558
|
+
{
|
|
3559
|
+
"type": "number"
|
|
3560
|
+
},
|
|
3561
|
+
{
|
|
3562
|
+
"$ref": "#/definitions/Step"
|
|
3563
|
+
},
|
|
3564
|
+
{
|
|
3565
|
+
"const": "container",
|
|
3566
|
+
"type": "string"
|
|
3567
|
+
}
|
|
3568
|
+
]
|
|
3569
|
+
}
|
|
3570
|
+
},
|
|
3571
|
+
"required": [
|
|
3572
|
+
"mark"
|
|
3573
|
+
],
|
|
3574
|
+
"type": "object"
|
|
3575
|
+
},
|
|
3576
|
+
"UrlData": {
|
|
3577
|
+
"additionalProperties": false,
|
|
3578
|
+
"properties": {
|
|
3579
|
+
"format": {
|
|
3580
|
+
"$ref": "#/definitions/DataFormat",
|
|
3581
|
+
"description": "An object that specifies the format for parsing the data."
|
|
3582
|
+
},
|
|
3583
|
+
"name": {
|
|
3584
|
+
"description": "Provide a placeholder name and bind data at runtime.",
|
|
3585
|
+
"type": "string"
|
|
3586
|
+
},
|
|
3587
|
+
"url": {
|
|
3588
|
+
"anyOf": [
|
|
3589
|
+
{
|
|
3590
|
+
"type": "string"
|
|
3591
|
+
},
|
|
3592
|
+
{
|
|
3593
|
+
"items": {
|
|
3594
|
+
"type": "string"
|
|
3595
|
+
},
|
|
3596
|
+
"type": "array"
|
|
3597
|
+
}
|
|
3598
|
+
],
|
|
3599
|
+
"description": "An URL or an array of URLs from which to load the data set. Use the `format.type` property to ensure the loaded data is correctly parsed."
|
|
3600
|
+
}
|
|
3601
|
+
},
|
|
3602
|
+
"required": [
|
|
3603
|
+
"url"
|
|
3604
|
+
],
|
|
3605
|
+
"type": "object"
|
|
3606
|
+
},
|
|
3607
|
+
"VConcatSpec": {
|
|
3608
|
+
"additionalProperties": false,
|
|
3609
|
+
"properties": {
|
|
3610
|
+
"baseUrl": {
|
|
3611
|
+
"type": "string"
|
|
3612
|
+
},
|
|
3613
|
+
"configurableVisibility": {
|
|
3614
|
+
"description": "Is the visibility configurable interactively from the App. Configurability requires that the view has an explicitly specified name that is *unique* in within the view specification.\n\n**Default:** `false` for children of `layer`, `true` for others.",
|
|
3615
|
+
"type": "boolean"
|
|
3616
|
+
},
|
|
3617
|
+
"data": {
|
|
3618
|
+
"$ref": "#/definitions/Data"
|
|
3619
|
+
},
|
|
3620
|
+
"description": {
|
|
3621
|
+
"anyOf": [
|
|
3622
|
+
{
|
|
3623
|
+
"type": "string"
|
|
3624
|
+
},
|
|
3625
|
+
{
|
|
3626
|
+
"items": {
|
|
3627
|
+
"type": "string"
|
|
3628
|
+
},
|
|
3629
|
+
"type": "array"
|
|
3630
|
+
}
|
|
3631
|
+
],
|
|
3632
|
+
"description": "A description of the view. Multiple lines can be provided as an array."
|
|
3633
|
+
},
|
|
3634
|
+
"encoding": {
|
|
3635
|
+
"$ref": "#/definitions/Encoding"
|
|
3636
|
+
},
|
|
3637
|
+
"height": {
|
|
3638
|
+
"anyOf": [
|
|
3639
|
+
{
|
|
3640
|
+
"$ref": "#/definitions/SizeDef"
|
|
3641
|
+
},
|
|
3642
|
+
{
|
|
3643
|
+
"type": "number"
|
|
3644
|
+
},
|
|
3645
|
+
{
|
|
3646
|
+
"$ref": "#/definitions/Step"
|
|
3647
|
+
},
|
|
3648
|
+
{
|
|
3649
|
+
"const": "container",
|
|
3650
|
+
"type": "string"
|
|
3651
|
+
}
|
|
3652
|
+
]
|
|
3653
|
+
},
|
|
3654
|
+
"name": {
|
|
3655
|
+
"type": "string"
|
|
3656
|
+
},
|
|
3657
|
+
"opacity": {
|
|
3658
|
+
"$ref": "#/definitions/ViewOpacityDef",
|
|
3659
|
+
"description": "Opacity of the view and all its children.\n\n**Default:* `1.0`"
|
|
3660
|
+
},
|
|
3661
|
+
"padding": {
|
|
3662
|
+
"$ref": "#/definitions/PaddingConfig",
|
|
3663
|
+
"description": "Padding in pixels.\n\n**Default:* `0`"
|
|
3664
|
+
},
|
|
3665
|
+
"resolve": {
|
|
3666
|
+
"additionalProperties": false,
|
|
3667
|
+
"properties": {
|
|
3668
|
+
"axis": {
|
|
3669
|
+
"additionalProperties": {
|
|
3670
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
3671
|
+
},
|
|
3672
|
+
"properties": {
|
|
3673
|
+
"default": {
|
|
3674
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
3675
|
+
}
|
|
3676
|
+
},
|
|
3677
|
+
"type": "object"
|
|
3678
|
+
},
|
|
3679
|
+
"scale": {
|
|
3680
|
+
"additionalProperties": {
|
|
3681
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
3682
|
+
},
|
|
3683
|
+
"properties": {
|
|
3684
|
+
"default": {
|
|
3685
|
+
"$ref": "#/definitions/ResolutionBehavior"
|
|
3686
|
+
}
|
|
3687
|
+
},
|
|
3688
|
+
"type": "object"
|
|
3689
|
+
}
|
|
3690
|
+
},
|
|
3691
|
+
"type": "object"
|
|
3692
|
+
},
|
|
3693
|
+
"spacing": {
|
|
3694
|
+
"type": "number"
|
|
3695
|
+
},
|
|
3696
|
+
"title": {
|
|
3697
|
+
"type": "string"
|
|
3698
|
+
},
|
|
3699
|
+
"transform": {
|
|
3700
|
+
"items": {
|
|
3701
|
+
"$ref": "#/definitions/TransformParams"
|
|
3702
|
+
},
|
|
3703
|
+
"type": "array"
|
|
3704
|
+
},
|
|
3705
|
+
"vconcat": {
|
|
3706
|
+
"items": {
|
|
3707
|
+
"anyOf": [
|
|
3708
|
+
{
|
|
3709
|
+
"$ref": "#/definitions/ViewSpec"
|
|
3710
|
+
},
|
|
3711
|
+
{
|
|
3712
|
+
"$ref": "#/definitions/ImportSpec"
|
|
3713
|
+
}
|
|
3714
|
+
]
|
|
3715
|
+
},
|
|
3716
|
+
"type": "array"
|
|
3717
|
+
},
|
|
3718
|
+
"visible": {
|
|
3719
|
+
"description": "Visibility of the view. An invisible view is removed from the layout and not rendered.\n\n**Default:** `true`",
|
|
3720
|
+
"type": "boolean"
|
|
3721
|
+
},
|
|
3722
|
+
"width": {
|
|
3723
|
+
"anyOf": [
|
|
3724
|
+
{
|
|
3725
|
+
"$ref": "#/definitions/SizeDef"
|
|
3726
|
+
},
|
|
3727
|
+
{
|
|
3728
|
+
"type": "number"
|
|
3729
|
+
},
|
|
3730
|
+
{
|
|
3731
|
+
"$ref": "#/definitions/Step"
|
|
3732
|
+
},
|
|
3733
|
+
{
|
|
3734
|
+
"const": "container",
|
|
3735
|
+
"type": "string"
|
|
3736
|
+
}
|
|
3737
|
+
]
|
|
3738
|
+
}
|
|
3739
|
+
},
|
|
3740
|
+
"required": [
|
|
3741
|
+
"vconcat"
|
|
3742
|
+
],
|
|
3743
|
+
"type": "object"
|
|
3744
|
+
},
|
|
3745
|
+
"ValueDef": {
|
|
3746
|
+
"additionalProperties": false,
|
|
3747
|
+
"properties": {
|
|
3748
|
+
"title": {
|
|
3749
|
+
"type": [
|
|
3750
|
+
"string",
|
|
3751
|
+
"null"
|
|
3752
|
+
]
|
|
3753
|
+
},
|
|
3754
|
+
"value": {
|
|
3755
|
+
"$ref": "#/definitions/Scalar",
|
|
3756
|
+
"description": "A constant value in the context of the range"
|
|
3757
|
+
}
|
|
3758
|
+
},
|
|
3759
|
+
"required": [
|
|
3760
|
+
"value"
|
|
3761
|
+
],
|
|
3762
|
+
"type": "object"
|
|
3763
|
+
},
|
|
3764
|
+
"ViewConfig": {
|
|
3765
|
+
"additionalProperties": false,
|
|
3766
|
+
"properties": {
|
|
3767
|
+
"cornerRadius": {
|
|
3768
|
+
"description": "Radius of the rounded corners.\n\n**Default value:** `0`",
|
|
3769
|
+
"type": "number"
|
|
3770
|
+
},
|
|
3771
|
+
"cornerRadiusBottomLeft": {
|
|
3772
|
+
"description": "Radius of the bottom left rounded corner. Has higher precedence than `cornerRadius`.\n\n**Default value:** (None)",
|
|
3773
|
+
"type": "number"
|
|
3774
|
+
},
|
|
3775
|
+
"cornerRadiusBottomRight": {
|
|
3776
|
+
"description": "Radius of the bottom right rounded corner. Has higher precedence than `cornerRadius`.\n\n**Default value:** (None)",
|
|
3777
|
+
"type": "number"
|
|
3778
|
+
},
|
|
3779
|
+
"cornerRadiusTopLeft": {
|
|
3780
|
+
"description": "Radius of the top left rounded corner. Has higher precedence than `cornerRadius`.\n\n**Default value:** (None)",
|
|
3781
|
+
"type": "number"
|
|
3782
|
+
},
|
|
3783
|
+
"cornerRadiusTopRight": {
|
|
3784
|
+
"description": "Radius of the top right rounded corner. Has higher precedence than `cornerRadius`.\n\n**Default value:** (None)",
|
|
3785
|
+
"type": "number"
|
|
3786
|
+
},
|
|
3787
|
+
"fill": {
|
|
3788
|
+
"type": "string"
|
|
3789
|
+
},
|
|
3790
|
+
"fillOpacity": {
|
|
3791
|
+
"type": "number"
|
|
3792
|
+
},
|
|
3793
|
+
"minHeight": {
|
|
3794
|
+
"description": "The minimum height of a rectangle in pixels. The property clamps rectangles' heights.\n\n**Default value:** `0`",
|
|
3795
|
+
"type": "number"
|
|
3796
|
+
},
|
|
3797
|
+
"minOpacity": {
|
|
3798
|
+
"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`",
|
|
3799
|
+
"type": "number"
|
|
3800
|
+
},
|
|
3801
|
+
"minWidth": {
|
|
3802
|
+
"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`",
|
|
3803
|
+
"type": "number"
|
|
3804
|
+
},
|
|
3805
|
+
"stroke": {
|
|
3806
|
+
"type": "string"
|
|
3807
|
+
},
|
|
3808
|
+
"strokeOpacity": {
|
|
3809
|
+
"type": "number"
|
|
3810
|
+
},
|
|
3811
|
+
"strokeWidth": {
|
|
3812
|
+
"type": "number"
|
|
3813
|
+
},
|
|
3814
|
+
"x2": {
|
|
3815
|
+
"type": "number"
|
|
3816
|
+
},
|
|
3817
|
+
"y2": {
|
|
3818
|
+
"type": "number"
|
|
3819
|
+
}
|
|
3820
|
+
},
|
|
3821
|
+
"type": "object"
|
|
3822
|
+
},
|
|
3823
|
+
"ViewOpacityDef": {
|
|
3824
|
+
"anyOf": [
|
|
3825
|
+
{
|
|
3826
|
+
"type": "number"
|
|
3827
|
+
},
|
|
3828
|
+
{
|
|
3829
|
+
"$ref": "#/definitions/DynamicOpacity"
|
|
3830
|
+
}
|
|
3831
|
+
]
|
|
3832
|
+
},
|
|
3833
|
+
"ViewSpec": {
|
|
3834
|
+
"anyOf": [
|
|
3835
|
+
{
|
|
3836
|
+
"$ref": "#/definitions/UnitSpec"
|
|
3837
|
+
},
|
|
3838
|
+
{
|
|
3839
|
+
"$ref": "#/definitions/LayerSpec"
|
|
3840
|
+
},
|
|
3841
|
+
{
|
|
3842
|
+
"$ref": "#/definitions/FacetSpec"
|
|
3843
|
+
},
|
|
3844
|
+
{
|
|
3845
|
+
"$ref": "#/definitions/SampleSpec"
|
|
3846
|
+
},
|
|
3847
|
+
{
|
|
3848
|
+
"$ref": "#/definitions/VConcatSpec"
|
|
3849
|
+
},
|
|
3850
|
+
{
|
|
3851
|
+
"$ref": "#/definitions/HConcatSpec"
|
|
3852
|
+
},
|
|
3853
|
+
{
|
|
3854
|
+
"$ref": "#/definitions/ConcatSpec"
|
|
3855
|
+
}
|
|
3856
|
+
]
|
|
3857
|
+
},
|
|
3858
|
+
"ZoomParams": {
|
|
3859
|
+
"additionalProperties": false,
|
|
3860
|
+
"properties": {
|
|
3861
|
+
"extent": {
|
|
3862
|
+
"anyOf": [
|
|
3863
|
+
{
|
|
3864
|
+
"$ref": "#/definitions/ScalarDomain"
|
|
3865
|
+
},
|
|
3866
|
+
{
|
|
3867
|
+
"$ref": "#/definitions/ComplexDomain"
|
|
3868
|
+
}
|
|
3869
|
+
],
|
|
3870
|
+
"description": "The boundaries that limit the zoom and pan interactions."
|
|
3871
|
+
}
|
|
3872
|
+
},
|
|
3873
|
+
"type": "object"
|
|
3874
|
+
}
|
|
3875
|
+
}
|
|
3876
|
+
}
|