@genome-spy/app 0.74.0 → 0.75.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/schema.json CHANGED
@@ -5542,8 +5542,11 @@
5542
5542
  "type": "boolean"
5543
5543
  },
5544
5544
  "title": {
5545
- "description": "A title for the axis (none by default).",
5546
- "type": "string"
5545
+ "description": "A title for the axis (none by default). Set to `null` to remove it.",
5546
+ "type": [
5547
+ "string",
5548
+ "null"
5549
+ ]
5547
5550
  },
5548
5551
  "titleColor": {
5549
5552
  "description": "Color of the title, can be in hex color code or regular color name.",
@@ -5875,8 +5878,11 @@
5875
5878
  "type": "boolean"
5876
5879
  },
5877
5880
  "title": {
5878
- "description": "A title for the axis (none by default).",
5879
- "type": "string"
5881
+ "description": "A title for the axis (none by default). Set to `null` to remove it.",
5882
+ "type": [
5883
+ "string",
5884
+ "null"
5885
+ ]
5880
5886
  },
5881
5887
  "titleColor": {
5882
5888
  "description": "Color of the title, can be in hex color code or regular color name.",
@@ -7228,6 +7234,13 @@
7228
7234
  "CsvDataFormat": {
7229
7235
  "additionalProperties": false,
7230
7236
  "properties": {
7237
+ "columns": {
7238
+ "description": "Optional ordered list of field names for headerless CSV or TSV input. When provided, the first row is interpreted as data rather than a header row.",
7239
+ "items": {
7240
+ "type": "string"
7241
+ },
7242
+ "type": "array"
7243
+ },
7231
7244
  "parse": {
7232
7245
  "anyOf": [
7233
7246
  {
@@ -7344,6 +7357,13 @@
7344
7357
  "DsvDataFormat": {
7345
7358
  "additionalProperties": false,
7346
7359
  "properties": {
7360
+ "columns": {
7361
+ "description": "Optional ordered list of field names for headerless delimiter-separated input. When provided, the first row is interpreted as data rather than a header row.",
7362
+ "items": {
7363
+ "type": "string"
7364
+ },
7365
+ "type": "array"
7366
+ },
7347
7367
  "delimiter": {
7348
7368
  "description": "The delimiter between records. The delimiter must be a single character (i.e., a single 16-bit code unit); so, ASCII delimiters are fine, but emoji delimiters are not.",
7349
7369
  "maxLength": 1,
@@ -7442,10 +7462,24 @@
7442
7462
  "description": "Color of the marks – either fill or stroke color based on the `filled` property of mark definition.\n\n_Note:_ 1) For fine-grained control over both fill and stroke colors of the marks, please use the `fill` and `stroke` channels. The `fill` or `stroke` encodings have higher precedence than `color`, thus may override the `color` encoding if conflicting encodings are specified. 2) See the scale documentation for more information about customizing [color scheme](https://vega.github.io/vega-lite/docs/scale.html#scheme)."
7443
7463
  },
7444
7464
  "dx": {
7445
- "$ref": "#/definitions/NumericMarkPropDef"
7465
+ "anyOf": [
7466
+ {
7467
+ "$ref": "#/definitions/NumericMarkPropDef"
7468
+ },
7469
+ {
7470
+ "$ref": "#/definitions/MarkPropExprDef"
7471
+ }
7472
+ ]
7446
7473
  },
7447
7474
  "dy": {
7448
- "$ref": "#/definitions/NumericMarkPropDef"
7475
+ "anyOf": [
7476
+ {
7477
+ "$ref": "#/definitions/NumericMarkPropDef"
7478
+ },
7479
+ {
7480
+ "$ref": "#/definitions/MarkPropExprDef"
7481
+ }
7482
+ ]
7449
7483
  },
7450
7484
  "facetIndex": {
7451
7485
  "$ref": "#/definitions/FieldDefWithoutScale",
@@ -7815,7 +7849,14 @@
7815
7849
  "description": "X coordinates of the marks.\n\nThe `value` of this channel can be a number between zero and one."
7816
7850
  },
7817
7851
  "x2": {
7818
- "$ref": "#/definitions/Position2Def",
7852
+ "anyOf": [
7853
+ {
7854
+ "$ref": "#/definitions/Position2Def"
7855
+ },
7856
+ {
7857
+ "type": "null"
7858
+ }
7859
+ ],
7819
7860
  "description": "X2 coordinates of the marks.\n\nThe `value` of this channel can be a number between zero and one."
7820
7861
  },
7821
7862
  "y": {
@@ -7823,7 +7864,14 @@
7823
7864
  "description": "Y coordinates of the marks.\n\nThe `value` of this channel can be a number between zero and one."
7824
7865
  },
7825
7866
  "y2": {
7826
- "$ref": "#/definitions/Position2Def",
7867
+ "anyOf": [
7868
+ {
7869
+ "$ref": "#/definitions/Position2Def"
7870
+ },
7871
+ {
7872
+ "type": "null"
7873
+ }
7874
+ ],
7827
7875
  "description": "Y2 coordinates of the marks.\n\nThe `value` of this channel can be a number between zero and one."
7828
7876
  }
7829
7877
  },
@@ -8825,8 +8873,11 @@
8825
8873
  "type": "boolean"
8826
8874
  },
8827
8875
  "title": {
8828
- "description": "A title for the axis (none by default).",
8829
- "type": "string"
8876
+ "description": "A title for the axis (none by default). Set to `null` to remove it.",
8877
+ "type": [
8878
+ "string",
8879
+ "null"
8880
+ ]
8830
8881
  },
8831
8882
  "titleColor": {
8832
8883
  "description": "Color of the title, can be in hex color code or regular color name.",
@@ -10256,6 +10307,55 @@
10256
10307
  }
10257
10308
  ]
10258
10309
  },
10310
+ "MarkPropExprDef": {
10311
+ "additionalProperties": false,
10312
+ "properties": {
10313
+ "band": {
10314
+ "description": "Relative position on band scale. For example, the marks will be positioned at the beginning of the band if set to `0`, and at the middle of the band if set to `0.5`.",
10315
+ "maximum": 1,
10316
+ "minimum": 0,
10317
+ "type": "number"
10318
+ },
10319
+ "domainInert": {
10320
+ "description": "Whether the field or evaluated expr should be excluded from the scale's domain. Prefer the view-level `domainInert` when an entire subtree should be excluded.\n\n**Default value:** `false`",
10321
+ "type": "boolean"
10322
+ },
10323
+ "expr": {
10324
+ "description": "An expression. Properties of the data can be accessed through the `datum` object.",
10325
+ "type": "string"
10326
+ },
10327
+ "resolutionChannel": {
10328
+ "$ref": "#/definitions/ChannelWithScale",
10329
+ "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."
10330
+ },
10331
+ "scale": {
10332
+ "anyOf": [
10333
+ {
10334
+ "$ref": "#/definitions/Scale"
10335
+ },
10336
+ {
10337
+ "type": "null"
10338
+ }
10339
+ ],
10340
+ "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."
10341
+ },
10342
+ "title": {
10343
+ "description": "A title for the field. If `null`, the title will be removed.",
10344
+ "type": [
10345
+ "string",
10346
+ "null"
10347
+ ]
10348
+ },
10349
+ "type": {
10350
+ "$ref": "#/definitions/Type"
10351
+ }
10352
+ },
10353
+ "required": [
10354
+ "expr",
10355
+ "type"
10356
+ ],
10357
+ "type": "object"
10358
+ },
10259
10359
  "MarkProps": {
10260
10360
  "anyOf": [
10261
10361
  {
@@ -13630,6 +13730,9 @@
13630
13730
  },
13631
13731
  {
13632
13732
  "$ref": "#/definitions/SelectionDomainRef"
13733
+ },
13734
+ {
13735
+ "$ref": "#/definitions/ExprRef"
13633
13736
  }
13634
13737
  ],
13635
13738
  "description": "Customized domain values.\n\nFor _quantitative_ fields, `domain` can take the form of a two-element array with minimum and maximum values. [Piecewise scales](https://vega.github.io/vega-lite/docs/scale.html#piecewise) can be created by providing a `domain` with more than two entries.\n\nFor _temporal_ fields, `domain` can be a two-element array minimum and maximum values, in the form of either timestamps or the [DateTime definition objects](https://vega.github.io/vega-lite/docs/types.html#datetime).\n\nFor _ordinal_ and _nominal_ fields, `domain` can be an array that lists valid input values."
@@ -13646,6 +13749,18 @@
13646
13749
  "description": "Sets the minimum value in the scale domain, overriding the domain property. This property is only intended for use with scales having continuous domains.",
13647
13750
  "type": "number"
13648
13751
  },
13752
+ "domainTransition": {
13753
+ "anyOf": [
13754
+ {
13755
+ "type": "boolean"
13756
+ },
13757
+ {
13758
+ "additionalProperties": {},
13759
+ "type": "object"
13760
+ }
13761
+ ],
13762
+ "description": "Controls whether domain updates are applied immediately or with a smooth transition.\n\nSet this to `false` to apply domain updates immediately. The default is `true`, except for domains defined by an `ExprRef`, which default to `false` unless overridden.\n\n__Default value:__ `true`, except `false` for ExprRef-driven domains."
13763
+ },
13649
13764
  "exponent": {
13650
13765
  "description": "The exponent of the `pow` scale.",
13651
13766
  "type": "number"
@@ -13827,6 +13942,9 @@
13827
13942
  },
13828
13943
  {
13829
13944
  "$ref": "#/definitions/SelectionDomainRef"
13945
+ },
13946
+ {
13947
+ "$ref": "#/definitions/ExprRef"
13830
13948
  }
13831
13949
  ],
13832
13950
  "description": "Customized domain values.\n\nFor _quantitative_ fields, `domain` can take the form of a two-element array with minimum and maximum values. [Piecewise scales](https://vega.github.io/vega-lite/docs/scale.html#piecewise) can be created by providing a `domain` with more than two entries.\n\nFor _temporal_ fields, `domain` can be a two-element array minimum and maximum values, in the form of either timestamps or the [DateTime definition objects](https://vega.github.io/vega-lite/docs/types.html#datetime).\n\nFor _ordinal_ and _nominal_ fields, `domain` can be an array that lists valid input values."
@@ -13843,6 +13961,18 @@
13843
13961
  "description": "Sets the minimum value in the scale domain, overriding the domain property. This property is only intended for use with scales having continuous domains.",
13844
13962
  "type": "number"
13845
13963
  },
13964
+ "domainTransition": {
13965
+ "anyOf": [
13966
+ {
13967
+ "type": "boolean"
13968
+ },
13969
+ {
13970
+ "additionalProperties": {},
13971
+ "type": "object"
13972
+ }
13973
+ ],
13974
+ "description": "Controls whether domain updates are applied immediately or with a smooth transition.\n\nSet this to `false` to apply domain updates immediately. The default is `true`, except for domains defined by an `ExprRef`, which default to `false` unless overridden.\n\n__Default value:__ `true`, except `false` for ExprRef-driven domains."
13975
+ },
13846
13976
  "exponent": {
13847
13977
  "description": "The exponent of the `pow` scale.",
13848
13978
  "type": "number"
@@ -13895,6 +14025,9 @@
13895
14025
  },
13896
14026
  {
13897
14027
  "$ref": "#/definitions/SelectionDomainRef"
14028
+ },
14029
+ {
14030
+ "$ref": "#/definitions/ExprRef"
13898
14031
  }
13899
14032
  ],
13900
14033
  "description": "Customized domain values.\n\nFor _quantitative_ fields, `domain` can take the form of a two-element array with minimum and maximum values. [Piecewise scales](https://vega.github.io/vega-lite/docs/scale.html#piecewise) can be created by providing a `domain` with more than two entries.\n\nFor _temporal_ fields, `domain` can be a two-element array minimum and maximum values, in the form of either timestamps or the [DateTime definition objects](https://vega.github.io/vega-lite/docs/types.html#datetime).\n\nFor _ordinal_ and _nominal_ fields, `domain` can be an array that lists valid input values."
@@ -13911,6 +14044,18 @@
13911
14044
  "description": "Sets the minimum value in the scale domain, overriding the domain property. This property is only intended for use with scales having continuous domains.",
13912
14045
  "type": "number"
13913
14046
  },
14047
+ "domainTransition": {
14048
+ "anyOf": [
14049
+ {
14050
+ "type": "boolean"
14051
+ },
14052
+ {
14053
+ "additionalProperties": {},
14054
+ "type": "object"
14055
+ }
14056
+ ],
14057
+ "description": "Controls whether domain updates are applied immediately or with a smooth transition.\n\nSet this to `false` to apply domain updates immediately. The default is `true`, except for domains defined by an `ExprRef`, which default to `false` unless overridden.\n\n__Default value:__ `true`, except `false` for ExprRef-driven domains."
14058
+ },
13914
14059
  "exponent": {
13915
14060
  "description": "The exponent of the `pow` scale.",
13916
14061
  "type": "number"
@@ -14104,6 +14249,9 @@
14104
14249
  },
14105
14250
  {
14106
14251
  "$ref": "#/definitions/SelectionDomainRef"
14252
+ },
14253
+ {
14254
+ "$ref": "#/definitions/ExprRef"
14107
14255
  }
14108
14256
  ],
14109
14257
  "description": "Customized domain values.\n\nFor _quantitative_ fields, `domain` can take the form of a two-element array with minimum and maximum values. [Piecewise scales](https://vega.github.io/vega-lite/docs/scale.html#piecewise) can be created by providing a `domain` with more than two entries.\n\nFor _temporal_ fields, `domain` can be a two-element array minimum and maximum values, in the form of either timestamps or the [DateTime definition objects](https://vega.github.io/vega-lite/docs/types.html#datetime).\n\nFor _ordinal_ and _nominal_ fields, `domain` can be an array that lists valid input values."
@@ -14120,6 +14268,18 @@
14120
14268
  "description": "Sets the minimum value in the scale domain, overriding the domain property. This property is only intended for use with scales having continuous domains.",
14121
14269
  "type": "number"
14122
14270
  },
14271
+ "domainTransition": {
14272
+ "anyOf": [
14273
+ {
14274
+ "type": "boolean"
14275
+ },
14276
+ {
14277
+ "additionalProperties": {},
14278
+ "type": "object"
14279
+ }
14280
+ ],
14281
+ "description": "Controls whether domain updates are applied immediately or with a smooth transition.\n\nSet this to `false` to apply domain updates immediately. The default is `true`, except for domains defined by an `ExprRef`, which default to `false` unless overridden.\n\n__Default value:__ `true`, except `false` for ExprRef-driven domains."
14282
+ },
14123
14283
  "exponent": {
14124
14284
  "description": "The exponent of the `pow` scale.",
14125
14285
  "type": "number"
@@ -14333,6 +14493,9 @@
14333
14493
  },
14334
14494
  {
14335
14495
  "$ref": "#/definitions/SelectionDomainRef"
14496
+ },
14497
+ {
14498
+ "$ref": "#/definitions/ExprRef"
14336
14499
  }
14337
14500
  ],
14338
14501
  "description": "Customized domain values.\n\nFor _quantitative_ fields, `domain` can take the form of a two-element array with minimum and maximum values. [Piecewise scales](https://vega.github.io/vega-lite/docs/scale.html#piecewise) can be created by providing a `domain` with more than two entries.\n\nFor _temporal_ fields, `domain` can be a two-element array minimum and maximum values, in the form of either timestamps or the [DateTime definition objects](https://vega.github.io/vega-lite/docs/types.html#datetime).\n\nFor _ordinal_ and _nominal_ fields, `domain` can be an array that lists valid input values."
@@ -14349,6 +14512,18 @@
14349
14512
  "description": "Sets the minimum value in the scale domain, overriding the domain property. This property is only intended for use with scales having continuous domains.",
14350
14513
  "type": "number"
14351
14514
  },
14515
+ "domainTransition": {
14516
+ "anyOf": [
14517
+ {
14518
+ "type": "boolean"
14519
+ },
14520
+ {
14521
+ "additionalProperties": {},
14522
+ "type": "object"
14523
+ }
14524
+ ],
14525
+ "description": "Controls whether domain updates are applied immediately or with a smooth transition.\n\nSet this to `false` to apply domain updates immediately. The default is `true`, except for domains defined by an `ExprRef`, which default to `false` unless overridden.\n\n__Default value:__ `true`, except `false` for ExprRef-driven domains."
14526
+ },
14352
14527
  "exponent": {
14353
14528
  "description": "The exponent of the `pow` scale.",
14354
14529
  "type": "number"
@@ -14539,6 +14714,9 @@
14539
14714
  },
14540
14715
  {
14541
14716
  "$ref": "#/definitions/SelectionDomainRef"
14717
+ },
14718
+ {
14719
+ "$ref": "#/definitions/ExprRef"
14542
14720
  }
14543
14721
  ],
14544
14722
  "description": "Customized domain values.\n\nFor _quantitative_ fields, `domain` can take the form of a two-element array with minimum and maximum values. [Piecewise scales](https://vega.github.io/vega-lite/docs/scale.html#piecewise) can be created by providing a `domain` with more than two entries.\n\nFor _temporal_ fields, `domain` can be a two-element array minimum and maximum values, in the form of either timestamps or the [DateTime definition objects](https://vega.github.io/vega-lite/docs/types.html#datetime).\n\nFor _ordinal_ and _nominal_ fields, `domain` can be an array that lists valid input values."
@@ -14555,6 +14733,18 @@
14555
14733
  "description": "Sets the minimum value in the scale domain, overriding the domain property. This property is only intended for use with scales having continuous domains.",
14556
14734
  "type": "number"
14557
14735
  },
14736
+ "domainTransition": {
14737
+ "anyOf": [
14738
+ {
14739
+ "type": "boolean"
14740
+ },
14741
+ {
14742
+ "additionalProperties": {},
14743
+ "type": "object"
14744
+ }
14745
+ ],
14746
+ "description": "Controls whether domain updates are applied immediately or with a smooth transition.\n\nSet this to `false` to apply domain updates immediately. The default is `true`, except for domains defined by an `ExprRef`, which default to `false` unless overridden.\n\n__Default value:__ `true`, except `false` for ExprRef-driven domains."
14747
+ },
14558
14748
  "exponent": {
14559
14749
  "description": "The exponent of the `pow` scale.",
14560
14750
  "type": "number"
@@ -14758,6 +14948,9 @@
14758
14948
  },
14759
14949
  {
14760
14950
  "$ref": "#/definitions/SelectionDomainRef"
14951
+ },
14952
+ {
14953
+ "$ref": "#/definitions/ExprRef"
14761
14954
  }
14762
14955
  ],
14763
14956
  "description": "Customized domain values.\n\nFor _quantitative_ fields, `domain` can take the form of a two-element array with minimum and maximum values. [Piecewise scales](https://vega.github.io/vega-lite/docs/scale.html#piecewise) can be created by providing a `domain` with more than two entries.\n\nFor _temporal_ fields, `domain` can be a two-element array minimum and maximum values, in the form of either timestamps or the [DateTime definition objects](https://vega.github.io/vega-lite/docs/types.html#datetime).\n\nFor _ordinal_ and _nominal_ fields, `domain` can be an array that lists valid input values."
@@ -14774,6 +14967,18 @@
14774
14967
  "description": "Sets the minimum value in the scale domain, overriding the domain property. This property is only intended for use with scales having continuous domains.",
14775
14968
  "type": "number"
14776
14969
  },
14970
+ "domainTransition": {
14971
+ "anyOf": [
14972
+ {
14973
+ "type": "boolean"
14974
+ },
14975
+ {
14976
+ "additionalProperties": {},
14977
+ "type": "object"
14978
+ }
14979
+ ],
14980
+ "description": "Controls whether domain updates are applied immediately or with a smooth transition.\n\nSet this to `false` to apply domain updates immediately. The default is `true`, except for domains defined by an `ExprRef`, which default to `false` unless overridden.\n\n__Default value:__ `true`, except `false` for ExprRef-driven domains."
14981
+ },
14777
14982
  "exponent": {
14778
14983
  "description": "The exponent of the `pow` scale.",
14779
14984
  "type": "number"
@@ -16895,8 +17100,11 @@
16895
17100
  "type": "boolean"
16896
17101
  },
16897
17102
  "title": {
16898
- "description": "A title for the axis (none by default).",
16899
- "type": "string"
17103
+ "description": "A title for the axis (none by default). Set to `null` to remove it.",
17104
+ "type": [
17105
+ "string",
17106
+ "null"
17107
+ ]
16900
17108
  },
16901
17109
  "titleColor": {
16902
17110
  "description": "Color of the title, can be in hex color code or regular color name.",
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "contributors": [],
9
9
  "license": "MIT",
10
10
  "homepage": "https://genomespy.app/",
11
- "version": "0.74.0",
11
+ "version": "0.75.0",
12
12
  "main": "dist/index.js",
13
13
  "module": "dist/index.es.js",
14
14
  "type": "module",
@@ -48,7 +48,7 @@
48
48
  "@fortawesome/fontawesome-free": "^6.4.2",
49
49
  "@fortawesome/fontawesome-svg-core": "^6.4.2",
50
50
  "@fortawesome/free-solid-svg-icons": "^6.4.2",
51
- "@genome-spy/core": "^0.74.0",
51
+ "@genome-spy/core": "^0.75.0",
52
52
  "@reduxjs/toolkit": "^2.11.0",
53
53
  "d3-color": "^3.1.0",
54
54
  "idb": "^7.1.1",
@@ -59,5 +59,5 @@
59
59
  "redux-undo": "^1.0.1",
60
60
  "zarrita": "^0.6.1"
61
61
  },
62
- "gitHead": "7648d8c8670e288486f20bd7fe73509c4844cd83"
62
+ "gitHead": "c641f51070e075b989f29c8b9c6ad1879ce77a6f"
63
63
  }