@genome-spy/core 0.30.3 → 0.32.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/index.es.js +18791 -7176
- package/dist/index.js +237 -50
- package/dist/schema.json +226 -24
- package/package.json +7 -2
- package/LICENSE +0 -21
package/dist/schema.json
CHANGED
|
@@ -70,6 +70,42 @@
|
|
|
70
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
71
|
"type": "string"
|
|
72
72
|
},
|
|
73
|
+
"grid": {
|
|
74
|
+
"description": "A boolean flag indicating if grid lines should be included as part of the axis.\n\n__Default value:__ `false`",
|
|
75
|
+
"type": "boolean"
|
|
76
|
+
},
|
|
77
|
+
"gridCap": {
|
|
78
|
+
"description": "The stroke cap for the grid line's ending style. One of `\"butt\"`, `\"round\"` or `\"square\"`.\n\n__Default value:__ `\"butt\"`",
|
|
79
|
+
"enum": [
|
|
80
|
+
"butt",
|
|
81
|
+
"round",
|
|
82
|
+
"square"
|
|
83
|
+
],
|
|
84
|
+
"type": "string"
|
|
85
|
+
},
|
|
86
|
+
"gridColor": {
|
|
87
|
+
"description": "Color of grid lines.\n\n__Default value:__ `lightgray`",
|
|
88
|
+
"type": "string"
|
|
89
|
+
},
|
|
90
|
+
"gridDash": {
|
|
91
|
+
"description": "An array of alternating [stroke, space] lengths for dashed grid mark lines.",
|
|
92
|
+
"items": {
|
|
93
|
+
"type": "number"
|
|
94
|
+
},
|
|
95
|
+
"type": "array"
|
|
96
|
+
},
|
|
97
|
+
"gridDashOffset": {
|
|
98
|
+
"description": "The pixel offset at which to start drawing with the grid mark dash array.",
|
|
99
|
+
"type": "number"
|
|
100
|
+
},
|
|
101
|
+
"gridOpacity": {
|
|
102
|
+
"description": "The opacity of the grid lines.\n\n__Default value:__ `1`",
|
|
103
|
+
"type": "number"
|
|
104
|
+
},
|
|
105
|
+
"gridWidth": {
|
|
106
|
+
"description": "Width of the grid lines.\n\n__Default value:__ `1`",
|
|
107
|
+
"type": "number"
|
|
108
|
+
},
|
|
73
109
|
"labelAlign": {
|
|
74
110
|
"$ref": "#/definitions/Align",
|
|
75
111
|
"description": "Horizontal text alignment of axis tick labels, overriding the default setting for the current axis orientation."
|
|
@@ -221,6 +257,24 @@
|
|
|
221
257
|
},
|
|
222
258
|
"type": "object"
|
|
223
259
|
},
|
|
260
|
+
"AxisGenomeData": {
|
|
261
|
+
"additionalProperties": false,
|
|
262
|
+
"properties": {
|
|
263
|
+
"channel": {
|
|
264
|
+
"$ref": "#/definitions/PrimaryPositionalChannel",
|
|
265
|
+
"description": "Which channel's scale domain to use"
|
|
266
|
+
},
|
|
267
|
+
"type": {
|
|
268
|
+
"const": "axisGenome",
|
|
269
|
+
"type": "string"
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"required": [
|
|
273
|
+
"type",
|
|
274
|
+
"channel"
|
|
275
|
+
],
|
|
276
|
+
"type": "object"
|
|
277
|
+
},
|
|
224
278
|
"AxisOrient": {
|
|
225
279
|
"enum": [
|
|
226
280
|
"top",
|
|
@@ -230,6 +284,58 @@
|
|
|
230
284
|
],
|
|
231
285
|
"type": "string"
|
|
232
286
|
},
|
|
287
|
+
"AxisTicksData": {
|
|
288
|
+
"additionalProperties": false,
|
|
289
|
+
"properties": {
|
|
290
|
+
"axis": {
|
|
291
|
+
"$ref": "#/definitions/Axis",
|
|
292
|
+
"description": "Optional axis properties"
|
|
293
|
+
},
|
|
294
|
+
"channel": {
|
|
295
|
+
"$ref": "#/definitions/PrimaryPositionalChannel",
|
|
296
|
+
"description": "Which channel's scale domain to listen to"
|
|
297
|
+
},
|
|
298
|
+
"type": {
|
|
299
|
+
"const": "axisTicks",
|
|
300
|
+
"type": "string"
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"required": [
|
|
304
|
+
"type",
|
|
305
|
+
"channel"
|
|
306
|
+
],
|
|
307
|
+
"type": "object"
|
|
308
|
+
},
|
|
309
|
+
"BamData": {
|
|
310
|
+
"additionalProperties": false,
|
|
311
|
+
"properties": {
|
|
312
|
+
"channel": {
|
|
313
|
+
"$ref": "#/definitions/PrimaryPositionalChannel",
|
|
314
|
+
"description": "Which channel's scale domain to monitor.\n\n__Default value:__ `\"x\"`"
|
|
315
|
+
},
|
|
316
|
+
"indexUrl": {
|
|
317
|
+
"description": "URL of the index file.\n\n__Default value:__ `url` + `\".bai\"`.",
|
|
318
|
+
"type": "string"
|
|
319
|
+
},
|
|
320
|
+
"type": {
|
|
321
|
+
"const": "bam",
|
|
322
|
+
"type": "string"
|
|
323
|
+
},
|
|
324
|
+
"url": {
|
|
325
|
+
"description": "URL of the BigBed file.",
|
|
326
|
+
"type": "string"
|
|
327
|
+
},
|
|
328
|
+
"windowSize": {
|
|
329
|
+
"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:__ `10000`",
|
|
330
|
+
"type": "number"
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
"required": [
|
|
334
|
+
"type",
|
|
335
|
+
"url"
|
|
336
|
+
],
|
|
337
|
+
"type": "object"
|
|
338
|
+
},
|
|
233
339
|
"Baseline": {
|
|
234
340
|
"enum": [
|
|
235
341
|
"top",
|
|
@@ -239,6 +345,58 @@
|
|
|
239
345
|
],
|
|
240
346
|
"type": "string"
|
|
241
347
|
},
|
|
348
|
+
"BigBedData": {
|
|
349
|
+
"additionalProperties": false,
|
|
350
|
+
"properties": {
|
|
351
|
+
"channel": {
|
|
352
|
+
"$ref": "#/definitions/PrimaryPositionalChannel",
|
|
353
|
+
"description": "Which channel's scale domain to monitor.\n\n__Default value:__ `\"x\"`"
|
|
354
|
+
},
|
|
355
|
+
"type": {
|
|
356
|
+
"const": "bigbed",
|
|
357
|
+
"type": "string"
|
|
358
|
+
},
|
|
359
|
+
"url": {
|
|
360
|
+
"description": "URL of the BigBed file.",
|
|
361
|
+
"type": "string"
|
|
362
|
+
},
|
|
363
|
+
"windowSize": {
|
|
364
|
+
"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`",
|
|
365
|
+
"type": "number"
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
"required": [
|
|
369
|
+
"type",
|
|
370
|
+
"url"
|
|
371
|
+
],
|
|
372
|
+
"type": "object"
|
|
373
|
+
},
|
|
374
|
+
"BigWigData": {
|
|
375
|
+
"additionalProperties": false,
|
|
376
|
+
"properties": {
|
|
377
|
+
"channel": {
|
|
378
|
+
"$ref": "#/definitions/PrimaryPositionalChannel",
|
|
379
|
+
"description": "Which channel's scale domain to monitor.\n\n__Default value:__ `\"x\"`"
|
|
380
|
+
},
|
|
381
|
+
"pixelsPerBin": {
|
|
382
|
+
"description": "The approximate minimum width of each data bin, in pixels.\n\n__Default value:__ `2`",
|
|
383
|
+
"type": "number"
|
|
384
|
+
},
|
|
385
|
+
"type": {
|
|
386
|
+
"const": "bigwig",
|
|
387
|
+
"type": "string"
|
|
388
|
+
},
|
|
389
|
+
"url": {
|
|
390
|
+
"description": "URL of the BigWig file.",
|
|
391
|
+
"type": "string"
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
"required": [
|
|
395
|
+
"type",
|
|
396
|
+
"url"
|
|
397
|
+
],
|
|
398
|
+
"type": "object"
|
|
399
|
+
},
|
|
242
400
|
"Channel": {
|
|
243
401
|
"anyOf": [
|
|
244
402
|
{
|
|
@@ -751,7 +909,7 @@
|
|
|
751
909
|
"$ref": "#/definitions/DynamicCallbackData"
|
|
752
910
|
},
|
|
753
911
|
{
|
|
754
|
-
"$ref": "#/definitions/
|
|
912
|
+
"$ref": "#/definitions/LazyData"
|
|
755
913
|
}
|
|
756
914
|
]
|
|
757
915
|
},
|
|
@@ -807,27 +965,6 @@
|
|
|
807
965
|
],
|
|
808
966
|
"type": "object"
|
|
809
967
|
},
|
|
810
|
-
"DynamicData": {
|
|
811
|
-
"additionalProperties": false,
|
|
812
|
-
"properties": {
|
|
813
|
-
"dynamicSource": {
|
|
814
|
-
"description": "For internal use.",
|
|
815
|
-
"type": "boolean"
|
|
816
|
-
},
|
|
817
|
-
"format": {
|
|
818
|
-
"$ref": "#/definitions/DataFormat",
|
|
819
|
-
"description": "An object that specifies the format for parsing the data."
|
|
820
|
-
},
|
|
821
|
-
"name": {
|
|
822
|
-
"description": "Provide a placeholder name and bind data at runtime.",
|
|
823
|
-
"type": "string"
|
|
824
|
-
}
|
|
825
|
-
},
|
|
826
|
-
"required": [
|
|
827
|
-
"dynamicSource"
|
|
828
|
-
],
|
|
829
|
-
"type": "object"
|
|
830
|
-
},
|
|
831
968
|
"DynamicOpacity": {
|
|
832
969
|
"additionalProperties": false,
|
|
833
970
|
"description": "DynamicOpacity specifies a zoom-dependent behavior for view opacity. The opacity is interpolated between the specified stops.",
|
|
@@ -1461,6 +1598,36 @@
|
|
|
1461
1598
|
],
|
|
1462
1599
|
"type": "object"
|
|
1463
1600
|
},
|
|
1601
|
+
"IndexedFastaData": {
|
|
1602
|
+
"additionalProperties": false,
|
|
1603
|
+
"properties": {
|
|
1604
|
+
"channel": {
|
|
1605
|
+
"$ref": "#/definitions/PrimaryPositionalChannel",
|
|
1606
|
+
"description": "Which channel's scale domain to monitor.\n\n__Default value:__ `\"x\"`"
|
|
1607
|
+
},
|
|
1608
|
+
"indexUrl": {
|
|
1609
|
+
"description": "URL of the index file.\n\n__Default value:__ `url` + `\".fai\"`.",
|
|
1610
|
+
"type": "string"
|
|
1611
|
+
},
|
|
1612
|
+
"type": {
|
|
1613
|
+
"const": "indexedFasta",
|
|
1614
|
+
"type": "string"
|
|
1615
|
+
},
|
|
1616
|
+
"url": {
|
|
1617
|
+
"description": "URL of the fasta file.",
|
|
1618
|
+
"type": "string"
|
|
1619
|
+
},
|
|
1620
|
+
"windowSize": {
|
|
1621
|
+
"description": "Size of each chunk when fetching the fasta file. Data is only fetched when the length of the visible domain smaller than the window size.\n\n__Default value:__ `7000`",
|
|
1622
|
+
"type": "number"
|
|
1623
|
+
}
|
|
1624
|
+
},
|
|
1625
|
+
"required": [
|
|
1626
|
+
"type",
|
|
1627
|
+
"url"
|
|
1628
|
+
],
|
|
1629
|
+
"type": "object"
|
|
1630
|
+
},
|
|
1464
1631
|
"InlineData": {
|
|
1465
1632
|
"additionalProperties": false,
|
|
1466
1633
|
"properties": {
|
|
@@ -1700,6 +1867,40 @@
|
|
|
1700
1867
|
],
|
|
1701
1868
|
"type": "object"
|
|
1702
1869
|
},
|
|
1870
|
+
"LazyData": {
|
|
1871
|
+
"additionalProperties": false,
|
|
1872
|
+
"properties": {
|
|
1873
|
+
"lazy": {
|
|
1874
|
+
"$ref": "#/definitions/LazyDataParams"
|
|
1875
|
+
}
|
|
1876
|
+
},
|
|
1877
|
+
"required": [
|
|
1878
|
+
"lazy"
|
|
1879
|
+
],
|
|
1880
|
+
"type": "object"
|
|
1881
|
+
},
|
|
1882
|
+
"LazyDataParams": {
|
|
1883
|
+
"anyOf": [
|
|
1884
|
+
{
|
|
1885
|
+
"$ref": "#/definitions/AxisTicksData"
|
|
1886
|
+
},
|
|
1887
|
+
{
|
|
1888
|
+
"$ref": "#/definitions/AxisGenomeData"
|
|
1889
|
+
},
|
|
1890
|
+
{
|
|
1891
|
+
"$ref": "#/definitions/IndexedFastaData"
|
|
1892
|
+
},
|
|
1893
|
+
{
|
|
1894
|
+
"$ref": "#/definitions/BigWigData"
|
|
1895
|
+
},
|
|
1896
|
+
{
|
|
1897
|
+
"$ref": "#/definitions/BigBedData"
|
|
1898
|
+
},
|
|
1899
|
+
{
|
|
1900
|
+
"$ref": "#/definitions/BamData"
|
|
1901
|
+
}
|
|
1902
|
+
]
|
|
1903
|
+
},
|
|
1703
1904
|
"LinearizeGenomicCoordinateParams": {
|
|
1704
1905
|
"additionalProperties": false,
|
|
1705
1906
|
"properties": {
|
|
@@ -2873,11 +3074,12 @@
|
|
|
2873
3074
|
"type": "object"
|
|
2874
3075
|
},
|
|
2875
3076
|
"ResolutionBehavior": {
|
|
2876
|
-
"description": "`\"independent\"` and `\"shared\"` behave similarly to Vega-Lite. `\"excluded\"` behaves like `\"shared\"`, but is not pulled towards the root.",
|
|
3077
|
+
"description": "`\"independent\"` and `\"shared\"` behave similarly to Vega-Lite. `\"excluded\"` behaves like `\"shared\"`, but is not pulled towards the root. `\"forced\"` behaves like `\"shared\"`, but is forced towards the root even if the parent has `\"independent\"` behavior.",
|
|
2877
3078
|
"enum": [
|
|
2878
3079
|
"independent",
|
|
2879
3080
|
"shared",
|
|
2880
|
-
"excluded"
|
|
3081
|
+
"excluded",
|
|
3082
|
+
"forced"
|
|
2881
3083
|
],
|
|
2882
3084
|
"type": "string"
|
|
2883
3085
|
},
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
},
|
|
8
8
|
"contributors": [],
|
|
9
9
|
"license": "MIT",
|
|
10
|
-
"version": "0.
|
|
10
|
+
"version": "0.32.0",
|
|
11
11
|
"main": "dist/index.js",
|
|
12
12
|
"module": "dist/index.es.js",
|
|
13
13
|
"exports": {
|
|
@@ -37,12 +37,17 @@
|
|
|
37
37
|
"build:schema": "mkdir -p dist && ts-json-schema-generator --path 'src/spec/*.ts' --type RootSpec > dist/schema.json"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
+
"@gmod/bam": "^1.1.18",
|
|
41
|
+
"@gmod/bbi": "^4.0.0",
|
|
42
|
+
"@gmod/bed": "^2.1.2",
|
|
43
|
+
"@gmod/indexedfasta": "^2.0.4",
|
|
40
44
|
"@types/d3-array": "^3.0.2",
|
|
41
45
|
"@types/d3-dsv": "^3.0.0",
|
|
42
46
|
"@types/d3-ease": "^3.0.0",
|
|
43
47
|
"@types/d3-format": "^3.0.1",
|
|
44
48
|
"@types/d3-interpolate": "^3.0.1",
|
|
45
49
|
"@types/d3-scale": "^4.0.2",
|
|
50
|
+
"buffer": "^6.0.3",
|
|
46
51
|
"d3-array": "^3.1.1",
|
|
47
52
|
"d3-color": "^3.0.1",
|
|
48
53
|
"d3-ease": "^3.0.1",
|
|
@@ -56,5 +61,5 @@
|
|
|
56
61
|
"vega-scale": "^7.1.1",
|
|
57
62
|
"vega-util": "^1.16.0"
|
|
58
63
|
},
|
|
59
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "09fe8c737a955ef4351be6f4c6a5d1c18c8be237"
|
|
60
65
|
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2018-2023 Kari Lavikka
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|