@genome-spy/core 0.44.0 → 0.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle/index.es.js +6123 -5482
- package/dist/bundle/index.js +211 -148
- package/dist/schema.json +329 -79
- package/dist/src/data/collector.d.ts.map +1 -1
- package/dist/src/data/collector.js +4 -2
- package/dist/src/data/flowOptimizer.test.js +12 -3
- package/dist/src/data/sources/dataUtils.d.ts.map +1 -1
- package/dist/src/data/sources/dataUtils.js +3 -1
- package/dist/src/data/sources/lazy/bigBedSource.d.ts +1 -1
- package/dist/src/data/sources/lazy/bigBedSource.d.ts.map +1 -1
- package/dist/src/data/sources/lazy/bigBedSource.js +52 -20
- package/dist/src/data/sources/lazy/bigWigSource.d.ts +0 -1
- package/dist/src/data/sources/lazy/bigWigSource.d.ts.map +1 -1
- package/dist/src/data/sources/lazy/bigWigSource.js +30 -4
- package/dist/src/data/sources/lazy/singleAxisLazySource.d.ts.map +1 -1
- package/dist/src/data/sources/lazy/singleAxisLazySource.js +0 -2
- package/dist/src/data/sources/lazy/singleAxisWindowedSource.d.ts +6 -2
- package/dist/src/data/sources/lazy/singleAxisWindowedSource.d.ts.map +1 -1
- package/dist/src/data/sources/lazy/singleAxisWindowedSource.js +38 -20
- package/dist/src/data/sources/sequenceSource.d.ts.map +1 -1
- package/dist/src/data/sources/sequenceSource.js +14 -5
- package/dist/src/data/sources/sequenceSource.test.js +23 -5
- package/dist/src/data/sources/urlSource.d.ts.map +1 -1
- package/dist/src/data/sources/urlSource.js +15 -2
- package/dist/src/data/transforms/aggregate.d.ts.map +1 -1
- package/dist/src/data/transforms/aggregate.js +5 -2
- package/dist/src/encoder/encoder.d.ts +2 -4
- package/dist/src/encoder/encoder.d.ts.map +1 -1
- package/dist/src/encoder/encoder.js +8 -8
- package/dist/src/encoder/encoder.test.js +3 -0
- package/dist/src/genomeSpy.d.ts +7 -5
- package/dist/src/genomeSpy.d.ts.map +1 -1
- package/dist/src/genomeSpy.js +109 -132
- package/dist/src/gl/glslScaleGenerator.js +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/marks/mark.d.ts +8 -5
- package/dist/src/marks/mark.d.ts.map +1 -1
- package/dist/src/marks/mark.js +56 -12
- package/dist/src/marks/point.common.glsl.js +1 -1
- package/dist/src/marks/point.d.ts +1 -4
- package/dist/src/marks/point.d.ts.map +1 -1
- package/dist/src/marks/point.js +31 -23
- package/dist/src/marks/point.vertex.glsl.js +1 -1
- package/dist/src/marks/text.d.ts.map +1 -1
- package/dist/src/marks/text.js +15 -7
- package/dist/src/spec/data.d.ts +11 -10
- package/dist/src/spec/mark.d.ts +11 -21
- package/dist/src/spec/parameter.d.ts +11 -7
- package/dist/src/spec/root.d.ts +0 -8
- package/dist/src/spec/title.d.ts +5 -4
- package/dist/src/spec/view.d.ts +19 -4
- package/dist/src/styles/genome-spy.css.d.ts +1 -1
- package/dist/src/styles/genome-spy.css.d.ts.map +1 -1
- package/dist/src/styles/genome-spy.css.js +52 -5
- package/dist/src/styles/genome-spy.scss +63 -10
- package/dist/src/styles/update.sh +6 -0
- package/dist/src/tooltip/dataTooltipHandler.js +1 -1
- package/dist/src/tooltip/refseqGeneTooltipHandler.js +1 -1
- package/dist/src/tooltip/tooltipHandler.d.ts +1 -1
- package/dist/src/tooltip/tooltipHandler.d.ts.map +1 -1
- package/dist/src/tooltip/tooltipHandler.ts +1 -1
- package/dist/src/types/embedApi.d.ts +6 -0
- package/dist/src/types/viewContext.d.ts +2 -3
- package/dist/src/utils/debounce.d.ts +2 -2
- package/dist/src/utils/debounce.d.ts.map +1 -1
- package/dist/src/utils/debounce.js +5 -2
- package/dist/src/utils/expression.d.ts +2 -2
- package/dist/src/utils/expression.d.ts.map +1 -1
- package/dist/src/utils/expression.js +1 -1
- package/dist/src/utils/formatObject.d.ts +2 -2
- package/dist/src/utils/formatObject.d.ts.map +1 -1
- package/dist/src/utils/formatObject.js +2 -2
- package/dist/src/utils/inputBinding.d.ts +5 -0
- package/dist/src/utils/inputBinding.d.ts.map +1 -0
- package/dist/src/utils/inputBinding.js +115 -0
- package/dist/src/utils/ui/tooltip.js +1 -1
- package/dist/src/view/paramMediator.d.ts +108 -0
- package/dist/src/view/paramMediator.d.ts.map +1 -0
- package/dist/src/view/paramMediator.js +337 -0
- package/dist/src/view/paramMediator.test.js +211 -0
- package/dist/src/view/scaleResolution.d.ts.map +1 -1
- package/dist/src/view/scaleResolution.js +11 -6
- package/dist/src/view/view.d.ts +4 -1
- package/dist/src/view/view.d.ts.map +1 -1
- package/dist/src/view/view.js +19 -5
- package/dist/src/view/viewFactory.d.ts.map +1 -1
- package/dist/src/view/viewFactory.js +45 -0
- package/dist/src/view/viewUtils.d.ts +5 -1
- package/dist/src/view/viewUtils.d.ts.map +1 -1
- package/dist/src/view/viewUtils.js +9 -4
- package/package.json +16 -17
- package/dist/src/paramBroker.d.ts +0 -46
- package/dist/src/paramBroker.d.ts.map +0 -1
- package/dist/src/paramBroker.js +0 -118
package/dist/schema.json
CHANGED
|
@@ -314,8 +314,15 @@
|
|
|
314
314
|
"description": "Which channel's scale domain to monitor.\n\n__Default value:__ `\"x\"`"
|
|
315
315
|
},
|
|
316
316
|
"debounce": {
|
|
317
|
-
"
|
|
318
|
-
|
|
317
|
+
"anyOf": [
|
|
318
|
+
{
|
|
319
|
+
"type": "number"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"$ref": "#/definitions/ExprRef"
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
"description": "Debounce time for data updates, in milliseconds. Debouncing prevents excessive data updates when the user is zooming or panning around.\n\n__Default value:__ `200`"
|
|
319
326
|
},
|
|
320
327
|
"debounceMode": {
|
|
321
328
|
"description": "The debounce mode for data updates. If set to `\"domain\"`, domain change events (panning and zooming) will be debounced. If set to `\"window\"`, the data fetches initiated by the changes to the visible window (or tile) will be debounced. If your data is small, the `\"window\"` is better as it will start fetching data while the user is still panning around, resulting in a shorter perceived latency.\n\n__Default value:__ `\"window\"`",
|
|
@@ -365,8 +372,15 @@
|
|
|
365
372
|
"description": "Which channel's scale domain to monitor.\n\n__Default value:__ `\"x\"`"
|
|
366
373
|
},
|
|
367
374
|
"debounce": {
|
|
368
|
-
"
|
|
369
|
-
|
|
375
|
+
"anyOf": [
|
|
376
|
+
{
|
|
377
|
+
"type": "number"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"$ref": "#/definitions/ExprRef"
|
|
381
|
+
}
|
|
382
|
+
],
|
|
383
|
+
"description": "Debounce time for data updates, in milliseconds. Debouncing prevents excessive data updates when the user is zooming or panning around.\n\n__Default value:__ `200`"
|
|
370
384
|
},
|
|
371
385
|
"debounceMode": {
|
|
372
386
|
"description": "The debounce mode for data updates. If set to `\"domain\"`, domain change events (panning and zooming) will be debounced. If set to `\"window\"`, the data fetches initiated by the changes to the visible window (or tile) will be debounced. If your data is small, the `\"window\"` is better as it will start fetching data while the user is still panning around, resulting in a shorter perceived latency.\n\n__Default value:__ `\"window\"`",
|
|
@@ -381,12 +395,26 @@
|
|
|
381
395
|
"type": "string"
|
|
382
396
|
},
|
|
383
397
|
"url": {
|
|
384
|
-
"
|
|
385
|
-
|
|
398
|
+
"anyOf": [
|
|
399
|
+
{
|
|
400
|
+
"type": "string"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"$ref": "#/definitions/ExprRef"
|
|
404
|
+
}
|
|
405
|
+
],
|
|
406
|
+
"description": "URL of the BigBed file."
|
|
386
407
|
},
|
|
387
408
|
"windowSize": {
|
|
388
|
-
"
|
|
389
|
-
|
|
409
|
+
"anyOf": [
|
|
410
|
+
{
|
|
411
|
+
"type": "number"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"$ref": "#/definitions/ExprRef"
|
|
415
|
+
}
|
|
416
|
+
],
|
|
417
|
+
"description": "Size of each chunk when fetching the BigBed file. Data is only fetched when the length of the visible domain smaller than the window size.\n\n__Default value:__ `1000000`"
|
|
390
418
|
}
|
|
391
419
|
},
|
|
392
420
|
"required": [
|
|
@@ -403,8 +431,15 @@
|
|
|
403
431
|
"description": "Which channel's scale domain to monitor.\n\n__Default value:__ `\"x\"`"
|
|
404
432
|
},
|
|
405
433
|
"debounce": {
|
|
406
|
-
"
|
|
407
|
-
|
|
434
|
+
"anyOf": [
|
|
435
|
+
{
|
|
436
|
+
"type": "number"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"$ref": "#/definitions/ExprRef"
|
|
440
|
+
}
|
|
441
|
+
],
|
|
442
|
+
"description": "Debounce time for data updates, in milliseconds. Debouncing prevents excessive data updates when the user is zooming or panning around.\n\n__Default value:__ `200`"
|
|
408
443
|
},
|
|
409
444
|
"debounceMode": {
|
|
410
445
|
"description": "The debounce mode for data updates. If set to `\"domain\"`, domain change events (panning and zooming) will be debounced. If set to `\"window\"`, the data fetches initiated by the changes to the visible window (or tile) will be debounced. If your data is small, the `\"window\"` is better as it will start fetching data while the user is still panning around, resulting in a shorter perceived latency.\n\n__Default value:__ `\"window\"`",
|
|
@@ -415,16 +450,30 @@
|
|
|
415
450
|
"type": "string"
|
|
416
451
|
},
|
|
417
452
|
"pixelsPerBin": {
|
|
418
|
-
"
|
|
419
|
-
|
|
453
|
+
"anyOf": [
|
|
454
|
+
{
|
|
455
|
+
"type": "number"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"$ref": "#/definitions/ExprRef"
|
|
459
|
+
}
|
|
460
|
+
],
|
|
461
|
+
"description": "The approximate minimum width of each data bin, in pixels.\n\n__Default value:__ `2`"
|
|
420
462
|
},
|
|
421
463
|
"type": {
|
|
422
464
|
"const": "bigwig",
|
|
423
465
|
"type": "string"
|
|
424
466
|
},
|
|
425
467
|
"url": {
|
|
426
|
-
"
|
|
427
|
-
|
|
468
|
+
"anyOf": [
|
|
469
|
+
{
|
|
470
|
+
"type": "string"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"$ref": "#/definitions/ExprRef"
|
|
474
|
+
}
|
|
475
|
+
],
|
|
476
|
+
"description": "URL of the BigWig file."
|
|
428
477
|
}
|
|
429
478
|
},
|
|
430
479
|
"required": [
|
|
@@ -440,9 +489,9 @@
|
|
|
440
489
|
"description": "If defined, delays event handling until the specified milliseconds have elapsed since the last event was fired.",
|
|
441
490
|
"type": "number"
|
|
442
491
|
},
|
|
443
|
-
"
|
|
444
|
-
"
|
|
445
|
-
"
|
|
492
|
+
"description": {
|
|
493
|
+
"description": "An optional description or help text that is shown below the input element.",
|
|
494
|
+
"type": "string"
|
|
446
495
|
},
|
|
447
496
|
"input": {
|
|
448
497
|
"const": "checkbox",
|
|
@@ -465,9 +514,9 @@
|
|
|
465
514
|
"description": "If defined, delays event handling until the specified milliseconds have elapsed since the last event was fired.",
|
|
466
515
|
"type": "number"
|
|
467
516
|
},
|
|
468
|
-
"
|
|
469
|
-
"
|
|
470
|
-
"
|
|
517
|
+
"description": {
|
|
518
|
+
"description": "An optional description or help text that is shown below the input element.",
|
|
519
|
+
"type": "string"
|
|
471
520
|
},
|
|
472
521
|
"input": {
|
|
473
522
|
"enum": [
|
|
@@ -506,9 +555,9 @@
|
|
|
506
555
|
"description": "If defined, delays event handling until the specified milliseconds have elapsed since the last event was fired.",
|
|
507
556
|
"type": "number"
|
|
508
557
|
},
|
|
509
|
-
"
|
|
510
|
-
"
|
|
511
|
-
"
|
|
558
|
+
"description": {
|
|
559
|
+
"description": "An optional description or help text that is shown below the input element.",
|
|
560
|
+
"type": "string"
|
|
512
561
|
},
|
|
513
562
|
"input": {
|
|
514
563
|
"const": "range",
|
|
@@ -837,6 +886,13 @@
|
|
|
837
886
|
"$ref": "#/definitions/PaddingConfig",
|
|
838
887
|
"description": "Padding in pixels.\n\n**Default:* `0`"
|
|
839
888
|
},
|
|
889
|
+
"params": {
|
|
890
|
+
"description": "Dynamic variables that parameterize a visualization.",
|
|
891
|
+
"items": {
|
|
892
|
+
"$ref": "#/definitions/VariableParameter"
|
|
893
|
+
},
|
|
894
|
+
"type": "array"
|
|
895
|
+
},
|
|
840
896
|
"resolve": {
|
|
841
897
|
"additionalProperties": false,
|
|
842
898
|
"properties": {
|
|
@@ -1157,9 +1213,6 @@
|
|
|
1157
1213
|
],
|
|
1158
1214
|
"type": "object"
|
|
1159
1215
|
},
|
|
1160
|
-
"Element": {
|
|
1161
|
-
"type": "string"
|
|
1162
|
-
},
|
|
1163
1216
|
"Encoding": {
|
|
1164
1217
|
"additionalProperties": false,
|
|
1165
1218
|
"properties": {
|
|
@@ -2206,8 +2259,15 @@
|
|
|
2206
2259
|
"description": "Which channel's scale domain to monitor.\n\n__Default value:__ `\"x\"`"
|
|
2207
2260
|
},
|
|
2208
2261
|
"debounce": {
|
|
2209
|
-
"
|
|
2210
|
-
|
|
2262
|
+
"anyOf": [
|
|
2263
|
+
{
|
|
2264
|
+
"type": "number"
|
|
2265
|
+
},
|
|
2266
|
+
{
|
|
2267
|
+
"$ref": "#/definitions/ExprRef"
|
|
2268
|
+
}
|
|
2269
|
+
],
|
|
2270
|
+
"description": "Debounce time for data updates, in milliseconds. Debouncing prevents excessive data updates when the user is zooming or panning around.\n\n__Default value:__ `200`"
|
|
2211
2271
|
},
|
|
2212
2272
|
"debounceMode": {
|
|
2213
2273
|
"description": "The debounce mode for data updates. If set to `\"domain\"`, domain change events (panning and zooming) will be debounced. If set to `\"window\"`, the data fetches initiated by the changes to the visible window (or tile) will be debounced. If your data is small, the `\"window\"` is better as it will start fetching data while the user is still panning around, resulting in a shorter perceived latency.\n\n__Default value:__ `\"window\"`",
|
|
@@ -2312,6 +2372,13 @@
|
|
|
2312
2372
|
"$ref": "#/definitions/PaddingConfig",
|
|
2313
2373
|
"description": "Padding in pixels.\n\n**Default:* `0`"
|
|
2314
2374
|
},
|
|
2375
|
+
"params": {
|
|
2376
|
+
"description": "Dynamic variables that parameterize a visualization.",
|
|
2377
|
+
"items": {
|
|
2378
|
+
"$ref": "#/definitions/VariableParameter"
|
|
2379
|
+
},
|
|
2380
|
+
"type": "array"
|
|
2381
|
+
},
|
|
2315
2382
|
"resolve": {
|
|
2316
2383
|
"additionalProperties": false,
|
|
2317
2384
|
"properties": {
|
|
@@ -2450,14 +2517,26 @@
|
|
|
2450
2517
|
],
|
|
2451
2518
|
"type": "object"
|
|
2452
2519
|
},
|
|
2453
|
-
"
|
|
2520
|
+
"ImportParams": {
|
|
2454
2521
|
"additionalProperties": false,
|
|
2455
2522
|
"properties": {
|
|
2456
2523
|
"name": {
|
|
2524
|
+
"description": "Name for the imported view. Overrides the name defined in the imported spec.",
|
|
2457
2525
|
"type": "string"
|
|
2458
2526
|
},
|
|
2459
2527
|
"params": {
|
|
2460
|
-
"
|
|
2528
|
+
"anyOf": [
|
|
2529
|
+
{
|
|
2530
|
+
"items": {
|
|
2531
|
+
"$ref": "#/definitions/VariableParameter"
|
|
2532
|
+
},
|
|
2533
|
+
"type": "array"
|
|
2534
|
+
},
|
|
2535
|
+
{
|
|
2536
|
+
"type": "object"
|
|
2537
|
+
}
|
|
2538
|
+
],
|
|
2539
|
+
"description": "Dynamic variables that parameterize a visualization. Parameters defined here override the parameters defined in the imported spec."
|
|
2461
2540
|
},
|
|
2462
2541
|
"url": {
|
|
2463
2542
|
"type": "string"
|
|
@@ -2469,7 +2548,7 @@
|
|
|
2469
2548
|
"additionalProperties": false,
|
|
2470
2549
|
"properties": {
|
|
2471
2550
|
"import": {
|
|
2472
|
-
"$ref": "#/definitions/
|
|
2551
|
+
"$ref": "#/definitions/ImportParams"
|
|
2473
2552
|
}
|
|
2474
2553
|
},
|
|
2475
2554
|
"required": [
|
|
@@ -2485,8 +2564,15 @@
|
|
|
2485
2564
|
"description": "Which channel's scale domain to monitor.\n\n__Default value:__ `\"x\"`"
|
|
2486
2565
|
},
|
|
2487
2566
|
"debounce": {
|
|
2488
|
-
"
|
|
2489
|
-
|
|
2567
|
+
"anyOf": [
|
|
2568
|
+
{
|
|
2569
|
+
"type": "number"
|
|
2570
|
+
},
|
|
2571
|
+
{
|
|
2572
|
+
"$ref": "#/definitions/ExprRef"
|
|
2573
|
+
}
|
|
2574
|
+
],
|
|
2575
|
+
"description": "Debounce time for data updates, in milliseconds. Debouncing prevents excessive data updates when the user is zooming or panning around.\n\n__Default value:__ `200`"
|
|
2490
2576
|
},
|
|
2491
2577
|
"debounceMode": {
|
|
2492
2578
|
"description": "The debounce mode for data updates. If set to `\"domain\"`, domain change events (panning and zooming) will be debounced. If set to `\"window\"`, the data fetches initiated by the changes to the visible window (or tile) will be debounced. If your data is small, the `\"window\"` is better as it will start fetching data while the user is still panning around, resulting in a shorter perceived latency.\n\n__Default value:__ `\"window\"`",
|
|
@@ -2685,6 +2771,13 @@
|
|
|
2685
2771
|
"$ref": "#/definitions/PaddingConfig",
|
|
2686
2772
|
"description": "Padding in pixels.\n\n**Default:* `0`"
|
|
2687
2773
|
},
|
|
2774
|
+
"params": {
|
|
2775
|
+
"description": "Dynamic variables that parameterize a visualization.",
|
|
2776
|
+
"items": {
|
|
2777
|
+
"$ref": "#/definitions/VariableParameter"
|
|
2778
|
+
},
|
|
2779
|
+
"type": "array"
|
|
2780
|
+
},
|
|
2688
2781
|
"resolve": {
|
|
2689
2782
|
"additionalProperties": false,
|
|
2690
2783
|
"properties": {
|
|
@@ -3059,8 +3152,15 @@
|
|
|
3059
3152
|
"description": "The fill color"
|
|
3060
3153
|
},
|
|
3061
3154
|
"fillGradientStrength": {
|
|
3062
|
-
"
|
|
3063
|
-
|
|
3155
|
+
"anyOf": [
|
|
3156
|
+
{
|
|
3157
|
+
"type": "number"
|
|
3158
|
+
},
|
|
3159
|
+
{
|
|
3160
|
+
"$ref": "#/definitions/ExprRef"
|
|
3161
|
+
}
|
|
3162
|
+
],
|
|
3163
|
+
"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`"
|
|
3064
3164
|
},
|
|
3065
3165
|
"fillOpacity": {
|
|
3066
3166
|
"anyOf": [
|
|
@@ -3078,16 +3178,37 @@
|
|
|
3078
3178
|
"type": "boolean"
|
|
3079
3179
|
},
|
|
3080
3180
|
"fitToBand": {
|
|
3081
|
-
"
|
|
3082
|
-
|
|
3181
|
+
"anyOf": [
|
|
3182
|
+
{
|
|
3183
|
+
"type": "boolean"
|
|
3184
|
+
},
|
|
3185
|
+
{
|
|
3186
|
+
"$ref": "#/definitions/ExprRef"
|
|
3187
|
+
}
|
|
3188
|
+
],
|
|
3189
|
+
"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`"
|
|
3083
3190
|
},
|
|
3084
3191
|
"flushX": {
|
|
3085
|
-
"
|
|
3086
|
-
|
|
3192
|
+
"anyOf": [
|
|
3193
|
+
{
|
|
3194
|
+
"type": "boolean"
|
|
3195
|
+
},
|
|
3196
|
+
{
|
|
3197
|
+
"$ref": "#/definitions/ExprRef"
|
|
3198
|
+
}
|
|
3199
|
+
],
|
|
3200
|
+
"description": "If true, the text is kept inside the viewport when the range of `x` and `x2` intersect the viewport."
|
|
3087
3201
|
},
|
|
3088
3202
|
"flushY": {
|
|
3089
|
-
"
|
|
3090
|
-
|
|
3203
|
+
"anyOf": [
|
|
3204
|
+
{
|
|
3205
|
+
"type": "boolean"
|
|
3206
|
+
},
|
|
3207
|
+
{
|
|
3208
|
+
"$ref": "#/definitions/ExprRef"
|
|
3209
|
+
}
|
|
3210
|
+
],
|
|
3211
|
+
"description": "If true, the text is kept inside the viewport when the range of `y` and `y2` intersect the viewport."
|
|
3091
3212
|
},
|
|
3092
3213
|
"font": {
|
|
3093
3214
|
"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\"`",
|
|
@@ -3106,8 +3227,15 @@
|
|
|
3106
3227
|
"type": "number"
|
|
3107
3228
|
},
|
|
3108
3229
|
"inwardStroke": {
|
|
3109
|
-
"
|
|
3110
|
-
|
|
3230
|
+
"anyOf": [
|
|
3231
|
+
{
|
|
3232
|
+
"type": "boolean"
|
|
3233
|
+
},
|
|
3234
|
+
{
|
|
3235
|
+
"$ref": "#/definitions/ExprRef"
|
|
3236
|
+
}
|
|
3237
|
+
],
|
|
3238
|
+
"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`"
|
|
3111
3239
|
},
|
|
3112
3240
|
"linkShape": {
|
|
3113
3241
|
"anyOf": [
|
|
@@ -3134,8 +3262,15 @@
|
|
|
3134
3262
|
"description": "The shape of the link path. Either `\"arc\"`, `\"diagonal\"`, `\"line\"`, or `\"dome\"`.\n\n**Default value:** `\"arc\"`"
|
|
3135
3263
|
},
|
|
3136
3264
|
"logoLetters": {
|
|
3137
|
-
"
|
|
3138
|
-
|
|
3265
|
+
"anyOf": [
|
|
3266
|
+
{
|
|
3267
|
+
"type": "boolean"
|
|
3268
|
+
},
|
|
3269
|
+
{
|
|
3270
|
+
"$ref": "#/definitions/ExprRef"
|
|
3271
|
+
}
|
|
3272
|
+
],
|
|
3273
|
+
"description": "Stretch letters so that they can be used with [sequence logos](https://en.wikipedia.org/wiki/Sequence_logo), etc..."
|
|
3139
3274
|
},
|
|
3140
3275
|
"maxChordLength": {
|
|
3141
3276
|
"anyOf": [
|
|
@@ -3245,24 +3380,41 @@
|
|
|
3245
3380
|
"description": "The orientation of the link path. Either `\"vertical\"` or `\"horizontal\"`. Only applies to diagonal links.\n\n**Default value:** `\"vertical\"`"
|
|
3246
3381
|
},
|
|
3247
3382
|
"paddingX": {
|
|
3248
|
-
"
|
|
3249
|
-
|
|
3383
|
+
"anyOf": [
|
|
3384
|
+
{
|
|
3385
|
+
"type": "number"
|
|
3386
|
+
},
|
|
3387
|
+
{
|
|
3388
|
+
"$ref": "#/definitions/ExprRef"
|
|
3389
|
+
}
|
|
3390
|
+
],
|
|
3391
|
+
"description": "The horizontal padding, in pixels, when the `x2` channel is used for ranged text.\n\n**Default value:** `0`"
|
|
3250
3392
|
},
|
|
3251
3393
|
"paddingY": {
|
|
3252
|
-
"
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3394
|
+
"anyOf": [
|
|
3395
|
+
{
|
|
3396
|
+
"type": "number"
|
|
3397
|
+
},
|
|
3398
|
+
{
|
|
3399
|
+
"$ref": "#/definitions/ExprRef"
|
|
3400
|
+
}
|
|
3401
|
+
],
|
|
3402
|
+
"description": "The vertical padding, in pixels, when the `y2` channel is used for ranged text.\n\n**Default value:** `0`"
|
|
3258
3403
|
},
|
|
3259
3404
|
"segments": {
|
|
3260
3405
|
"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`",
|
|
3261
3406
|
"type": "number"
|
|
3262
3407
|
},
|
|
3263
3408
|
"semanticZoomFraction": {
|
|
3264
|
-
"
|
|
3265
|
-
|
|
3409
|
+
"anyOf": [
|
|
3410
|
+
{
|
|
3411
|
+
"type": "number"
|
|
3412
|
+
},
|
|
3413
|
+
{
|
|
3414
|
+
"$ref": "#/definitions/ExprRef"
|
|
3415
|
+
}
|
|
3416
|
+
],
|
|
3417
|
+
"description": "TODO\n\n**Default value:** `0.02`"
|
|
3266
3418
|
},
|
|
3267
3419
|
"shape": {
|
|
3268
3420
|
"description": "One of `\"circle\"`, `\"square\"`, `\"cross\"`, `\"diamond\"`, `\"triangle-up\"`, `\"triangle-down\"`, `\"triangle-right\"`, or `\"triangle-left\"`.\n\n**Default value:** `\"circle\"`",
|
|
@@ -3280,8 +3432,15 @@
|
|
|
3280
3432
|
"description": "The font size in pixels.\n\n**Default value:** `11`"
|
|
3281
3433
|
},
|
|
3282
3434
|
"squeeze": {
|
|
3283
|
-
"
|
|
3284
|
-
|
|
3435
|
+
"anyOf": [
|
|
3436
|
+
{
|
|
3437
|
+
"type": "boolean"
|
|
3438
|
+
},
|
|
3439
|
+
{
|
|
3440
|
+
"$ref": "#/definitions/ExprRef"
|
|
3441
|
+
}
|
|
3442
|
+
],
|
|
3443
|
+
"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`"
|
|
3285
3444
|
},
|
|
3286
3445
|
"stroke": {
|
|
3287
3446
|
"anyOf": [
|
|
@@ -3348,7 +3507,14 @@
|
|
|
3348
3507
|
"description": "The stroke width in pixels."
|
|
3349
3508
|
},
|
|
3350
3509
|
"text": {
|
|
3351
|
-
"
|
|
3510
|
+
"anyOf": [
|
|
3511
|
+
{
|
|
3512
|
+
"$ref": "#/definitions/Scalar"
|
|
3513
|
+
},
|
|
3514
|
+
{
|
|
3515
|
+
"$ref": "#/definitions/ExprRef"
|
|
3516
|
+
}
|
|
3517
|
+
],
|
|
3352
3518
|
"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:** `\"\"`"
|
|
3353
3519
|
},
|
|
3354
3520
|
"tooltip": {
|
|
@@ -4419,7 +4585,7 @@
|
|
|
4419
4585
|
"description": "Padding in pixels.\n\n**Default:* `0`"
|
|
4420
4586
|
},
|
|
4421
4587
|
"params": {
|
|
4422
|
-
"description": "Dynamic variables that parameterize a visualization
|
|
4588
|
+
"description": "Dynamic variables that parameterize a visualization.",
|
|
4423
4589
|
"items": {
|
|
4424
4590
|
"$ref": "#/definitions/VariableParameter"
|
|
4425
4591
|
},
|
|
@@ -4634,7 +4800,7 @@
|
|
|
4634
4800
|
"description": "Padding in pixels.\n\n**Default:* `0`"
|
|
4635
4801
|
},
|
|
4636
4802
|
"params": {
|
|
4637
|
-
"description": "Dynamic variables that parameterize a visualization
|
|
4803
|
+
"description": "Dynamic variables that parameterize a visualization.",
|
|
4638
4804
|
"items": {
|
|
4639
4805
|
"$ref": "#/definitions/VariableParameter"
|
|
4640
4806
|
},
|
|
@@ -4823,7 +4989,7 @@
|
|
|
4823
4989
|
"description": "Padding in pixels.\n\n**Default:* `0`"
|
|
4824
4990
|
},
|
|
4825
4991
|
"params": {
|
|
4826
|
-
"description": "Dynamic variables that parameterize a visualization
|
|
4992
|
+
"description": "Dynamic variables that parameterize a visualization.",
|
|
4827
4993
|
"items": {
|
|
4828
4994
|
"$ref": "#/definitions/VariableParameter"
|
|
4829
4995
|
},
|
|
@@ -5038,7 +5204,7 @@
|
|
|
5038
5204
|
"description": "Padding in pixels.\n\n**Default:* `0`"
|
|
5039
5205
|
},
|
|
5040
5206
|
"params": {
|
|
5041
|
-
"description": "Dynamic variables that parameterize a visualization
|
|
5207
|
+
"description": "Dynamic variables that parameterize a visualization.",
|
|
5042
5208
|
"items": {
|
|
5043
5209
|
"$ref": "#/definitions/VariableParameter"
|
|
5044
5210
|
},
|
|
@@ -5243,7 +5409,7 @@
|
|
|
5243
5409
|
"description": "Padding in pixels.\n\n**Default:* `0`"
|
|
5244
5410
|
},
|
|
5245
5411
|
"params": {
|
|
5246
|
-
"description": "Dynamic variables that parameterize a visualization
|
|
5412
|
+
"description": "Dynamic variables that parameterize a visualization.",
|
|
5247
5413
|
"items": {
|
|
5248
5414
|
"$ref": "#/definitions/VariableParameter"
|
|
5249
5415
|
},
|
|
@@ -5433,7 +5599,7 @@
|
|
|
5433
5599
|
"description": "Padding in pixels.\n\n**Default:* `0`"
|
|
5434
5600
|
},
|
|
5435
5601
|
"params": {
|
|
5436
|
-
"description": "Dynamic variables that parameterize a visualization
|
|
5602
|
+
"description": "Dynamic variables that parameterize a visualization.",
|
|
5437
5603
|
"items": {
|
|
5438
5604
|
"$ref": "#/definitions/VariableParameter"
|
|
5439
5605
|
},
|
|
@@ -5746,6 +5912,13 @@
|
|
|
5746
5912
|
"$ref": "#/definitions/PaddingConfig",
|
|
5747
5913
|
"description": "Padding in pixels.\n\n**Default:* `0`"
|
|
5748
5914
|
},
|
|
5915
|
+
"params": {
|
|
5916
|
+
"description": "Dynamic variables that parameterize a visualization.",
|
|
5917
|
+
"items": {
|
|
5918
|
+
"$ref": "#/definitions/VariableParameter"
|
|
5919
|
+
},
|
|
5920
|
+
"type": "array"
|
|
5921
|
+
},
|
|
5749
5922
|
"resolve": {
|
|
5750
5923
|
"additionalProperties": false,
|
|
5751
5924
|
"properties": {
|
|
@@ -6226,20 +6399,48 @@
|
|
|
6226
6399
|
"additionalProperties": false,
|
|
6227
6400
|
"properties": {
|
|
6228
6401
|
"as": {
|
|
6229
|
-
"
|
|
6402
|
+
"anyOf": [
|
|
6403
|
+
{
|
|
6404
|
+
"$ref": "#/definitions/FieldName"
|
|
6405
|
+
},
|
|
6406
|
+
{
|
|
6407
|
+
"$ref": "#/definitions/ExprRef"
|
|
6408
|
+
}
|
|
6409
|
+
],
|
|
6230
6410
|
"description": "The name of the generated sequence field.\n\n__Default value:__ `\"data\"`"
|
|
6231
6411
|
},
|
|
6232
6412
|
"start": {
|
|
6233
|
-
"
|
|
6234
|
-
|
|
6413
|
+
"anyOf": [
|
|
6414
|
+
{
|
|
6415
|
+
"type": "number"
|
|
6416
|
+
},
|
|
6417
|
+
{
|
|
6418
|
+
"$ref": "#/definitions/ExprRef"
|
|
6419
|
+
}
|
|
6420
|
+
],
|
|
6421
|
+
"description": "The starting value of the sequence (inclusive)."
|
|
6235
6422
|
},
|
|
6236
6423
|
"step": {
|
|
6237
|
-
"
|
|
6238
|
-
|
|
6424
|
+
"anyOf": [
|
|
6425
|
+
{
|
|
6426
|
+
"type": "number"
|
|
6427
|
+
},
|
|
6428
|
+
{
|
|
6429
|
+
"$ref": "#/definitions/ExprRef"
|
|
6430
|
+
}
|
|
6431
|
+
],
|
|
6432
|
+
"description": "The step value between sequence entries.\n\n__Default value:__ `1`"
|
|
6239
6433
|
},
|
|
6240
6434
|
"stop": {
|
|
6241
|
-
"
|
|
6242
|
-
|
|
6435
|
+
"anyOf": [
|
|
6436
|
+
{
|
|
6437
|
+
"type": "number"
|
|
6438
|
+
},
|
|
6439
|
+
{
|
|
6440
|
+
"$ref": "#/definitions/ExprRef"
|
|
6441
|
+
}
|
|
6442
|
+
],
|
|
6443
|
+
"description": "The ending value of the sequence (exclusive)."
|
|
6243
6444
|
}
|
|
6244
6445
|
},
|
|
6245
6446
|
"required": [
|
|
@@ -6414,16 +6615,30 @@
|
|
|
6414
6615
|
"description": "The anchor position for placing the title and subtitle text. One of `\"start\"`, `\"middle\"`, or `\"end\"`. For example, with an orientation of top these anchor positions map to a left-, center-, or right-aligned title."
|
|
6415
6616
|
},
|
|
6416
6617
|
"angle": {
|
|
6417
|
-
"
|
|
6418
|
-
|
|
6618
|
+
"anyOf": [
|
|
6619
|
+
{
|
|
6620
|
+
"type": "number"
|
|
6621
|
+
},
|
|
6622
|
+
{
|
|
6623
|
+
"$ref": "#/definitions/ExprRef"
|
|
6624
|
+
}
|
|
6625
|
+
],
|
|
6626
|
+
"description": "Angle in degrees of title and subtitle text."
|
|
6419
6627
|
},
|
|
6420
6628
|
"baseline": {
|
|
6421
6629
|
"$ref": "#/definitions/Baseline",
|
|
6422
6630
|
"description": "Vertical text baseline for title and subtitle text. One of `\"alphabetic\"` (default), `\"top\"`, `\"middle\"`, or `\"bottom\"`."
|
|
6423
6631
|
},
|
|
6424
6632
|
"color": {
|
|
6425
|
-
"
|
|
6426
|
-
|
|
6633
|
+
"anyOf": [
|
|
6634
|
+
{
|
|
6635
|
+
"type": "string"
|
|
6636
|
+
},
|
|
6637
|
+
{
|
|
6638
|
+
"$ref": "#/definitions/ExprRef"
|
|
6639
|
+
}
|
|
6640
|
+
],
|
|
6641
|
+
"description": "Text color for title text."
|
|
6427
6642
|
},
|
|
6428
6643
|
"dx": {
|
|
6429
6644
|
"description": "Delta offset for title and subtitle text x-coordinate.",
|
|
@@ -6438,9 +6653,16 @@
|
|
|
6438
6653
|
"type": "string"
|
|
6439
6654
|
},
|
|
6440
6655
|
"fontSize": {
|
|
6656
|
+
"anyOf": [
|
|
6657
|
+
{
|
|
6658
|
+
"type": "number"
|
|
6659
|
+
},
|
|
6660
|
+
{
|
|
6661
|
+
"$ref": "#/definitions/ExprRef"
|
|
6662
|
+
}
|
|
6663
|
+
],
|
|
6441
6664
|
"description": "Font size in pixels for title text.",
|
|
6442
|
-
"minimum": 0
|
|
6443
|
-
"type": "number"
|
|
6665
|
+
"minimum": 0
|
|
6444
6666
|
},
|
|
6445
6667
|
"fontStyle": {
|
|
6446
6668
|
"$ref": "#/definitions/FontStyle",
|
|
@@ -6467,8 +6689,15 @@
|
|
|
6467
6689
|
"type": "string"
|
|
6468
6690
|
},
|
|
6469
6691
|
"text": {
|
|
6470
|
-
"
|
|
6471
|
-
|
|
6692
|
+
"anyOf": [
|
|
6693
|
+
{
|
|
6694
|
+
"type": "string"
|
|
6695
|
+
},
|
|
6696
|
+
{
|
|
6697
|
+
"$ref": "#/definitions/ExprRef"
|
|
6698
|
+
}
|
|
6699
|
+
],
|
|
6700
|
+
"description": "The title text."
|
|
6472
6701
|
}
|
|
6473
6702
|
},
|
|
6474
6703
|
"required": [
|
|
@@ -6678,6 +6907,13 @@
|
|
|
6678
6907
|
"$ref": "#/definitions/PaddingConfig",
|
|
6679
6908
|
"description": "Padding in pixels.\n\n**Default:* `0`"
|
|
6680
6909
|
},
|
|
6910
|
+
"params": {
|
|
6911
|
+
"description": "Dynamic variables that parameterize a visualization.",
|
|
6912
|
+
"items": {
|
|
6913
|
+
"$ref": "#/definitions/VariableParameter"
|
|
6914
|
+
},
|
|
6915
|
+
"type": "array"
|
|
6916
|
+
},
|
|
6681
6917
|
"resolve": {
|
|
6682
6918
|
"additionalProperties": false,
|
|
6683
6919
|
"properties": {
|
|
@@ -6804,6 +7040,9 @@
|
|
|
6804
7040
|
"type": "string"
|
|
6805
7041
|
},
|
|
6806
7042
|
"type": "array"
|
|
7043
|
+
},
|
|
7044
|
+
{
|
|
7045
|
+
"$ref": "#/definitions/ExprRef"
|
|
6807
7046
|
}
|
|
6808
7047
|
],
|
|
6809
7048
|
"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."
|
|
@@ -6873,6 +7112,13 @@
|
|
|
6873
7112
|
"$ref": "#/definitions/PaddingConfig",
|
|
6874
7113
|
"description": "Padding in pixels.\n\n**Default:* `0`"
|
|
6875
7114
|
},
|
|
7115
|
+
"params": {
|
|
7116
|
+
"description": "Dynamic variables that parameterize a visualization.",
|
|
7117
|
+
"items": {
|
|
7118
|
+
"$ref": "#/definitions/VariableParameter"
|
|
7119
|
+
},
|
|
7120
|
+
"type": "array"
|
|
7121
|
+
},
|
|
6876
7122
|
"resolve": {
|
|
6877
7123
|
"additionalProperties": false,
|
|
6878
7124
|
"properties": {
|
|
@@ -7055,6 +7301,10 @@
|
|
|
7055
7301
|
"$ref": "#/definitions/Binding",
|
|
7056
7302
|
"description": "Binds the parameter to an external input element such as a slider, selection list or radio button group."
|
|
7057
7303
|
},
|
|
7304
|
+
"expr": {
|
|
7305
|
+
"description": "An expression for the value of the parameter. This expression may include other parameters, in which case the parameter will automatically update in response to upstream parameter changes.",
|
|
7306
|
+
"type": "string"
|
|
7307
|
+
},
|
|
7058
7308
|
"name": {
|
|
7059
7309
|
"description": "A unique name for the variable parameter. Parameter names should be valid JavaScript identifiers: they should contain only alphanumeric characters (or \"$\", or \"_\") and may not start with a digit. Reserved keywords that may not be used as parameter names are: \"datum\".",
|
|
7060
7310
|
"type": "string"
|