@genome-spy/core 0.26.0 → 0.27.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
@@ -946,6 +946,19 @@
946
946
  },
947
947
  "type": "object"
948
948
  },
949
+ "ExprDef": {
950
+ "additionalProperties": false,
951
+ "properties": {
952
+ "expr": {
953
+ "description": "An expression. Properties of the data can be accessed through the `datum` object.",
954
+ "type": "string"
955
+ }
956
+ },
957
+ "required": [
958
+ "expr"
959
+ ],
960
+ "type": "object"
961
+ },
949
962
  "Field": {
950
963
  "description": "The name of the field or a JavaScript expression for accessing nested properties. Dots and brackets in the field name must be escaped.",
951
964
  "type": "string"
@@ -4570,6 +4583,9 @@
4570
4583
  },
4571
4584
  {
4572
4585
  "$ref": "#/definitions/StringDatumDef"
4586
+ },
4587
+ {
4588
+ "$ref": "#/definitions/ExprDef"
4573
4589
  }
4574
4590
  ]
4575
4591
  },
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "contributors": [],
9
9
  "license": "BSD-2-Clause",
10
- "version": "0.26.0",
10
+ "version": "0.27.0",
11
11
  "main": "dist/index.js",
12
12
  "module": "src/index.js",
13
13
  "exports": {
@@ -46,12 +46,12 @@
46
46
  "d3-format": "^3.0.1",
47
47
  "flatqueue": "^2.0.3",
48
48
  "internmap": "^2.0.3",
49
- "lit-html": "^2.0.2",
49
+ "lit-html": "^2.4.0",
50
50
  "twgl.js": "^4.19.1",
51
51
  "vega-expression": "^5.0.0",
52
52
  "vega-loader": "^4.4.0",
53
53
  "vega-scale": "^7.1.1",
54
54
  "vega-util": "^1.16.0"
55
55
  },
56
- "gitHead": "586a200b57b9d9ef12b2d28d7a843b2c7cc1b33a"
56
+ "gitHead": "9d6089ac89945c1d64c8bd29a0b12b83e6a59c69"
57
57
  }
@@ -293,7 +293,10 @@ export interface StringFieldDef<F extends Field>
293
293
  extends FieldDefWithoutScale<F>,
294
294
  FormatMixins {}
295
295
 
296
- export type TextDef<F extends Field> = StringFieldDef<F> | StringDatumDef;
296
+ export type TextDef<F extends Field> =
297
+ | StringFieldDef<F>
298
+ | StringDatumDef
299
+ | ExprDef;
297
300
 
298
301
  export type ChannelDef<F extends Field = string> =
299
302
  Encoding<F>[keyof Encoding<F>];