@genome-spy/core 0.58.1 → 0.60.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-DwLfOHEk.js → index-5ajWdKly.js} +1 -1
- package/dist/bundle/{index-vgGDWUPz.js → index-B03-Om4z.js} +1 -1
- package/dist/bundle/index-Bg7C4Xat.js +2750 -0
- package/dist/bundle/{index-CalimFw3.js → index-C3QR8Lv6.js} +79 -79
- package/dist/bundle/{index-DKe9Bhvi.js → index-g8iXgW0W.js} +1 -1
- package/dist/bundle/index.es.js +6554 -6011
- package/dist/bundle/index.js +189 -164
- package/dist/bundle/{long-BviWyoZx.js → long-B-FASCSo.js} +45 -45
- package/dist/schema.json +312 -25
- package/dist/src/data/collector.d.ts.map +1 -1
- package/dist/src/data/collector.js +1 -0
- package/dist/src/data/flowNode.d.ts.map +1 -1
- package/dist/src/data/sources/dataSource.d.ts.map +1 -1
- package/dist/src/data/sources/dataUtils.d.ts +2 -1
- package/dist/src/data/sources/dataUtils.d.ts.map +1 -1
- package/dist/src/data/sources/dataUtils.js +3 -4
- package/dist/src/data/sources/inlineSource.d.ts +8 -0
- package/dist/src/data/sources/inlineSource.d.ts.map +1 -1
- package/dist/src/data/sources/inlineSource.js +17 -1
- package/dist/src/data/sources/urlSource.d.ts +1 -0
- package/dist/src/data/sources/urlSource.d.ts.map +1 -1
- package/dist/src/data/sources/urlSource.js +33 -4
- package/dist/src/data/transforms/identifier.d.ts.map +1 -1
- package/dist/src/data/transforms/measureText.js +1 -1
- package/dist/src/data/transforms/regexFold.d.ts.map +1 -1
- package/dist/src/data/transforms/regexFold.js +10 -0
- package/dist/src/data/transforms/regexFold.test.js +13 -0
- package/dist/src/encoder/encoder.d.ts +1 -1
- package/dist/src/fonts/bmFontManager.js +2 -2
- package/dist/src/fonts/bmFontMetrics.d.ts.map +1 -1
- package/dist/src/genomeSpy.d.ts.map +1 -1
- package/dist/src/genomeSpy.js +39 -19
- package/dist/src/gl/arrayBuilder.d.ts.map +1 -1
- package/dist/src/gl/colorUtils.d.ts +4 -0
- package/dist/src/gl/colorUtils.d.ts.map +1 -1
- package/dist/src/gl/colorUtils.js +8 -0
- package/dist/src/gl/glslScaleGenerator.d.ts +1 -1
- package/dist/src/gl/glslScaleGenerator.d.ts.map +1 -1
- package/dist/src/gl/glslScaleGenerator.js +1 -9
- package/dist/src/gl/includes/common.glsl.js +1 -1
- package/dist/src/gl/webGLHelper.d.ts +1 -1
- package/dist/src/gl/webGLHelper.d.ts.map +1 -1
- package/dist/src/marks/link.d.ts.map +1 -1
- package/dist/src/marks/link.js +9 -1
- package/dist/src/marks/mark.d.ts +8 -0
- package/dist/src/marks/mark.d.ts.map +1 -1
- package/dist/src/marks/mark.js +101 -3
- package/dist/src/marks/point.d.ts +1 -1
- package/dist/src/marks/point.d.ts.map +1 -1
- package/dist/src/marks/point.fragment.glsl.js +1 -1
- package/dist/src/marks/point.vertex.glsl.js +1 -1
- package/dist/src/marks/rect.common.glsl.js +1 -1
- package/dist/src/marks/rect.d.ts.map +1 -1
- package/dist/src/marks/rect.fragment.glsl.js +1 -1
- package/dist/src/marks/rect.js +41 -0
- package/dist/src/marks/rect.vertex.glsl.js +1 -1
- package/dist/src/selection/selection.d.ts +27 -2
- package/dist/src/selection/selection.d.ts.map +1 -1
- package/dist/src/selection/selection.js +53 -3
- package/dist/src/spec/data.d.ts +18 -1
- package/dist/src/spec/mark.d.ts +58 -1
- package/dist/src/spec/parameter.d.ts +71 -31
- package/dist/src/spec/sampleView.d.ts +12 -1
- package/dist/src/spec/view.d.ts +9 -2
- 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 +12 -1
- package/dist/src/styles/genome-spy.scss +19 -1
- package/dist/src/types/selectionTypes.d.ts +4 -7
- package/dist/src/types/viewContext.d.ts +0 -15
- package/dist/src/utils/expression.d.ts.map +1 -1
- package/dist/src/utils/expression.js +4 -0
- package/dist/src/utils/indexer.d.ts +0 -2
- package/dist/src/utils/indexer.d.ts.map +1 -1
- package/dist/src/utils/reservationMap.d.ts +4 -4
- package/dist/src/utils/reservationMap.d.ts.map +1 -1
- package/dist/src/utils/scaleNull.d.ts +0 -2
- package/dist/src/utils/scaleNull.d.ts.map +1 -1
- package/dist/src/utils/trees.d.ts +2 -2
- package/dist/src/utils/ui/tooltip.d.ts +6 -10
- package/dist/src/utils/ui/tooltip.d.ts.map +1 -1
- package/dist/src/utils/ui/tooltip.js +74 -42
- package/dist/src/view/concatView.d.ts +1 -1
- package/dist/src/view/concatView.d.ts.map +1 -1
- package/dist/src/view/concatView.js +1 -1
- package/dist/src/view/gridView/gridChild.d.ts +53 -0
- package/dist/src/view/gridView/gridChild.d.ts.map +1 -0
- package/dist/src/view/gridView/gridChild.js +753 -0
- package/dist/src/view/gridView/gridView.d.ts +64 -0
- package/dist/src/view/gridView/gridView.d.ts.map +1 -0
- package/dist/src/view/{gridView.js → gridView/gridView.js} +40 -595
- package/dist/src/view/gridView/scrollbar.d.ts +32 -0
- package/dist/src/view/gridView/scrollbar.d.ts.map +1 -0
- package/dist/src/view/gridView/scrollbar.js +186 -0
- package/dist/src/view/gridView/selectionRect.d.ts +10 -0
- package/dist/src/view/gridView/selectionRect.d.ts.map +1 -0
- package/dist/src/view/gridView/selectionRect.js +182 -0
- package/dist/src/view/layout/rectangle.d.ts +11 -1
- package/dist/src/view/layout/rectangle.d.ts.map +1 -1
- package/dist/src/view/layout/rectangle.js +22 -2
- package/dist/src/view/layout/rectangle.test.js +12 -0
- package/dist/src/view/paramMediator.d.ts.map +1 -1
- package/dist/src/view/paramMediator.js +11 -2
- package/dist/src/view/scaleResolution.d.ts +1 -0
- package/dist/src/view/scaleResolution.d.ts.map +1 -1
- package/dist/src/view/scaleResolution.js +43 -33
- package/dist/src/view/testUtils.d.ts.map +1 -1
- package/dist/src/view/testUtils.js +0 -4
- package/dist/src/view/view.d.ts +6 -0
- package/dist/src/view/view.d.ts.map +1 -1
- package/dist/src/view/view.js +19 -0
- package/dist/src/view/viewFactory.d.ts.map +1 -1
- package/dist/src/view/viewFactory.js +13 -1
- package/package.json +2 -2
- package/dist/bundle/index-DS2hvLgl.js +0 -3425
- package/dist/src/view/gridView.d.ts +0 -135
- package/dist/src/view/gridView.d.ts.map +0 -1
package/dist/schema.json
CHANGED
|
@@ -670,6 +670,96 @@
|
|
|
670
670
|
}
|
|
671
671
|
]
|
|
672
672
|
},
|
|
673
|
+
"BrushConfig": {
|
|
674
|
+
"additionalProperties": false,
|
|
675
|
+
"properties": {
|
|
676
|
+
"fill": {
|
|
677
|
+
"description": "The fill color of the interval mark.\n\n__Default value:__ `\"#808080\"`",
|
|
678
|
+
"type": "string"
|
|
679
|
+
},
|
|
680
|
+
"fillOpacity": {
|
|
681
|
+
"description": "The fill opacity of the interval mark (a value between `0` and `1`).\n\n__Default value:__ `0.05`",
|
|
682
|
+
"type": "number"
|
|
683
|
+
},
|
|
684
|
+
"measure": {
|
|
685
|
+
"description": "Where to display the measurement text (e.g., number of base pairs) for the interval selection.\n\n- `\"none\"` -- do not show the measurement.\n- `\"inside\"` -- show inside the brush rectangle.\n- `\"outside\"` -- show outside the brush rectangle.\n\n__Default value:__ `\"none\"`",
|
|
686
|
+
"enum": [
|
|
687
|
+
"none",
|
|
688
|
+
"inside",
|
|
689
|
+
"outside"
|
|
690
|
+
],
|
|
691
|
+
"type": "string"
|
|
692
|
+
},
|
|
693
|
+
"shadowBlur": {
|
|
694
|
+
"anyOf": [
|
|
695
|
+
{
|
|
696
|
+
"type": "number"
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
"$ref": "#/definitions/ExprRef"
|
|
700
|
+
}
|
|
701
|
+
],
|
|
702
|
+
"description": "The blur radius of the drop shadow in pixels. Higher values produce a more diffuse shadow.\n\n**Default value:** `0`"
|
|
703
|
+
},
|
|
704
|
+
"shadowColor": {
|
|
705
|
+
"anyOf": [
|
|
706
|
+
{
|
|
707
|
+
"type": "string"
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"$ref": "#/definitions/ExprRef"
|
|
711
|
+
}
|
|
712
|
+
],
|
|
713
|
+
"description": "The color of the drop shadow. Any valid CSS color string is allowed.\n\n**Default value:** `\"black\"`"
|
|
714
|
+
},
|
|
715
|
+
"shadowOffsetX": {
|
|
716
|
+
"anyOf": [
|
|
717
|
+
{
|
|
718
|
+
"type": "number"
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
"$ref": "#/definitions/ExprRef"
|
|
722
|
+
}
|
|
723
|
+
],
|
|
724
|
+
"description": "The horizontal offset of the drop shadow in pixels. Positive values move the shadow to the right.\n\n**Default value:** `0`"
|
|
725
|
+
},
|
|
726
|
+
"shadowOffsetY": {
|
|
727
|
+
"anyOf": [
|
|
728
|
+
{
|
|
729
|
+
"type": "number"
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"$ref": "#/definitions/ExprRef"
|
|
733
|
+
}
|
|
734
|
+
],
|
|
735
|
+
"description": "The vertical offset of the drop shadow in pixels. Positive values move the shadow downward.\n\n**Default value:** `0`"
|
|
736
|
+
},
|
|
737
|
+
"shadowOpacity": {
|
|
738
|
+
"anyOf": [
|
|
739
|
+
{
|
|
740
|
+
"type": "number"
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
"$ref": "#/definitions/ExprRef"
|
|
744
|
+
}
|
|
745
|
+
],
|
|
746
|
+
"description": "The opacity of the drop shadow. Value between `0` (fully transparent) and `1` (fully opaque).\n\n**Default value:** `0` (disabled)"
|
|
747
|
+
},
|
|
748
|
+
"stroke": {
|
|
749
|
+
"description": "The stroke color of the interval mark.\n\n__Default value:__ `\"black\"`",
|
|
750
|
+
"type": "string"
|
|
751
|
+
},
|
|
752
|
+
"strokeOpacity": {
|
|
753
|
+
"description": "The stroke opacity of the interval mark (a value between `0` and `1`).\n\n__Default value:__ `0.2`",
|
|
754
|
+
"type": "number"
|
|
755
|
+
},
|
|
756
|
+
"strokeWidth": {
|
|
757
|
+
"description": "The stroke width of the interval mark.\n\n__Default value:__ `1`",
|
|
758
|
+
"type": "number"
|
|
759
|
+
}
|
|
760
|
+
},
|
|
761
|
+
"type": "object"
|
|
762
|
+
},
|
|
673
763
|
"ChannelWithScale": {
|
|
674
764
|
"anyOf": [
|
|
675
765
|
{
|
|
@@ -3354,18 +3444,15 @@
|
|
|
3354
3444
|
"additionalProperties": false,
|
|
3355
3445
|
"properties": {
|
|
3356
3446
|
"encodings": {
|
|
3357
|
-
"description": "An array of encoding channels
|
|
3447
|
+
"description": "An array of encoding channels that define the interval selection.",
|
|
3358
3448
|
"items": {
|
|
3359
|
-
"$ref": "#/definitions/
|
|
3449
|
+
"$ref": "#/definitions/PrimaryPositionalChannel"
|
|
3360
3450
|
},
|
|
3361
3451
|
"type": "array"
|
|
3362
3452
|
},
|
|
3363
|
-
"
|
|
3364
|
-
"
|
|
3365
|
-
"
|
|
3366
|
-
"type": "string"
|
|
3367
|
-
},
|
|
3368
|
-
"type": "array"
|
|
3453
|
+
"mark": {
|
|
3454
|
+
"$ref": "#/definitions/BrushConfig",
|
|
3455
|
+
"description": "Interval selections display a rectangle mark to show the selected range. Use the `mark` property to adjust the appearance of this rectangle."
|
|
3369
3456
|
},
|
|
3370
3457
|
"on": {
|
|
3371
3458
|
"enum": [
|
|
@@ -4500,20 +4587,6 @@
|
|
|
4500
4587
|
"PointSelectionConfig": {
|
|
4501
4588
|
"additionalProperties": false,
|
|
4502
4589
|
"properties": {
|
|
4503
|
-
"encodings": {
|
|
4504
|
-
"description": "An array of encoding channels. The corresponding data field values must match for a data tuple to fall within the selection.\n\n__See also:__ The [projection with `encodings` and `fields` section](https://vega.github.io/vega-lite/docs/selection.html#project) in the documentation.",
|
|
4505
|
-
"items": {
|
|
4506
|
-
"$ref": "#/definitions/ChannelWithScale"
|
|
4507
|
-
},
|
|
4508
|
-
"type": "array"
|
|
4509
|
-
},
|
|
4510
|
-
"fields": {
|
|
4511
|
-
"description": "An array of field names whose values must match for a data tuple to fall within the selection.\n\n__See also:__ The [projection with `encodings` and `fields` section](https://vega.github.io/vega-lite/docs/selection.html#project) in the documentation.",
|
|
4512
|
-
"items": {
|
|
4513
|
-
"type": "string"
|
|
4514
|
-
},
|
|
4515
|
-
"type": "array"
|
|
4516
|
-
},
|
|
4517
4590
|
"on": {
|
|
4518
4591
|
"enum": [
|
|
4519
4592
|
"click",
|
|
@@ -4992,6 +5065,54 @@
|
|
|
4992
5065
|
"description": "Whether the `color` represents the `fill` color (`true`) or the `stroke` color (`false`).",
|
|
4993
5066
|
"type": "boolean"
|
|
4994
5067
|
},
|
|
5068
|
+
"hatch": {
|
|
5069
|
+
"anyOf": [
|
|
5070
|
+
{
|
|
5071
|
+
"const": "none",
|
|
5072
|
+
"type": "string"
|
|
5073
|
+
},
|
|
5074
|
+
{
|
|
5075
|
+
"const": "diagonal",
|
|
5076
|
+
"type": "string"
|
|
5077
|
+
},
|
|
5078
|
+
{
|
|
5079
|
+
"const": "antiDiagonal",
|
|
5080
|
+
"type": "string"
|
|
5081
|
+
},
|
|
5082
|
+
{
|
|
5083
|
+
"const": "cross",
|
|
5084
|
+
"type": "string"
|
|
5085
|
+
},
|
|
5086
|
+
{
|
|
5087
|
+
"const": "vertical",
|
|
5088
|
+
"type": "string"
|
|
5089
|
+
},
|
|
5090
|
+
{
|
|
5091
|
+
"const": "horizontal",
|
|
5092
|
+
"type": "string"
|
|
5093
|
+
},
|
|
5094
|
+
{
|
|
5095
|
+
"const": "grid",
|
|
5096
|
+
"type": "string"
|
|
5097
|
+
},
|
|
5098
|
+
{
|
|
5099
|
+
"const": "dots",
|
|
5100
|
+
"type": "string"
|
|
5101
|
+
},
|
|
5102
|
+
{
|
|
5103
|
+
"const": "rings",
|
|
5104
|
+
"type": "string"
|
|
5105
|
+
},
|
|
5106
|
+
{
|
|
5107
|
+
"const": "ringsLarge",
|
|
5108
|
+
"type": "string"
|
|
5109
|
+
},
|
|
5110
|
+
{
|
|
5111
|
+
"$ref": "#/definitions/ExprRef"
|
|
5112
|
+
}
|
|
5113
|
+
],
|
|
5114
|
+
"description": "A hatch pattern drawn inside the mark using the stroke width, color, and opacity. The pattern is aligned in screen space and scaled by the stroke width.\n\n**Default value:** `\"none\"`"
|
|
5115
|
+
},
|
|
4995
5116
|
"minBufferSize": {
|
|
4996
5117
|
"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.",
|
|
4997
5118
|
"type": "number"
|
|
@@ -5040,6 +5161,61 @@
|
|
|
5040
5161
|
],
|
|
5041
5162
|
"description": "Opacity of the mark. Affects `fillOpacity` or `strokeOpacity`, depending on the `filled` property."
|
|
5042
5163
|
},
|
|
5164
|
+
"shadowBlur": {
|
|
5165
|
+
"anyOf": [
|
|
5166
|
+
{
|
|
5167
|
+
"type": "number"
|
|
5168
|
+
},
|
|
5169
|
+
{
|
|
5170
|
+
"$ref": "#/definitions/ExprRef"
|
|
5171
|
+
}
|
|
5172
|
+
],
|
|
5173
|
+
"description": "The blur radius of the drop shadow in pixels. Higher values produce a more diffuse shadow.\n\n**Default value:** `0`"
|
|
5174
|
+
},
|
|
5175
|
+
"shadowColor": {
|
|
5176
|
+
"anyOf": [
|
|
5177
|
+
{
|
|
5178
|
+
"type": "string"
|
|
5179
|
+
},
|
|
5180
|
+
{
|
|
5181
|
+
"$ref": "#/definitions/ExprRef"
|
|
5182
|
+
}
|
|
5183
|
+
],
|
|
5184
|
+
"description": "The color of the drop shadow. Any valid CSS color string is allowed.\n\n**Default value:** `\"black\"`"
|
|
5185
|
+
},
|
|
5186
|
+
"shadowOffsetX": {
|
|
5187
|
+
"anyOf": [
|
|
5188
|
+
{
|
|
5189
|
+
"type": "number"
|
|
5190
|
+
},
|
|
5191
|
+
{
|
|
5192
|
+
"$ref": "#/definitions/ExprRef"
|
|
5193
|
+
}
|
|
5194
|
+
],
|
|
5195
|
+
"description": "The horizontal offset of the drop shadow in pixels. Positive values move the shadow to the right.\n\n**Default value:** `0`"
|
|
5196
|
+
},
|
|
5197
|
+
"shadowOffsetY": {
|
|
5198
|
+
"anyOf": [
|
|
5199
|
+
{
|
|
5200
|
+
"type": "number"
|
|
5201
|
+
},
|
|
5202
|
+
{
|
|
5203
|
+
"$ref": "#/definitions/ExprRef"
|
|
5204
|
+
}
|
|
5205
|
+
],
|
|
5206
|
+
"description": "The vertical offset of the drop shadow in pixels. Positive values move the shadow downward.\n\n**Default value:** `0`"
|
|
5207
|
+
},
|
|
5208
|
+
"shadowOpacity": {
|
|
5209
|
+
"anyOf": [
|
|
5210
|
+
{
|
|
5211
|
+
"type": "number"
|
|
5212
|
+
},
|
|
5213
|
+
{
|
|
5214
|
+
"$ref": "#/definitions/ExprRef"
|
|
5215
|
+
}
|
|
5216
|
+
],
|
|
5217
|
+
"description": "The opacity of the drop shadow. Value between `0` (fully transparent) and `1` (fully opaque).\n\n**Default value:** `0` (disabled)"
|
|
5218
|
+
},
|
|
5043
5219
|
"stroke": {
|
|
5044
5220
|
"anyOf": [
|
|
5045
5221
|
{
|
|
@@ -6747,6 +6923,10 @@
|
|
|
6747
6923
|
"$ref": "#/definitions/Scale",
|
|
6748
6924
|
"description": "Scale definition for the (default) color channel"
|
|
6749
6925
|
},
|
|
6926
|
+
"title": {
|
|
6927
|
+
"description": "The title of the attribute. Defaults to attribute name.",
|
|
6928
|
+
"type": "string"
|
|
6929
|
+
},
|
|
6750
6930
|
"type": {
|
|
6751
6931
|
"$ref": "#/definitions/Type",
|
|
6752
6932
|
"description": "The attribute type. One of `\"nominal\"`, `\"ordinal\"`, or `\"quantitative\"`."
|
|
@@ -6760,14 +6940,15 @@
|
|
|
6760
6940
|
"type": "number"
|
|
6761
6941
|
}
|
|
6762
6942
|
},
|
|
6763
|
-
"required": [
|
|
6764
|
-
"type"
|
|
6765
|
-
],
|
|
6766
6943
|
"type": "object"
|
|
6767
6944
|
},
|
|
6768
6945
|
"SampleDef": {
|
|
6769
6946
|
"additionalProperties": false,
|
|
6770
6947
|
"properties": {
|
|
6948
|
+
"attributeGroupSeparator": {
|
|
6949
|
+
"description": "If attributes form a hierarchy, specify the separator character to split the attribute names into paths.",
|
|
6950
|
+
"type": "string"
|
|
6951
|
+
},
|
|
6771
6952
|
"attributeLabelAngle": {
|
|
6772
6953
|
"description": "Angle to be added to the default label angle (-90).\n\n**Default value:** `0`",
|
|
6773
6954
|
"type": "number"
|
|
@@ -7415,6 +7596,28 @@
|
|
|
7415
7596
|
],
|
|
7416
7597
|
"type": "object"
|
|
7417
7598
|
},
|
|
7599
|
+
"SelectionInitIntervalMapping": {
|
|
7600
|
+
"additionalProperties": false,
|
|
7601
|
+
"properties": {
|
|
7602
|
+
"x": {
|
|
7603
|
+
"items": {
|
|
7604
|
+
"type": "number"
|
|
7605
|
+
},
|
|
7606
|
+
"maxItems": 2,
|
|
7607
|
+
"minItems": 2,
|
|
7608
|
+
"type": "array"
|
|
7609
|
+
},
|
|
7610
|
+
"y": {
|
|
7611
|
+
"items": {
|
|
7612
|
+
"type": "number"
|
|
7613
|
+
},
|
|
7614
|
+
"maxItems": 2,
|
|
7615
|
+
"minItems": 2,
|
|
7616
|
+
"type": "array"
|
|
7617
|
+
}
|
|
7618
|
+
},
|
|
7619
|
+
"type": "object"
|
|
7620
|
+
},
|
|
7418
7621
|
"SelectionParameter": {
|
|
7419
7622
|
"additionalProperties": false,
|
|
7420
7623
|
"properties": {
|
|
@@ -7439,6 +7642,10 @@
|
|
|
7439
7642
|
}
|
|
7440
7643
|
],
|
|
7441
7644
|
"description": "Determines the default event processing and data query for the selection. Vega-Lite currently supports two selection types:\n\n- `\"point\"` -- to select multiple discrete data values; the first value is selected on `click` and additional values toggled on shift-click.\n- `\"interval\"` -- to select a continuous range of data values on `drag`."
|
|
7645
|
+
},
|
|
7646
|
+
"value": {
|
|
7647
|
+
"$ref": "#/definitions/SelectionInitIntervalMapping",
|
|
7648
|
+
"description": "Initial value for the selection."
|
|
7442
7649
|
}
|
|
7443
7650
|
},
|
|
7444
7651
|
"required": [
|
|
@@ -8446,6 +8653,9 @@
|
|
|
8446
8653
|
},
|
|
8447
8654
|
{
|
|
8448
8655
|
"$ref": "#/definitions/ExprRef"
|
|
8656
|
+
},
|
|
8657
|
+
{
|
|
8658
|
+
"$ref": "#/definitions/UrlList"
|
|
8449
8659
|
}
|
|
8450
8660
|
],
|
|
8451
8661
|
"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."
|
|
@@ -8487,6 +8697,28 @@
|
|
|
8487
8697
|
],
|
|
8488
8698
|
"type": "object"
|
|
8489
8699
|
},
|
|
8700
|
+
"UrlList": {
|
|
8701
|
+
"additionalProperties": false,
|
|
8702
|
+
"properties": {
|
|
8703
|
+
"type": {
|
|
8704
|
+
"description": "The format of the data in the list. If the type is `\"json\"`, the list is expected to be an array of strings. If the type is `\"csv\"` or `\"tsv\"`, the list is expected to be a table with a single column named `file`.\n\n__Default value:__ `\"txt\"`",
|
|
8705
|
+
"enum": [
|
|
8706
|
+
"json",
|
|
8707
|
+
"csv",
|
|
8708
|
+
"tsv"
|
|
8709
|
+
],
|
|
8710
|
+
"type": "string"
|
|
8711
|
+
},
|
|
8712
|
+
"urlsFromFile": {
|
|
8713
|
+
"description": "A URL that returns a list of URLs to load the data set. The URLs in the list can be absolute or relative to the URL of the list.",
|
|
8714
|
+
"type": "string"
|
|
8715
|
+
}
|
|
8716
|
+
},
|
|
8717
|
+
"required": [
|
|
8718
|
+
"urlsFromFile"
|
|
8719
|
+
],
|
|
8720
|
+
"type": "object"
|
|
8721
|
+
},
|
|
8490
8722
|
"VConcatSpec": {
|
|
8491
8723
|
"additionalProperties": false,
|
|
8492
8724
|
"properties": {
|
|
@@ -8912,6 +9144,61 @@
|
|
|
8912
9144
|
],
|
|
8913
9145
|
"description": "The fill opacity. Value between `0` and `1`."
|
|
8914
9146
|
},
|
|
9147
|
+
"shadowBlur": {
|
|
9148
|
+
"anyOf": [
|
|
9149
|
+
{
|
|
9150
|
+
"type": "number"
|
|
9151
|
+
},
|
|
9152
|
+
{
|
|
9153
|
+
"$ref": "#/definitions/ExprRef"
|
|
9154
|
+
}
|
|
9155
|
+
],
|
|
9156
|
+
"description": "The blur radius of the drop shadow in pixels. Higher values produce a more diffuse shadow.\n\n**Default value:** `0`"
|
|
9157
|
+
},
|
|
9158
|
+
"shadowColor": {
|
|
9159
|
+
"anyOf": [
|
|
9160
|
+
{
|
|
9161
|
+
"type": "string"
|
|
9162
|
+
},
|
|
9163
|
+
{
|
|
9164
|
+
"$ref": "#/definitions/ExprRef"
|
|
9165
|
+
}
|
|
9166
|
+
],
|
|
9167
|
+
"description": "The color of the drop shadow. Any valid CSS color string is allowed.\n\n**Default value:** `\"black\"`"
|
|
9168
|
+
},
|
|
9169
|
+
"shadowOffsetX": {
|
|
9170
|
+
"anyOf": [
|
|
9171
|
+
{
|
|
9172
|
+
"type": "number"
|
|
9173
|
+
},
|
|
9174
|
+
{
|
|
9175
|
+
"$ref": "#/definitions/ExprRef"
|
|
9176
|
+
}
|
|
9177
|
+
],
|
|
9178
|
+
"description": "The horizontal offset of the drop shadow in pixels. Positive values move the shadow to the right.\n\n**Default value:** `0`"
|
|
9179
|
+
},
|
|
9180
|
+
"shadowOffsetY": {
|
|
9181
|
+
"anyOf": [
|
|
9182
|
+
{
|
|
9183
|
+
"type": "number"
|
|
9184
|
+
},
|
|
9185
|
+
{
|
|
9186
|
+
"$ref": "#/definitions/ExprRef"
|
|
9187
|
+
}
|
|
9188
|
+
],
|
|
9189
|
+
"description": "The vertical offset of the drop shadow in pixels. Positive values move the shadow downward.\n\n**Default value:** `0`"
|
|
9190
|
+
},
|
|
9191
|
+
"shadowOpacity": {
|
|
9192
|
+
"anyOf": [
|
|
9193
|
+
{
|
|
9194
|
+
"type": "number"
|
|
9195
|
+
},
|
|
9196
|
+
{
|
|
9197
|
+
"$ref": "#/definitions/ExprRef"
|
|
9198
|
+
}
|
|
9199
|
+
],
|
|
9200
|
+
"description": "The opacity of the drop shadow. Value between `0` (fully transparent) and `1` (fully opaque).\n\n**Default value:** `0` (disabled)"
|
|
9201
|
+
},
|
|
8915
9202
|
"stroke": {
|
|
8916
9203
|
"anyOf": [
|
|
8917
9204
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collector.d.ts","sourceRoot":"","sources":["../../../src/data/collector.js"],"names":[],"mappings":"AAUA;;;;;GAKG;AACH;IAkCI;;OAEG;IACH,qBAFW,OAAO,sBAAsB,EAAE,aAAa,EAetD;IAVG,qDAA2C;IAE3C,2CAA2C;IAC3C,WADW,CAAC,CAAS,IAAS,EAAT,SAAS,KAAE,IAAI,CAAC,EAAE,CACpB;IAGnB,yFAAyF;IACzF,cADW,GAAG,CAAC,OAAO,oBAAoB,EAAE,MAAM,EAAE,+BAAO,CACN;
|
|
1
|
+
{"version":3,"file":"collector.d.ts","sourceRoot":"","sources":["../../../src/data/collector.js"],"names":[],"mappings":"AAUA;;;;;GAKG;AACH;IAkCI;;OAEG;IACH,qBAFW,OAAO,sBAAsB,EAAE,aAAa,EAetD;IAVG,qDAA2C;IAE3C,2CAA2C;IAC3C,WADW,CAAC,CAAS,IAAS,EAAT,SAAS,KAAE,IAAI,CAAC,EAAE,CACpB;IAGnB,yFAAyF;IACzF,cADW,GAAG,CAAC,OAAO,oBAAoB,EAAE,MAAM,EAAE,+BAAO,CACN;IAwHzD;;OAEG;IACH,WAFa,QAAQ,+BAAO,CAqB3B;IAED;;;OAGG;IACH,mBAFW,CAAC,KAAK,+BAAO,KAAK,IAAI,QAUhC;IAED;;OAEG;IACH,uBAMC;IA8CD;;;;OAIG;IACH,8BAFW,MAAM,iCA4BhB;;CACJ;qBAhTyD,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowNode.d.ts","sourceRoot":"","sources":["../../../src/data/flowNode.js"],"names":[],"mappings":"AAuUA;;;GAGG;AACH,uCAHW,OAAO,uBAAuB,EAAE,SAAS,GACvC,SAAS,IAAI,OAAO,uBAAuB,EAAE,SAAS,CAIlE;AAED;;;GAGG;AACH,wCAHW,OAAO,uBAAuB,EAAE,SAAS,GACvC,SAAS,IAAI,OAAO,uBAAuB,EAAE,UAAU,CAInE;AAnVD;;;GAGG;AACH,qCAAsC;AAEtC;;;GAGG;AACH,uCAAwC;AAExC;;;GAGG;AACH,uCAAwC;AAExC;;GAEG;AAEH;;;;;GAKG;AACH;IA2BI;;OAEG;IACH,oCAFW,qBAAqB,EAa/B;IAxCD;;QAEI,oBAAoB;eAAT,KAAK;MAElB;IAEF;;;;OAIG;IACH,uBAFU,qBAAqB,CAEF;IAE7B,uBAEC;IAED;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"flowNode.d.ts","sourceRoot":"","sources":["../../../src/data/flowNode.js"],"names":[],"mappings":"AAuUA;;;GAGG;AACH,uCAHW,OAAO,uBAAuB,EAAE,SAAS,GACvC,SAAS,IAAI,OAAO,uBAAuB,EAAE,SAAS,CAIlE;AAED;;;GAGG;AACH,wCAHW,OAAO,uBAAuB,EAAE,SAAS,GACvC,SAAS,IAAI,OAAO,uBAAuB,EAAE,UAAU,CAInE;AAnVD;;;GAGG;AACH,qCAAsC;AAEtC;;;GAGG;AACH,uCAAwC;AAExC;;;GAGG;AACH,uCAAwC;AAExC;;GAEG;AAEH;;;;;GAKG;AACH;IA2BI;;OAEG;IACH,oCAFW,qBAAqB,EAa/B;IAxCD;;QAEI,oBAAoB;eAAT,KAAK;MAElB;IAEF;;;;OAIG;IACH,uBAFU,qBAAqB,CAEF;IAE7B,uBAEC;IAED;;;;OAIG;IACH,aAFa,MAAM,CAIlB;IAQG,yBAAyB;IACzB,UADW,QAAQ,EAAE,CACH;IAElB,uBAAuB;IACvB,QADW,QAAQ,CACI;IAEvB,2CAA2C;IAC3C,mBAAsB;IAG1B;;;OAGG;IACH,cASC;IAED;;;OAGG;IACH,mBAEC;IAgOD;;;OAGG;IACH,4BAHW,KAAK,QAKf;IA7MD;;;OAGG;IACH,kBAFW,QAAQ,QAIlB;IAED;;;OAGG;IACH,gBAFW,QAAQ,QAUlB;IAED;;OAEG;IACH,YAFW,QAAQ,QAQlB;IAED;;OAEG;IACH,6BAFW,QAAQ,QAMlB;IAED;;OAEG;IACH,0BAFW,QAAQ,QAalB;IAED;;;OAGG;IACH,mBAFW,QAAQ,QAWlB;IAED;;OAEG;IACH,eAiBC;IAED,kBAEC;IAED,uBAEC;IAED,sBAEC;IAED;;;;OAIG;IACH,eAFW,CAAC,CAAS,IAAQ,EAAR,QAAQ,KAAE,IAAI,CAAC,GAAG;QAAE,aAAa,CAAC,EAAE,CAAS,IAAQ,EAAR,QAAQ,KAAE,IAAI,CAAA;KAAC,QAchF;IAED;;;OAGG;IACH,wBAHW,MAAM,GACJ,MAAM,CAWlB;IAED;;;OAGG;IACH,cAFW,KAAK,QAKf;IAED,iBAMC;IAED;;;;OAIG;IACH,sBAFW,OAAO,uBAAuB,EAAE,SAAS,QAMnD;IAED;;;OAGG;IACH,+BAHa,OAAO,0BAA0B,EAAE,OAAO,CAYtD;IAED;;;;OAIG;IACH,8BAQC;;CASJ;oCAhTY;IAAC,aAAa,EAAE,OAAO,0BAA0B,EAAE,OAAO,CAAA;CAAC;;;;oBAM3D,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;;;mBACnB,KAAK,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataSource.d.ts","sourceRoot":"","sources":["../../../../src/data/sources/dataSource.js"],"names":[],"mappings":"AAEA;IAMI;;OAEG;IACH,kBAFW,OAAO,oBAAoB,EAAE,OAAO,EAM9C;IAZD;;OAEG;IACH,MAFU,OAAO,oBAAoB,EAAE,OAAO,CAEzC;IAWL;;;;;OAKG;IACH,
|
|
1
|
+
{"version":3,"file":"dataSource.d.ts","sourceRoot":"","sources":["../../../../src/data/sources/dataSource.js"],"names":[],"mappings":"AAEA;IAMI;;OAEG;IACH,kBAFW,OAAO,oBAAoB,EAAE,OAAO,EAM9C;IAZD;;OAEG;IACH,MAFU,OAAO,oBAAoB,EAAE,OAAO,CAEzC;IAWL;;;;;OAKG;IACH,kBAFY,MAAM,CAIjB;IAED;;;;;;OAMG;IACH,mCAJW,OAAO,4BAA4B,EAAE,iBAAiB,WACtD,MAAM,QAKhB;IAcD,sBAEC;CAKJ;qBAzDoB,gBAAgB"}
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @param {import("../../spec/data.js").DataSource} params
|
|
6
6
|
* DataSource parameters
|
|
7
|
+
* @param {string | string[]} [urls]
|
|
7
8
|
*/
|
|
8
|
-
export function getFormat(params: import("../../spec/data.js").DataSource): {
|
|
9
|
+
export function getFormat(params: import("../../spec/data.js").DataSource, urls?: string | string[]): {
|
|
9
10
|
type?: "csv" | "tsv";
|
|
10
11
|
parse?: import("../../spec/data.js").Parse | null;
|
|
11
12
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataUtils.d.ts","sourceRoot":"","sources":["../../../../src/data/sources/dataUtils.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dataUtils.d.ts","sourceRoot":"","sources":["../../../../src/data/sources/dataUtils.js"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,kCAJW,OAAO,oBAAoB,EAAE,UAAU,SAEvC,MAAM,GAAG,MAAM,EAAE;;;;;;;;;;;;;EAoB3B;AAED;;;GAGG;AACH,mCAHW,MAAM,GACJ,MAAM,CAIlB;AAED;;GAEG;AACH,wCAFW,MAAM,GAAG,MAAM,EAAE,UAU3B;AAWD;;;GAGG;AACH,4CAHW,OAAO,oBAAoB,EAAE,UAAU,GACtC,UAAU,IAAI,OAAO,oBAAoB,EAAE,aAAa,CAInE;AAED;;;GAGG;AACH,4CAHW,OAAO,oBAAoB,EAAE,UAAU,GACtC,UAAU,IAAI,OAAO,oBAAoB,EAAE,aAAa,CAInE;AAED;;;GAGG;AACH,6CAHW,OAAO,oBAAoB,EAAE,UAAU,GACtC,UAAU,IAAI,OAAO,oBAAoB,EAAE,cAAc,CAIpE;AAED;;;;GAIG;AACH,sCAHW,OAAO,oBAAoB,EAAE,UAAU,GACtC,UAAU,IAAI,OAAO,oBAAoB,EAAE,OAAO,CAI7D;AAxCM,+BAAgC,GAAG,QAI3B,OAAO,uBAAuB,EAAE,MAAM;;UAGtB,OAAO,gBAAgB,EAAE,KAAK,qCANR"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { formats } from "vega-loader";
|
|
2
|
-
import { withoutExprRef } from "../../view/paramMediator.js";
|
|
3
2
|
import { isInlineData } from "./inlineSource.js";
|
|
4
3
|
|
|
5
4
|
/**
|
|
@@ -8,15 +7,15 @@ import { isInlineData } from "./inlineSource.js";
|
|
|
8
7
|
*
|
|
9
8
|
* @param {import("../../spec/data.js").DataSource} params
|
|
10
9
|
* DataSource parameters
|
|
10
|
+
* @param {string | string[]} [urls]
|
|
11
11
|
*/
|
|
12
|
-
export function getFormat(params) {
|
|
12
|
+
export function getFormat(params, urls = []) {
|
|
13
13
|
if (!isInlineData(params) && !isUrlData(params)) {
|
|
14
14
|
return;
|
|
15
15
|
}
|
|
16
16
|
const format = { ...params.format };
|
|
17
17
|
|
|
18
|
-
format.type ??=
|
|
19
|
-
isUrlData(params) && extractTypeFromUrl(withoutExprRef(params.url));
|
|
18
|
+
format.type ??= isUrlData(params) && extractTypeFromUrl(urls);
|
|
20
19
|
// @ts-ignore TODO: Fix typing
|
|
21
20
|
format.parse ??= "auto";
|
|
22
21
|
|
|
@@ -12,9 +12,17 @@ export default class InlineSource extends DataSource {
|
|
|
12
12
|
params: import("../../spec/data.js").InlineData;
|
|
13
13
|
/**
|
|
14
14
|
* Returns true if the data source emits a single dummy datum.
|
|
15
|
+
* The behavior is unspecified if `updateDynamicData` is used.
|
|
15
16
|
*/
|
|
16
17
|
isTrivial(): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Programmatically updates the inline-provided data with new data.
|
|
20
|
+
*
|
|
21
|
+
* @param {import("../flowNode.js").Datum[]} data
|
|
22
|
+
*/
|
|
23
|
+
updateDynamicData(data: import("../flowNode.js").Datum[]): void;
|
|
17
24
|
loadSynchronously(): void;
|
|
25
|
+
#private;
|
|
18
26
|
}
|
|
19
27
|
import DataSource from "./dataSource.js";
|
|
20
28
|
//# sourceMappingURL=inlineSource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inlineSource.d.ts","sourceRoot":"","sources":["../../../../src/data/sources/inlineSource.js"],"names":[],"mappings":"AAIA;;;GAGG;AACH,mCAHW,OAAO,CAAC,OAAO,oBAAoB,EAAE,IAAI,CAAC,GACxC,IAAI,IAAI,OAAO,oBAAoB,EAAE,UAAU,CAI3D;AAED;IACI;;;OAGG;IACH,oBAHW,OAAO,oBAAoB,EAAE,UAAU,QACvC,OAAO,oBAAoB,EAAE,OAAO,EAY9C;IAPG,gDAAoB;IAaxB
|
|
1
|
+
{"version":3,"file":"inlineSource.d.ts","sourceRoot":"","sources":["../../../../src/data/sources/inlineSource.js"],"names":[],"mappings":"AAIA;;;GAGG;AACH,mCAHW,OAAO,CAAC,OAAO,oBAAoB,EAAE,IAAI,CAAC,GACxC,IAAI,IAAI,OAAO,oBAAoB,EAAE,UAAU,CAI3D;AAED;IACI;;;OAGG;IACH,oBAHW,OAAO,oBAAoB,EAAE,UAAU,QACvC,OAAO,oBAAoB,EAAE,OAAO,EAY9C;IAPG,gDAAoB;IAaxB;;;OAGG;IACH,qBASC;IAED;;;;OAIG;IACH,wBAFW,OAAO,gBAAgB,EAAE,KAAK,EAAE,QAI1C;IAED,0BAEC;;CA0CJ;uBAnGsB,iBAAiB"}
|
|
@@ -33,6 +33,7 @@ export default class InlineSource extends DataSource {
|
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* Returns true if the data source emits a single dummy datum.
|
|
36
|
+
* The behavior is unspecified if `updateDynamicData` is used.
|
|
36
37
|
*/
|
|
37
38
|
isTrivial() {
|
|
38
39
|
const values = this.params.values;
|
|
@@ -45,9 +46,24 @@ export default class InlineSource extends DataSource {
|
|
|
45
46
|
);
|
|
46
47
|
}
|
|
47
48
|
|
|
49
|
+
/**
|
|
50
|
+
* Programmatically updates the inline-provided data with new data.
|
|
51
|
+
*
|
|
52
|
+
* @param {import("../flowNode.js").Datum[]} data
|
|
53
|
+
*/
|
|
54
|
+
updateDynamicData(data) {
|
|
55
|
+
this.#loadValuesSynchronously(data);
|
|
56
|
+
}
|
|
57
|
+
|
|
48
58
|
loadSynchronously() {
|
|
49
|
-
|
|
59
|
+
this.#loadValuesSynchronously(this.params.values);
|
|
60
|
+
}
|
|
50
61
|
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @param {import("../../spec/data.js").InlineDataset} values
|
|
65
|
+
*/
|
|
66
|
+
#loadValuesSynchronously(values) {
|
|
51
67
|
let data = [];
|
|
52
68
|
|
|
53
69
|
/** @type {(x: any) => import("../flowNode.js").Datum} */
|
|
@@ -11,6 +11,7 @@ export default class UrlSource extends DataSource {
|
|
|
11
11
|
constructor(params: import("../../spec/data.js").UrlData, view: import("../../view/view.js").default);
|
|
12
12
|
params: import("../../spec/data.js").UrlData;
|
|
13
13
|
baseUrl: string;
|
|
14
|
+
#private;
|
|
14
15
|
}
|
|
15
16
|
import DataSource from "./dataSource.js";
|
|
16
17
|
//# sourceMappingURL=urlSource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"urlSource.d.ts","sourceRoot":"","sources":["../../../../src/data/sources/urlSource.js"],"names":[],"mappings":"AASA;;;GAGG;AACH,gCAHW,OAAO,CAAC,OAAO,oBAAoB,EAAE,IAAI,CAAC,GACxC,IAAI,IAAI,OAAO,oBAAoB,EAAE,OAAO,CAIxD;AAED;IACI;;;OAGG;IACH,oBAHW,OAAO,oBAAoB,EAAE,OAAO,QACpC,OAAO,oBAAoB,EAAE,OAAO,EAU9C;IALG,6CAEC;IAED,gBAAiC;
|
|
1
|
+
{"version":3,"file":"urlSource.d.ts","sourceRoot":"","sources":["../../../../src/data/sources/urlSource.js"],"names":[],"mappings":"AASA;;;GAGG;AACH,gCAHW,OAAO,CAAC,OAAO,oBAAoB,EAAE,IAAI,CAAC,GACxC,IAAI,IAAI,OAAO,oBAAoB,EAAE,OAAO,CAIxD;AAED;IACI;;;OAGG;IACH,oBAHW,OAAO,oBAAoB,EAAE,OAAO,QACpC,OAAO,oBAAoB,EAAE,OAAO,EAU9C;IALG,6CAEC;IAED,gBAAiC;;CAuGxC;uBAlIsB,iBAAiB"}
|
|
@@ -38,13 +38,43 @@ export default class UrlSource extends DataSource {
|
|
|
38
38
|
return "urlSource";
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @param {import("../../spec/data.js").UrlList} props
|
|
44
|
+
*/
|
|
45
|
+
async #loadUrlsFromFile(props) {
|
|
46
|
+
const listUrl = concatUrl(this.baseUrl, props.urlsFromFile);
|
|
47
|
+
|
|
48
|
+
const result = await fetch(listUrl);
|
|
49
|
+
|
|
50
|
+
if (!result.ok) {
|
|
51
|
+
throw new Error(
|
|
52
|
+
`Cannot load "${listUrl}": ${result.status} ${result.statusText}`
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
const text = await result.text();
|
|
56
|
+
|
|
57
|
+
const files = /** @type {string[] | {url: string}[]} */ (
|
|
58
|
+
read(text, { type: props.type ?? "tsv" })
|
|
59
|
+
)
|
|
60
|
+
.map((u) => (typeof u === "string" ? u : u.url))
|
|
61
|
+
.map((u) => concatUrl(listUrl, u));
|
|
62
|
+
|
|
63
|
+
return files;
|
|
64
|
+
}
|
|
65
|
+
|
|
41
66
|
async load() {
|
|
42
67
|
const url = withoutExprRef(this.params.url);
|
|
43
68
|
|
|
44
69
|
/** @type {string[]} */
|
|
45
|
-
const urls =
|
|
70
|
+
const urls =
|
|
71
|
+
typeof url == "object" && "urlsFromFile" in url
|
|
72
|
+
? await this.#loadUrlsFromFile(url)
|
|
73
|
+
: (Array.isArray(url) ? url : [url]).map((u) =>
|
|
74
|
+
concatUrl(this.baseUrl, u)
|
|
75
|
+
);
|
|
46
76
|
|
|
47
|
-
const format = getFormat(this.params);
|
|
77
|
+
const format = getFormat(this.params, urls);
|
|
48
78
|
const type = responseType(format.type);
|
|
49
79
|
|
|
50
80
|
if (urls.length === 0 || !urls[0]) {
|
|
@@ -56,8 +86,7 @@ export default class UrlSource extends DataSource {
|
|
|
56
86
|
/** @param {string} url */
|
|
57
87
|
const load = async (url) => {
|
|
58
88
|
try {
|
|
59
|
-
const
|
|
60
|
-
const result = await fetch(fullUrl);
|
|
89
|
+
const result = await fetch(url);
|
|
61
90
|
if (!result.ok) {
|
|
62
91
|
throw new Error(`${result.status} ${result.statusText}`);
|
|
63
92
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identifier.d.ts","sourceRoot":"","sources":["../../../../src/data/transforms/identifier.js"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"identifier.d.ts","sourceRoot":"","sources":["../../../../src/data/transforms/identifier.js"],"names":[],"mappings":"AAGA,4BAA6B,WAAW,CAAC;AAEzC,yBAA0B,KAAK,CAAC;AAehC;;;;;;;GAOG;AACH;IAKI;;;OAGG;IACH,oBAFW,OAAO,yBAAyB,EAAE,gBAAgB,EAuB5D;IAnBG,2DAAoB;IAEpB,WAAoC;IAEpC;;;OAGG;IACH,SAFU,MAAM,EAAE,CAED;IAEjB;;OAEG;IACH,oBAAoB;IAEpB;;OAEG;IACH,YAAa;IAuBjB;;OAEG;IACH,WAFa,MAAM,CAOlB;IAED,oBAMC;IAED,wBAOC;CACJ;sBAzGqB,gBAAgB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BEHAVIOR_MODIFIES } from "../flowNode.js";
|
|
2
|
-
import fontMetadata from "../../fonts/Lato-Regular.json";
|
|
2
|
+
import fontMetadata from "../../fonts/Lato-Regular.json" with { type: "json" };
|
|
3
3
|
import getMetrics from "../../fonts/bmFontMetrics.js";
|
|
4
4
|
import { field } from "../../utils/field.js";
|
|
5
5
|
import Transform from "./transform.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regexFold.d.ts","sourceRoot":"","sources":["../../../../src/data/transforms/regexFold.js"],"names":[],"mappings":"AAIA;;;;GAIG;AACH;IAKI;;OAEG;IACH,oBAFW,OAAO,yBAAyB,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"regexFold.d.ts","sourceRoot":"","sources":["../../../../src/data/transforms/regexFold.js"],"names":[],"mappings":"AAIA;;;;GAIG;AACH;IAKI;;OAEG;IACH,oBAFW,OAAO,yBAAyB,EAAE,eAAe,EA6I3D;IAxIG,0DAAoB;IAyHhB,gBALO,GAAG,UAKe;CAgBpC;sBA3JqB,gBAAgB"}
|