@genome-spy/core 0.35.0 → 0.36.1
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 +2615 -2611
- package/dist/index.js +47 -47
- package/dist/schema.json +320 -5
- package/package.json +2 -2
package/dist/schema.json
CHANGED
|
@@ -462,7 +462,7 @@
|
|
|
462
462
|
"axis": {
|
|
463
463
|
"anyOf": [
|
|
464
464
|
{
|
|
465
|
-
"$ref": "#/definitions/
|
|
465
|
+
"$ref": "#/definitions/GenomeAxis"
|
|
466
466
|
},
|
|
467
467
|
{
|
|
468
468
|
"type": "null"
|
|
@@ -1395,6 +1395,321 @@
|
|
|
1395
1395
|
"Generator": {
|
|
1396
1396
|
"$ref": "#/definitions/SequenceGenerator"
|
|
1397
1397
|
},
|
|
1398
|
+
"GenomeAxis": {
|
|
1399
|
+
"additionalProperties": false,
|
|
1400
|
+
"properties": {
|
|
1401
|
+
"chromGrid": {
|
|
1402
|
+
"description": "A boolean flag indicating if chromosome grid lines should be included as part of the axis.\n\n__Default value:__ `false`",
|
|
1403
|
+
"type": "boolean"
|
|
1404
|
+
},
|
|
1405
|
+
"chromGridCap": {
|
|
1406
|
+
"description": "The stroke cap for the chromosome grid line's ending style. One of `\"butt\"`, `\"round\"` or `\"square\"`.\n\n__Default value:__ `\"butt\"`",
|
|
1407
|
+
"enum": [
|
|
1408
|
+
"butt",
|
|
1409
|
+
"round",
|
|
1410
|
+
"square"
|
|
1411
|
+
],
|
|
1412
|
+
"type": "string"
|
|
1413
|
+
},
|
|
1414
|
+
"chromGridColor": {
|
|
1415
|
+
"description": "Color of grid lines.\n\n__Default value:__ `lightgray`",
|
|
1416
|
+
"type": "string"
|
|
1417
|
+
},
|
|
1418
|
+
"chromGridDash": {
|
|
1419
|
+
"description": "An array of alternating [stroke, space] lengths for dashed chromosome grid mark lines.",
|
|
1420
|
+
"items": {
|
|
1421
|
+
"type": "number"
|
|
1422
|
+
},
|
|
1423
|
+
"type": "array"
|
|
1424
|
+
},
|
|
1425
|
+
"chromGridDashOffset": {
|
|
1426
|
+
"description": "The pixel offset at which to start drawing with the chromosome grid mark dash array.",
|
|
1427
|
+
"type": "number"
|
|
1428
|
+
},
|
|
1429
|
+
"chromGridFillEven": {
|
|
1430
|
+
"description": "Fill color of odd chromosomes.\n\n__Default value:__ (none)",
|
|
1431
|
+
"type": "string"
|
|
1432
|
+
},
|
|
1433
|
+
"chromGridFillOdd": {
|
|
1434
|
+
"description": "Fill color of odd chromosomes.\n\n__Default value:__ (none)",
|
|
1435
|
+
"type": "string"
|
|
1436
|
+
},
|
|
1437
|
+
"chromGridOpacity": {
|
|
1438
|
+
"description": "The opacity of the chromosome grid lines.\n\n__Default value:__ `1`",
|
|
1439
|
+
"type": "number"
|
|
1440
|
+
},
|
|
1441
|
+
"chromGridWidth": {
|
|
1442
|
+
"description": "Width of the chromosome grid lines.\n\n__Default value:__ `1`",
|
|
1443
|
+
"type": "number"
|
|
1444
|
+
},
|
|
1445
|
+
"chromLabelAlign": {
|
|
1446
|
+
"$ref": "#/definitions/Align"
|
|
1447
|
+
},
|
|
1448
|
+
"chromLabelColor": {
|
|
1449
|
+
"type": "string"
|
|
1450
|
+
},
|
|
1451
|
+
"chromLabelFont": {
|
|
1452
|
+
"type": "string"
|
|
1453
|
+
},
|
|
1454
|
+
"chromLabelFontSize": {
|
|
1455
|
+
"type": "number"
|
|
1456
|
+
},
|
|
1457
|
+
"chromLabelFontStyle": {
|
|
1458
|
+
"$ref": "#/definitions/FontStyle"
|
|
1459
|
+
},
|
|
1460
|
+
"chromLabelFontWeight": {
|
|
1461
|
+
"$ref": "#/definitions/FontWeight"
|
|
1462
|
+
},
|
|
1463
|
+
"chromLabelPadding": {
|
|
1464
|
+
"type": "number"
|
|
1465
|
+
},
|
|
1466
|
+
"chromLabels": {
|
|
1467
|
+
"type": "boolean"
|
|
1468
|
+
},
|
|
1469
|
+
"chromTickColor": {
|
|
1470
|
+
"type": "string"
|
|
1471
|
+
},
|
|
1472
|
+
"chromTickDash": {
|
|
1473
|
+
"items": {
|
|
1474
|
+
"type": "number"
|
|
1475
|
+
},
|
|
1476
|
+
"type": "array"
|
|
1477
|
+
},
|
|
1478
|
+
"chromTickDashOffset": {
|
|
1479
|
+
"type": "number"
|
|
1480
|
+
},
|
|
1481
|
+
"chromTickSize": {
|
|
1482
|
+
"type": "number"
|
|
1483
|
+
},
|
|
1484
|
+
"chromTickWidth": {
|
|
1485
|
+
"type": "number"
|
|
1486
|
+
},
|
|
1487
|
+
"chromTicks": {
|
|
1488
|
+
"type": "boolean"
|
|
1489
|
+
},
|
|
1490
|
+
"domain": {
|
|
1491
|
+
"description": "A boolean flag indicating if the domain (the axis baseline) should be included as part of the axis.\n\n__Default value:__ `true`",
|
|
1492
|
+
"type": "boolean"
|
|
1493
|
+
},
|
|
1494
|
+
"domainCap": {
|
|
1495
|
+
"description": "The stroke cap for the domain line's ending style. One of `\"butt\"`, `\"round\"` or `\"square\"`.\n\n__Default value:__ `\"butt\"`",
|
|
1496
|
+
"enum": [
|
|
1497
|
+
"butt",
|
|
1498
|
+
"round",
|
|
1499
|
+
"square"
|
|
1500
|
+
],
|
|
1501
|
+
"type": "string"
|
|
1502
|
+
},
|
|
1503
|
+
"domainColor": {
|
|
1504
|
+
"description": "Color of axis domain line.\n\n__Default value:__ `\"gray\"`.",
|
|
1505
|
+
"type": "string"
|
|
1506
|
+
},
|
|
1507
|
+
"domainDash": {
|
|
1508
|
+
"description": "An array of alternating [stroke, space] lengths for dashed domain lines.",
|
|
1509
|
+
"items": {
|
|
1510
|
+
"type": "number"
|
|
1511
|
+
},
|
|
1512
|
+
"type": "array"
|
|
1513
|
+
},
|
|
1514
|
+
"domainDashOffset": {
|
|
1515
|
+
"description": "The pixel offset at which to start drawing with the domain dash array.",
|
|
1516
|
+
"type": "number"
|
|
1517
|
+
},
|
|
1518
|
+
"domainWidth": {
|
|
1519
|
+
"description": "Stroke width of axis domain line\n\n__Default value:__ `1`",
|
|
1520
|
+
"type": "number"
|
|
1521
|
+
},
|
|
1522
|
+
"format": {
|
|
1523
|
+
"description": "The format specifier pattern for axis labels. Must be a legal [d3-format](https://github.com/d3/d3-format#locale_format) specifier.",
|
|
1524
|
+
"type": "string"
|
|
1525
|
+
},
|
|
1526
|
+
"grid": {
|
|
1527
|
+
"description": "A boolean flag indicating if grid lines should be included as part of the axis.\n\n__Default value:__ `false`",
|
|
1528
|
+
"type": "boolean"
|
|
1529
|
+
},
|
|
1530
|
+
"gridCap": {
|
|
1531
|
+
"description": "The stroke cap for the grid line's ending style. One of `\"butt\"`, `\"round\"` or `\"square\"`.\n\n__Default value:__ `\"butt\"`",
|
|
1532
|
+
"enum": [
|
|
1533
|
+
"butt",
|
|
1534
|
+
"round",
|
|
1535
|
+
"square"
|
|
1536
|
+
],
|
|
1537
|
+
"type": "string"
|
|
1538
|
+
},
|
|
1539
|
+
"gridColor": {
|
|
1540
|
+
"description": "Color of grid lines.\n\n__Default value:__ `lightgray`",
|
|
1541
|
+
"type": "string"
|
|
1542
|
+
},
|
|
1543
|
+
"gridDash": {
|
|
1544
|
+
"description": "An array of alternating [stroke, space] lengths for dashed grid mark lines.",
|
|
1545
|
+
"items": {
|
|
1546
|
+
"type": "number"
|
|
1547
|
+
},
|
|
1548
|
+
"type": "array"
|
|
1549
|
+
},
|
|
1550
|
+
"gridDashOffset": {
|
|
1551
|
+
"description": "The pixel offset at which to start drawing with the grid mark dash array.",
|
|
1552
|
+
"type": "number"
|
|
1553
|
+
},
|
|
1554
|
+
"gridOpacity": {
|
|
1555
|
+
"description": "The opacity of the grid lines.\n\n__Default value:__ `1`",
|
|
1556
|
+
"type": "number"
|
|
1557
|
+
},
|
|
1558
|
+
"gridWidth": {
|
|
1559
|
+
"description": "Width of the grid lines.\n\n__Default value:__ `1`",
|
|
1560
|
+
"type": "number"
|
|
1561
|
+
},
|
|
1562
|
+
"labelAlign": {
|
|
1563
|
+
"$ref": "#/definitions/Align",
|
|
1564
|
+
"description": "Horizontal text alignment of axis tick labels, overriding the default setting for the current axis orientation."
|
|
1565
|
+
},
|
|
1566
|
+
"labelAngle": {
|
|
1567
|
+
"description": "The rotation angle of the axis labels.\n\n__Default value:__ `-90` for nominal and ordinal fields; `0` otherwise.",
|
|
1568
|
+
"maximum": 360,
|
|
1569
|
+
"minimum": -360,
|
|
1570
|
+
"type": "number"
|
|
1571
|
+
},
|
|
1572
|
+
"labelBaseline": {
|
|
1573
|
+
"$ref": "#/definitions/Baseline",
|
|
1574
|
+
"description": "Vertical text baseline of axis tick labels, overriding the default setting for the current axis orientation. One of `\"alphabetic\"` (default), `\"top\"`, `\"middle\"`, `\"bottom\"`."
|
|
1575
|
+
},
|
|
1576
|
+
"labelColor": {
|
|
1577
|
+
"description": "The color of the tick label, can be in hex color code or regular color name.",
|
|
1578
|
+
"type": "string"
|
|
1579
|
+
},
|
|
1580
|
+
"labelFont": {
|
|
1581
|
+
"description": "The font of the tick label.",
|
|
1582
|
+
"type": "string"
|
|
1583
|
+
},
|
|
1584
|
+
"labelFontSize": {
|
|
1585
|
+
"description": "The font size of the label, in pixels.",
|
|
1586
|
+
"minimum": 0,
|
|
1587
|
+
"type": "number"
|
|
1588
|
+
},
|
|
1589
|
+
"labelFontStyle": {
|
|
1590
|
+
"description": "Font style of the title.",
|
|
1591
|
+
"type": "string"
|
|
1592
|
+
},
|
|
1593
|
+
"labelFontWeight": {
|
|
1594
|
+
"description": "Font weight of axis tick labels.",
|
|
1595
|
+
"type": "string"
|
|
1596
|
+
},
|
|
1597
|
+
"labelLimit": {
|
|
1598
|
+
"description": "Maximum allowed pixel width of axis tick labels.\n\n__Default value:__ `180`",
|
|
1599
|
+
"type": "number"
|
|
1600
|
+
},
|
|
1601
|
+
"labelPadding": {
|
|
1602
|
+
"description": "The padding, in pixels, between axis and text labels.\n\n__Default value:__ `2`",
|
|
1603
|
+
"type": "number"
|
|
1604
|
+
},
|
|
1605
|
+
"labels": {
|
|
1606
|
+
"description": "A boolean flag indicating if labels should be included as part of the axis.\n\n__Default value:__ `true`.",
|
|
1607
|
+
"type": "boolean"
|
|
1608
|
+
},
|
|
1609
|
+
"maxExtent": {
|
|
1610
|
+
"description": "The maximum extent in pixels that axis ticks and labels should use. This determines a maximum offset value for axis titles.\n\n__Default value:__ `undefined`.",
|
|
1611
|
+
"type": "number"
|
|
1612
|
+
},
|
|
1613
|
+
"minExtent": {
|
|
1614
|
+
"description": "The minimum extent in pixels that axis ticks and labels should use. This determines a minimum offset value for axis titles.\n\n__Default value:__ `30` for y-axis; `undefined` for x-axis.",
|
|
1615
|
+
"type": "number"
|
|
1616
|
+
},
|
|
1617
|
+
"offset": {
|
|
1618
|
+
"description": "The orthogonal offset in pixels by which to displace the axis from its position along the edge of the chart.",
|
|
1619
|
+
"type": "number"
|
|
1620
|
+
},
|
|
1621
|
+
"orient": {
|
|
1622
|
+
"$ref": "#/definitions/AxisOrient",
|
|
1623
|
+
"description": "The orientation of the axis. One of `\"top\"`, `\"bottom\"`, `\"left\"` or `\"right\"`. The orientation can be used to further specialize the axis type (e.g., a y axis oriented for the right edge of the chart).\n\n__Default value:__ `\"bottom\"` for x-axes and `\"left\"` for y-axes."
|
|
1624
|
+
},
|
|
1625
|
+
"tickCap": {
|
|
1626
|
+
"description": "The stroke cap for the tick lines' ending style. One of `\"butt\"`, `\"round\"` or `\"square\"`.\n\n__Default value:__ `\"butt\"`",
|
|
1627
|
+
"enum": [
|
|
1628
|
+
"butt",
|
|
1629
|
+
"round",
|
|
1630
|
+
"square"
|
|
1631
|
+
],
|
|
1632
|
+
"type": "string"
|
|
1633
|
+
},
|
|
1634
|
+
"tickColor": {
|
|
1635
|
+
"description": "The color of the axis's tick.\n\n__Default value:__ `\"gray\"`",
|
|
1636
|
+
"type": "string"
|
|
1637
|
+
},
|
|
1638
|
+
"tickCount": {
|
|
1639
|
+
"description": "A desired number of ticks, for axes visualizing quantitative scales. The resulting number may be different so that values are \"nice\" (multiples of `2`, `5`, `10`) and lie within the underlying scale's range.",
|
|
1640
|
+
"minimum": 0,
|
|
1641
|
+
"type": "number"
|
|
1642
|
+
},
|
|
1643
|
+
"tickDash": {
|
|
1644
|
+
"description": "An array of alternating [stroke, space] lengths for dashed tick mark lines.",
|
|
1645
|
+
"items": {
|
|
1646
|
+
"type": "number"
|
|
1647
|
+
},
|
|
1648
|
+
"type": "array"
|
|
1649
|
+
},
|
|
1650
|
+
"tickDashOffset": {
|
|
1651
|
+
"description": "The pixel offset at which to start drawing with the tick mark dash array.",
|
|
1652
|
+
"type": "number"
|
|
1653
|
+
},
|
|
1654
|
+
"tickMinStep": {
|
|
1655
|
+
"description": "The minimum desired step between axis ticks, in terms of scale domain values. For example, a value of `1` indicates that ticks should not be less than 1 unit apart. If `tickMinStep` is specified, the `tickCount` value will be adjusted, if necessary, to enforce the minimum step value.",
|
|
1656
|
+
"type": "number"
|
|
1657
|
+
},
|
|
1658
|
+
"tickSize": {
|
|
1659
|
+
"description": "The size in pixels of axis ticks.\n\n__Default value:__ `5`",
|
|
1660
|
+
"minimum": 0,
|
|
1661
|
+
"type": "number"
|
|
1662
|
+
},
|
|
1663
|
+
"tickWidth": {
|
|
1664
|
+
"description": "The width, in pixels, of ticks.\n\n__Default value:__ `1`",
|
|
1665
|
+
"minimum": 0,
|
|
1666
|
+
"type": "number"
|
|
1667
|
+
},
|
|
1668
|
+
"ticks": {
|
|
1669
|
+
"description": "Boolean value that determines whether the axis should include ticks.\n\n__Default value:__ `true`",
|
|
1670
|
+
"type": "boolean"
|
|
1671
|
+
},
|
|
1672
|
+
"title": {
|
|
1673
|
+
"description": "A title for the axis (none by default).",
|
|
1674
|
+
"type": "string"
|
|
1675
|
+
},
|
|
1676
|
+
"titleColor": {
|
|
1677
|
+
"description": "Color of the title, can be in hex color code or regular color name.",
|
|
1678
|
+
"type": "string"
|
|
1679
|
+
},
|
|
1680
|
+
"titleFont": {
|
|
1681
|
+
"description": "Font of the title. (e.g., `\"Helvetica Neue\"`).",
|
|
1682
|
+
"type": "string"
|
|
1683
|
+
},
|
|
1684
|
+
"titleFontSize": {
|
|
1685
|
+
"description": "Font size of the title.",
|
|
1686
|
+
"minimum": 0,
|
|
1687
|
+
"type": "number"
|
|
1688
|
+
},
|
|
1689
|
+
"titleFontStyle": {
|
|
1690
|
+
"description": "Font style of the title.",
|
|
1691
|
+
"type": "string"
|
|
1692
|
+
},
|
|
1693
|
+
"titleFontWeight": {
|
|
1694
|
+
"description": "Font weight of the title. This can be either a string (e.g `\"bold\"`, `\"normal\"`) or a number (`100`, `200`, `300`, ..., `900` where `\"normal\"` = `400` and `\"bold\"` = `700`).",
|
|
1695
|
+
"type": "string"
|
|
1696
|
+
},
|
|
1697
|
+
"titleOpacity": {
|
|
1698
|
+
"description": "Opacity of the axis title.",
|
|
1699
|
+
"type": "number"
|
|
1700
|
+
},
|
|
1701
|
+
"titlePadding": {
|
|
1702
|
+
"description": "The padding, in pixels, between title and axis.",
|
|
1703
|
+
"type": "number"
|
|
1704
|
+
},
|
|
1705
|
+
"values": {
|
|
1706
|
+
"description": "Explicitly set the visible axis tick and label values.",
|
|
1707
|
+
"items": {},
|
|
1708
|
+
"type": "array"
|
|
1709
|
+
}
|
|
1710
|
+
},
|
|
1711
|
+
"type": "object"
|
|
1712
|
+
},
|
|
1398
1713
|
"GenomeConfig": {
|
|
1399
1714
|
"additionalProperties": false,
|
|
1400
1715
|
"properties": {
|
|
@@ -2854,7 +3169,7 @@
|
|
|
2854
3169
|
"axis": {
|
|
2855
3170
|
"anyOf": [
|
|
2856
3171
|
{
|
|
2857
|
-
"$ref": "#/definitions/
|
|
3172
|
+
"$ref": "#/definitions/GenomeAxis"
|
|
2858
3173
|
},
|
|
2859
3174
|
{
|
|
2860
3175
|
"type": "null"
|
|
@@ -2928,7 +3243,7 @@
|
|
|
2928
3243
|
"axis": {
|
|
2929
3244
|
"anyOf": [
|
|
2930
3245
|
{
|
|
2931
|
-
"$ref": "#/definitions/
|
|
3246
|
+
"$ref": "#/definitions/GenomeAxis"
|
|
2932
3247
|
},
|
|
2933
3248
|
{
|
|
2934
3249
|
"type": "null"
|
|
@@ -2962,7 +3277,7 @@
|
|
|
2962
3277
|
"axis": {
|
|
2963
3278
|
"anyOf": [
|
|
2964
3279
|
{
|
|
2965
|
-
"$ref": "#/definitions/
|
|
3280
|
+
"$ref": "#/definitions/GenomeAxis"
|
|
2966
3281
|
},
|
|
2967
3282
|
{
|
|
2968
3283
|
"type": "null"
|
|
@@ -4736,7 +5051,7 @@
|
|
|
4736
5051
|
"axis": {
|
|
4737
5052
|
"anyOf": [
|
|
4738
5053
|
{
|
|
4739
|
-
"$ref": "#/definitions/
|
|
5054
|
+
"$ref": "#/definitions/GenomeAxis"
|
|
4740
5055
|
},
|
|
4741
5056
|
{
|
|
4742
5057
|
"type": "null"
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
},
|
|
8
8
|
"contributors": [],
|
|
9
9
|
"license": "MIT",
|
|
10
|
-
"version": "0.
|
|
10
|
+
"version": "0.36.1",
|
|
11
11
|
"main": "dist/index.js",
|
|
12
12
|
"module": "dist/index.es.js",
|
|
13
13
|
"exports": {
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"vega-scale": "^7.1.1",
|
|
64
64
|
"vega-util": "^1.16.0"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "013b004a407a9669884d24ebad062a780c9eaaa6"
|
|
67
67
|
}
|