@vitessce/vega 3.6.13 → 3.6.15

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.
Files changed (2) hide show
  1. package/dist/index.js +18 -1
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -50732,6 +50732,7 @@ const FileType$1 = {
50732
50732
  OBS_SPOTS_SPATIALDATA_ZARR: "obsSpots.spatialdata.zarr",
50733
50733
  FEATURE_LABELS_SPATIALDATA_ZARR: "featureLabels.spatialdata.zarr",
50734
50734
  OBS_POINTS_SPATIALDATA_ZARR: "obsPoints.spatialdata.zarr",
50735
+ OBS_EMBEDDING_SPATIALDATA_ZARR: "obsEmbedding.spatialdata.zarr",
50735
50736
  // SpatialData - zipped
50736
50737
  IMAGE_SPATIALDATA_ZARR_ZIP: "image.spatialdata.zarr.zip",
50737
50738
  LABELS_SPATIALDATA_ZARR_ZIP: "labels.spatialdata.zarr.zip",
@@ -50741,6 +50742,7 @@ const FileType$1 = {
50741
50742
  OBS_SPOTS_SPATIALDATA_ZARR_ZIP: "obsSpots.spatialdata.zarr.zip",
50742
50743
  FEATURE_LABELS_SPATIALDATA_ZARR_ZIP: "featureLabels.spatialdata.zarr.zip",
50743
50744
  OBS_POINTS_SPATIALDATA_ZARR_ZIP: "obsPoints.spatialdata.zarr.zip",
50745
+ OBS_EMBEDDING_SPATIALDATA_ZARR_ZIP: "obsEmbedding.spatialdata.zarr.zip",
50744
50746
  // MuData
50745
50747
  OBS_FEATURE_MATRIX_MUDATA_ZARR: "obsFeatureMatrix.mudata.zarr",
50746
50748
  OBS_SETS_MUDATA_ZARR: "obsSets.mudata.zarr",
@@ -50988,6 +50990,7 @@ const CoordinationType$1 = {
50988
50990
  [FileType$1.OBS_SETS_SPATIALDATA_ZARR]: DataType$1.OBS_SETS,
50989
50991
  [FileType$1.FEATURE_LABELS_SPATIALDATA_ZARR]: DataType$1.FEATURE_LABELS,
50990
50992
  [FileType$1.OBS_POINTS_SPATIALDATA_ZARR]: DataType$1.OBS_POINTS,
50993
+ [FileType$1.OBS_EMBEDDING_SPATIALDATA_ZARR]: DataType$1.OBS_EMBEDDING,
50991
50994
  // For new file types to support old file types
50992
50995
  [FileType$1.OBS_EMBEDDING_CELLS_JSON]: DataType$1.OBS_EMBEDDING,
50993
50996
  [FileType$1.OBS_LOCATIONS_CELLS_JSON]: DataType$1.OBS_LOCATIONS,
@@ -51164,6 +51167,9 @@ const CoordinationType$1 = {
51164
51167
  },
51165
51168
  [FileType$1.OBS_POINTS_SPATIALDATA_ZARR]: {
51166
51169
  zip: FileType$1.OBS_POINTS_SPATIALDATA_ZARR_ZIP
51170
+ },
51171
+ [FileType$1.OBS_EMBEDDING_SPATIALDATA_ZARR]: {
51172
+ zip: FileType$1.OBS_EMBEDDING_SPATIALDATA_ZARR_ZIP
51167
51173
  }
51168
51174
  });
51169
51175
  [
@@ -52211,6 +52217,16 @@ const obsSetsSpatialdataSchema = z.object({
52211
52217
  tablePath: z.string().optional().describe("The path to a table which contains the index for the set values."),
52212
52218
  obsSets: annDataObsSetsArr
52213
52219
  });
52220
+ annDataObsEmbedding.extend({
52221
+ // We extend anndataObsEmbedding which already has properties like `dims` and `path`.
52222
+ region: z.string().describe("The name of a region to use to filter instances (i.e., rows) in the table").optional(),
52223
+ tablePath: z.string().optional().describe("The path to a table which contains the index for the set values.")
52224
+ });
52225
+ const obsEmbeddingSpatialdataSchemaConvenience = z.union([
52226
+ annDataObsEmbedding,
52227
+ // For convenience, allow an array of items with `embeddingType` properties.
52228
+ z.array(annDataConvenienceObsEmbeddingItem)
52229
+ ]);
52214
52230
  z.object({
52215
52231
  targetX: z.number(),
52216
52232
  targetY: z.number(),
@@ -52319,9 +52335,10 @@ z.object({
52319
52335
  // TODO: obsPoints
52320
52336
  // TODO: obsLocations
52321
52337
  obsSets: obsSetsSpatialdataSchema,
52322
- // TODO: obsEmbedding
52338
+ obsEmbedding: obsEmbeddingSpatialdataSchemaConvenience,
52323
52339
  // TODO: obsLabels
52324
52340
  // TODO: featureLabels
52341
+ // TODO: allow specifying tablePath and region at the top-level here.
52325
52342
  coordinateSystem: z.string().optional().describe("The name of a coordinate transformation output used to transform all elements which lack a per-element coordinateSystem property.")
52326
52343
  }).partial();
52327
52344
  z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/vega",
3
- "version": "3.6.13",
3
+ "version": "3.6.15",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -21,9 +21,9 @@
21
21
  "vega": "^5.21.0",
22
22
  "vega-lite": "^5.1.1",
23
23
  "vega-tooltip": "^0.27.0",
24
- "@vitessce/styles": "3.6.13",
25
- "@vitessce/tooltip": "3.6.13",
26
- "@vitessce/legend": "3.6.13"
24
+ "@vitessce/styles": "3.6.15",
25
+ "@vitessce/tooltip": "3.6.15",
26
+ "@vitessce/legend": "3.6.15"
27
27
  },
28
28
  "devDependencies": {
29
29
  "react": "^18.0.0",