@genome-spy/core 0.32.2 → 0.33.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 +13033 -12612
- package/dist/index.js +49 -49
- package/dist/schema.json +83 -72
- package/package.json +5 -6
package/dist/schema.json
CHANGED
|
@@ -397,7 +397,7 @@
|
|
|
397
397
|
],
|
|
398
398
|
"type": "object"
|
|
399
399
|
},
|
|
400
|
-
"
|
|
400
|
+
"ChannelWithScale": {
|
|
401
401
|
"anyOf": [
|
|
402
402
|
{
|
|
403
403
|
"$ref": "#/definitions/PositionalChannel"
|
|
@@ -438,40 +438,20 @@
|
|
|
438
438
|
"const": "shape",
|
|
439
439
|
"type": "string"
|
|
440
440
|
},
|
|
441
|
-
{
|
|
442
|
-
"const": "text",
|
|
443
|
-
"type": "string"
|
|
444
|
-
},
|
|
445
441
|
{
|
|
446
442
|
"const": "angle",
|
|
447
443
|
"type": "string"
|
|
448
444
|
},
|
|
449
445
|
{
|
|
450
|
-
"const": "
|
|
451
|
-
"type": "string"
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
"const": "uniqueId",
|
|
455
|
-
"type": "string"
|
|
456
|
-
},
|
|
457
|
-
{
|
|
458
|
-
"const": "search",
|
|
459
|
-
"type": "string"
|
|
460
|
-
},
|
|
461
|
-
{
|
|
462
|
-
"const": "facetIndex",
|
|
463
|
-
"type": "string"
|
|
464
|
-
},
|
|
465
|
-
{
|
|
466
|
-
"const": "semanticScore",
|
|
446
|
+
"const": "dx",
|
|
467
447
|
"type": "string"
|
|
468
448
|
},
|
|
469
449
|
{
|
|
470
|
-
"const": "
|
|
450
|
+
"const": "dy",
|
|
471
451
|
"type": "string"
|
|
472
452
|
},
|
|
473
453
|
{
|
|
474
|
-
"const": "
|
|
454
|
+
"const": "sample",
|
|
475
455
|
"type": "string"
|
|
476
456
|
}
|
|
477
457
|
]
|
|
@@ -509,7 +489,7 @@
|
|
|
509
489
|
"description": "The field having an intra-chromosomal position."
|
|
510
490
|
},
|
|
511
491
|
"resolutionChannel": {
|
|
512
|
-
"$ref": "#/definitions/
|
|
492
|
+
"$ref": "#/definitions/ChannelWithScale",
|
|
513
493
|
"description": "An alternative channel for scale resolution.\n\nThis is mainly for internal use and allows using `color` channel to resolve `fill` and `stroke` channels under certain circumstances."
|
|
514
494
|
},
|
|
515
495
|
"scale": {
|
|
@@ -1992,8 +1972,16 @@
|
|
|
1992
1972
|
"type": "boolean"
|
|
1993
1973
|
},
|
|
1994
1974
|
"clip": {
|
|
1995
|
-
"
|
|
1996
|
-
|
|
1975
|
+
"anyOf": [
|
|
1976
|
+
{
|
|
1977
|
+
"type": "boolean"
|
|
1978
|
+
},
|
|
1979
|
+
{
|
|
1980
|
+
"const": "never",
|
|
1981
|
+
"type": "string"
|
|
1982
|
+
}
|
|
1983
|
+
],
|
|
1984
|
+
"description": "If true, the mark is clipped to the UnitView's rectangle. By default, clipping is enabled for marks that have zoomable positional scales."
|
|
1997
1985
|
},
|
|
1998
1986
|
"color": {
|
|
1999
1987
|
"type": "string"
|
|
@@ -2031,6 +2019,7 @@
|
|
|
2031
2019
|
"type": "number"
|
|
2032
2020
|
},
|
|
2033
2021
|
"fill": {
|
|
2022
|
+
"description": "The fill color",
|
|
2034
2023
|
"type": "string"
|
|
2035
2024
|
},
|
|
2036
2025
|
"fillGradientStrength": {
|
|
@@ -2038,6 +2027,7 @@
|
|
|
2038
2027
|
"type": "number"
|
|
2039
2028
|
},
|
|
2040
2029
|
"fillOpacity": {
|
|
2030
|
+
"description": "The fill opacity. Value between [0, 1].",
|
|
2041
2031
|
"type": "number"
|
|
2042
2032
|
},
|
|
2043
2033
|
"filled": {
|
|
@@ -2148,6 +2138,7 @@
|
|
|
2148
2138
|
"type": "boolean"
|
|
2149
2139
|
},
|
|
2150
2140
|
"stroke": {
|
|
2141
|
+
"description": "The stroke color",
|
|
2151
2142
|
"type": "string"
|
|
2152
2143
|
},
|
|
2153
2144
|
"strokeCap": {
|
|
@@ -2171,6 +2162,7 @@
|
|
|
2171
2162
|
"type": "number"
|
|
2172
2163
|
},
|
|
2173
2164
|
"strokeOpacity": {
|
|
2165
|
+
"description": "The stroke opacity. Value between [0, 1].",
|
|
2174
2166
|
"type": "number"
|
|
2175
2167
|
},
|
|
2176
2168
|
"strokeWidth": {
|
|
@@ -2246,7 +2238,7 @@
|
|
|
2246
2238
|
"description": "A constant value in data domain."
|
|
2247
2239
|
},
|
|
2248
2240
|
"resolutionChannel": {
|
|
2249
|
-
"$ref": "#/definitions/
|
|
2241
|
+
"$ref": "#/definitions/ChannelWithScale",
|
|
2250
2242
|
"description": "An alternative channel for scale resolution.\n\nThis is mainly for internal use and allows using `color` channel to resolve `fill` and `stroke` channels under certain circumstances."
|
|
2251
2243
|
},
|
|
2252
2244
|
"scale": {
|
|
@@ -2284,7 +2276,7 @@
|
|
|
2284
2276
|
"description": "A constant value in data domain."
|
|
2285
2277
|
},
|
|
2286
2278
|
"resolutionChannel": {
|
|
2287
|
-
"$ref": "#/definitions/
|
|
2279
|
+
"$ref": "#/definitions/ChannelWithScale",
|
|
2288
2280
|
"description": "An alternative channel for scale resolution.\n\nThis is mainly for internal use and allows using `color` channel to resolve `fill` and `stroke` channels under certain circumstances."
|
|
2289
2281
|
},
|
|
2290
2282
|
"scale": {
|
|
@@ -2352,7 +2344,7 @@
|
|
|
2352
2344
|
"type": "string"
|
|
2353
2345
|
},
|
|
2354
2346
|
"resolutionChannel": {
|
|
2355
|
-
"$ref": "#/definitions/
|
|
2347
|
+
"$ref": "#/definitions/ChannelWithScale",
|
|
2356
2348
|
"description": "An alternative channel for scale resolution.\n\nThis is mainly for internal use and allows using `color` channel to resolve `fill` and `stroke` channels under certain circumstances."
|
|
2357
2349
|
},
|
|
2358
2350
|
"scale": {
|
|
@@ -2366,6 +2358,13 @@
|
|
|
2366
2358
|
],
|
|
2367
2359
|
"description": "An object defining properties of the channel's scale, which is the function that transforms values in the data domain (numbers, dates, strings, etc) to visual values (pixels, colors, sizes) of the encoding channels.\n\nIf `null`, the scale will be [disabled and the data value will be directly encoded](https://vega.github.io/vega-lite/docs/scale.html#disable).\n\n__Default value:__ If undefined, default [scale properties](https://vega.github.io/vega-lite/docs/scale.html) are applied.\n\n__See also:__ [`scale`](https://vega.github.io/vega-lite/docs/scale.html) documentation."
|
|
2368
2360
|
},
|
|
2361
|
+
"title": {
|
|
2362
|
+
"description": "A title for the field. If `null`, the title will be removed.",
|
|
2363
|
+
"type": [
|
|
2364
|
+
"string",
|
|
2365
|
+
"null"
|
|
2366
|
+
]
|
|
2367
|
+
},
|
|
2369
2368
|
"type": {
|
|
2370
2369
|
"$ref": "#/definitions/Type"
|
|
2371
2370
|
}
|
|
@@ -2385,7 +2384,7 @@
|
|
|
2385
2384
|
"type": "string"
|
|
2386
2385
|
},
|
|
2387
2386
|
"resolutionChannel": {
|
|
2388
|
-
"$ref": "#/definitions/
|
|
2387
|
+
"$ref": "#/definitions/ChannelWithScale",
|
|
2389
2388
|
"description": "An alternative channel for scale resolution.\n\nThis is mainly for internal use and allows using `color` channel to resolve `fill` and `stroke` channels under certain circumstances."
|
|
2390
2389
|
},
|
|
2391
2390
|
"scale": {
|
|
@@ -2424,7 +2423,7 @@
|
|
|
2424
2423
|
"type": "string"
|
|
2425
2424
|
},
|
|
2426
2425
|
"resolutionChannel": {
|
|
2427
|
-
"$ref": "#/definitions/
|
|
2426
|
+
"$ref": "#/definitions/ChannelWithScale",
|
|
2428
2427
|
"description": "An alternative channel for scale resolution.\n\nThis is mainly for internal use and allows using `color` channel to resolve `fill` and `stroke` channels under certain circumstances."
|
|
2429
2428
|
},
|
|
2430
2429
|
"scale": {
|
|
@@ -2791,7 +2790,7 @@
|
|
|
2791
2790
|
"description": "A constant value in data domain."
|
|
2792
2791
|
},
|
|
2793
2792
|
"resolutionChannel": {
|
|
2794
|
-
"$ref": "#/definitions/
|
|
2793
|
+
"$ref": "#/definitions/ChannelWithScale",
|
|
2795
2794
|
"description": "An alternative channel for scale resolution.\n\nThis is mainly for internal use and allows using `color` channel to resolve `fill` and `stroke` channels under certain circumstances."
|
|
2796
2795
|
},
|
|
2797
2796
|
"scale": {
|
|
@@ -2899,7 +2898,7 @@
|
|
|
2899
2898
|
"type": "string"
|
|
2900
2899
|
},
|
|
2901
2900
|
"resolutionChannel": {
|
|
2902
|
-
"$ref": "#/definitions/
|
|
2901
|
+
"$ref": "#/definitions/ChannelWithScale",
|
|
2903
2902
|
"description": "An alternative channel for scale resolution.\n\nThis is mainly for internal use and allows using `color` channel to resolve `fill` and `stroke` channels under certain circumstances."
|
|
2904
2903
|
},
|
|
2905
2904
|
"scale": {
|
|
@@ -3104,6 +3103,10 @@
|
|
|
3104
3103
|
},
|
|
3105
3104
|
"type": "array"
|
|
3106
3105
|
},
|
|
3106
|
+
"background": {
|
|
3107
|
+
"description": "Background color of the canvas.",
|
|
3108
|
+
"type": "string"
|
|
3109
|
+
},
|
|
3107
3110
|
"baseUrl": {
|
|
3108
3111
|
"type": "string"
|
|
3109
3112
|
},
|
|
@@ -3273,6 +3276,10 @@
|
|
|
3273
3276
|
},
|
|
3274
3277
|
"type": "array"
|
|
3275
3278
|
},
|
|
3279
|
+
"background": {
|
|
3280
|
+
"description": "Background color of the canvas.",
|
|
3281
|
+
"type": "string"
|
|
3282
|
+
},
|
|
3276
3283
|
"baseUrl": {
|
|
3277
3284
|
"type": "string"
|
|
3278
3285
|
},
|
|
@@ -3432,6 +3439,10 @@
|
|
|
3432
3439
|
"$schema": {
|
|
3433
3440
|
"type": "string"
|
|
3434
3441
|
},
|
|
3442
|
+
"background": {
|
|
3443
|
+
"description": "Background color of the canvas.",
|
|
3444
|
+
"type": "string"
|
|
3445
|
+
},
|
|
3435
3446
|
"baseUrl": {
|
|
3436
3447
|
"type": "string"
|
|
3437
3448
|
},
|
|
@@ -3560,6 +3571,10 @@
|
|
|
3560
3571
|
},
|
|
3561
3572
|
"type": "array"
|
|
3562
3573
|
},
|
|
3574
|
+
"view": {
|
|
3575
|
+
"$ref": "#/definitions/ViewBackground",
|
|
3576
|
+
"description": "An object defining the view background and outline. The background is repeated for each group."
|
|
3577
|
+
},
|
|
3563
3578
|
"visible": {
|
|
3564
3579
|
"description": "Visibility of the view. An invisible view is removed from the layout and not rendered.\n\n**Default:** `true`",
|
|
3565
3580
|
"type": "boolean"
|
|
@@ -3594,6 +3609,10 @@
|
|
|
3594
3609
|
"$schema": {
|
|
3595
3610
|
"type": "string"
|
|
3596
3611
|
},
|
|
3612
|
+
"background": {
|
|
3613
|
+
"description": "Background color of the canvas.",
|
|
3614
|
+
"type": "string"
|
|
3615
|
+
},
|
|
3597
3616
|
"baseUrl": {
|
|
3598
3617
|
"type": "string"
|
|
3599
3618
|
},
|
|
@@ -3753,6 +3772,10 @@
|
|
|
3753
3772
|
"$schema": {
|
|
3754
3773
|
"type": "string"
|
|
3755
3774
|
},
|
|
3775
|
+
"background": {
|
|
3776
|
+
"description": "Background color of the canvas.",
|
|
3777
|
+
"type": "string"
|
|
3778
|
+
},
|
|
3756
3779
|
"baseUrl": {
|
|
3757
3780
|
"type": "string"
|
|
3758
3781
|
},
|
|
@@ -3912,6 +3935,10 @@
|
|
|
3912
3935
|
"$schema": {
|
|
3913
3936
|
"type": "string"
|
|
3914
3937
|
},
|
|
3938
|
+
"background": {
|
|
3939
|
+
"description": "Background color of the canvas.",
|
|
3940
|
+
"type": "string"
|
|
3941
|
+
},
|
|
3915
3942
|
"baseUrl": {
|
|
3916
3943
|
"type": "string"
|
|
3917
3944
|
},
|
|
@@ -4312,6 +4339,10 @@
|
|
|
4312
4339
|
},
|
|
4313
4340
|
"type": "array"
|
|
4314
4341
|
},
|
|
4342
|
+
"view": {
|
|
4343
|
+
"$ref": "#/definitions/ViewBackground",
|
|
4344
|
+
"description": "An object defining the view background and outline. The background is repeated for each group."
|
|
4345
|
+
},
|
|
4315
4346
|
"visible": {
|
|
4316
4347
|
"description": "Visibility of the view. An invisible view is removed from the layout and not rendered.\n\n**Default:** `true`",
|
|
4317
4348
|
"type": "boolean"
|
|
@@ -5383,6 +5414,13 @@
|
|
|
5383
5414
|
"ValueDef<(string|null)>": {
|
|
5384
5415
|
"additionalProperties": false,
|
|
5385
5416
|
"properties": {
|
|
5417
|
+
"title": {
|
|
5418
|
+
"description": "A title for the field. If `null`, the title will be removed.",
|
|
5419
|
+
"type": [
|
|
5420
|
+
"string",
|
|
5421
|
+
"null"
|
|
5422
|
+
]
|
|
5423
|
+
},
|
|
5386
5424
|
"value": {
|
|
5387
5425
|
"description": "A constant value in visual domain (e.g., `\"red\"` / `\"#0099ff\"`, values between `0` to `1` for opacity).",
|
|
5388
5426
|
"type": [
|
|
@@ -5399,6 +5437,13 @@
|
|
|
5399
5437
|
"ValueDef<number>": {
|
|
5400
5438
|
"additionalProperties": false,
|
|
5401
5439
|
"properties": {
|
|
5440
|
+
"title": {
|
|
5441
|
+
"description": "A title for the field. If `null`, the title will be removed.",
|
|
5442
|
+
"type": [
|
|
5443
|
+
"string",
|
|
5444
|
+
"null"
|
|
5445
|
+
]
|
|
5446
|
+
},
|
|
5402
5447
|
"value": {
|
|
5403
5448
|
"description": "A constant value in visual domain (e.g., `\"red\"` / `\"#0099ff\"`, values between `0` to `1` for opacity).",
|
|
5404
5449
|
"type": "number"
|
|
@@ -5412,58 +5457,24 @@
|
|
|
5412
5457
|
"ViewBackground": {
|
|
5413
5458
|
"additionalProperties": false,
|
|
5414
5459
|
"properties": {
|
|
5415
|
-
"cornerRadius": {
|
|
5416
|
-
"description": "Radius of the rounded corners.\n\n**Default value:** `0`",
|
|
5417
|
-
"type": "number"
|
|
5418
|
-
},
|
|
5419
|
-
"cornerRadiusBottomLeft": {
|
|
5420
|
-
"description": "Radius of the bottom left rounded corner. Has higher precedence than `cornerRadius`.\n\n**Default value:** (None)",
|
|
5421
|
-
"type": "number"
|
|
5422
|
-
},
|
|
5423
|
-
"cornerRadiusBottomRight": {
|
|
5424
|
-
"description": "Radius of the bottom right rounded corner. Has higher precedence than `cornerRadius`.\n\n**Default value:** (None)",
|
|
5425
|
-
"type": "number"
|
|
5426
|
-
},
|
|
5427
|
-
"cornerRadiusTopLeft": {
|
|
5428
|
-
"description": "Radius of the top left rounded corner. Has higher precedence than `cornerRadius`.\n\n**Default value:** (None)",
|
|
5429
|
-
"type": "number"
|
|
5430
|
-
},
|
|
5431
|
-
"cornerRadiusTopRight": {
|
|
5432
|
-
"description": "Radius of the top right rounded corner. Has higher precedence than `cornerRadius`.\n\n**Default value:** (None)",
|
|
5433
|
-
"type": "number"
|
|
5434
|
-
},
|
|
5435
5460
|
"fill": {
|
|
5461
|
+
"description": "The fill color",
|
|
5436
5462
|
"type": "string"
|
|
5437
5463
|
},
|
|
5438
5464
|
"fillOpacity": {
|
|
5439
|
-
"
|
|
5440
|
-
},
|
|
5441
|
-
"minHeight": {
|
|
5442
|
-
"description": "The minimum height of a rectangle in pixels. The property clamps rectangles' heights.\n\n**Default value:** `0`",
|
|
5443
|
-
"type": "number"
|
|
5444
|
-
},
|
|
5445
|
-
"minOpacity": {
|
|
5446
|
-
"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`",
|
|
5447
|
-
"type": "number"
|
|
5448
|
-
},
|
|
5449
|
-
"minWidth": {
|
|
5450
|
-
"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`",
|
|
5465
|
+
"description": "The fill opacity. Value between [0, 1].",
|
|
5451
5466
|
"type": "number"
|
|
5452
5467
|
},
|
|
5453
5468
|
"stroke": {
|
|
5469
|
+
"description": "The stroke color",
|
|
5454
5470
|
"type": "string"
|
|
5455
5471
|
},
|
|
5456
5472
|
"strokeOpacity": {
|
|
5473
|
+
"description": "The stroke opacity. Value between [0, 1].",
|
|
5457
5474
|
"type": "number"
|
|
5458
5475
|
},
|
|
5459
5476
|
"strokeWidth": {
|
|
5460
5477
|
"type": "number"
|
|
5461
|
-
},
|
|
5462
|
-
"x2": {
|
|
5463
|
-
"type": "number"
|
|
5464
|
-
},
|
|
5465
|
-
"y2": {
|
|
5466
|
-
"type": "number"
|
|
5467
5478
|
}
|
|
5468
5479
|
},
|
|
5469
5480
|
"type": "object"
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
},
|
|
8
8
|
"contributors": [],
|
|
9
9
|
"license": "MIT",
|
|
10
|
-
"version": "0.
|
|
10
|
+
"version": "0.33.0",
|
|
11
11
|
"main": "dist/index.js",
|
|
12
12
|
"module": "dist/index.es.js",
|
|
13
13
|
"exports": {
|
|
@@ -31,10 +31,9 @@
|
|
|
31
31
|
"dev": "node dev-server.js",
|
|
32
32
|
"build": "vite build && npm run build:schema",
|
|
33
33
|
"prepublishOnly": "npm run build",
|
|
34
|
-
"test:
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"build:schema": "mkdir -p dist && ts-json-schema-generator --path 'src/spec/*.ts' --type RootSpec > dist/schema.json"
|
|
34
|
+
"test:tsc": "tsc -p tsconfig.json --noEmit",
|
|
35
|
+
"build:schema": "mkdir -p dist && ts-json-schema-generator --path 'src/spec/*.ts' --type RootSpec > dist/schema.json",
|
|
36
|
+
"build:typings": "tsc -p tsconfig.json --declaration --emitDeclarationOnly --declarationMap --outDir dist/types"
|
|
38
37
|
},
|
|
39
38
|
"dependencies": {
|
|
40
39
|
"@gmod/bam": "^1.1.18",
|
|
@@ -61,5 +60,5 @@
|
|
|
61
60
|
"vega-scale": "^7.1.1",
|
|
62
61
|
"vega-util": "^1.16.0"
|
|
63
62
|
},
|
|
64
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "a47f7775e3d3ef925aed79f098ad109fee18610c"
|
|
65
64
|
}
|