@vitessce/all 3.4.12 → 3.5.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.
@@ -261,8 +261,10 @@ export function expandSpatialdataZarr(fileDef: z.infer<typeof latestFileDefSchem
261
261
  }
262
262
  });
263
263
  const { options = {} } = fileDef;
264
+ const defaultCoordinateSystem = options.coordinateSystem;
264
265
  return [
265
266
  // obsFeatureMatrix
267
+ // TODO: handle multiple obsFeatureMatrix?
266
268
  ...(options.obsFeatureMatrix ? [{
267
269
  ...baseFileDef,
268
270
  fileType: FileType.OBS_FEATURE_MATRIX_SPATIALDATA_ZARR,
@@ -275,6 +277,7 @@ export function expandSpatialdataZarr(fileDef: z.infer<typeof latestFileDefSchem
275
277
  },
276
278
  }] : []),
277
279
  // obsSets
280
+ // TODO: handle multiple obsSets?
278
281
  ...(options.obsSets ? [{
279
282
  ...baseFileDef,
280
283
  fileType: FileType.OBS_SETS_SPATIALDATA_ZARR,
@@ -285,10 +288,14 @@ export function expandSpatialdataZarr(fileDef: z.infer<typeof latestFileDefSchem
285
288
  },
286
289
  }] : []),
287
290
  // obsSpots
291
+ // TODO: handle multiple obsSpots?
288
292
  ...(options.obsSpots ? [{
289
293
  ...baseFileDef,
290
294
  fileType: FileType.OBS_SPOTS_SPATIALDATA_ZARR,
291
- options: options.obsSpots,
295
+ options: {
296
+ coordinateSystem: defaultCoordinateSystem,
297
+ ...options.obsSpots,
298
+ },
292
299
  coordinationValues: {
293
300
  ...extraCoordinationValues,
294
301
  obsType: baseFileDef.coordinationValues.obsType,
@@ -296,11 +303,18 @@ export function expandSpatialdataZarr(fileDef: z.infer<typeof latestFileDefSchem
296
303
  }] : []),
297
304
  // TODO: obsPoints?
298
305
  // TODO: obsLocations?
306
+ // TODO: obsLabels
307
+ // TODO: featureLabels
308
+ // TODO: obsEmbedding
299
309
  // image
310
+ // TODO: handle multiple images
300
311
  ...(options.image ? [{
301
312
  ...baseFileDef,
302
313
  fileType: FileType.IMAGE_SPATIALDATA_ZARR,
303
- options: options.image,
314
+ options: {
315
+ coordinateSystem: defaultCoordinateSystem,
316
+ ...options.image,
317
+ },
304
318
  coordinationValues: {
305
319
  ...extraCoordinationValues,
306
320
  featureType: baseFileDef.coordinationValues.featureType,
@@ -308,10 +322,14 @@ export function expandSpatialdataZarr(fileDef: z.infer<typeof latestFileDefSchem
308
322
  },
309
323
  }] : []),
310
324
  // labels
325
+ // TODO: handle multiple labels?
311
326
  ...(options.labels ? [{
312
327
  ...baseFileDef,
313
328
  fileType: FileType.LABELS_SPATIALDATA_ZARR,
314
- options: options.labels,
329
+ options: {
330
+ coordinateSystem: defaultCoordinateSystem,
331
+ ...options.labels,
332
+ },
315
333
  coordinationValues: {
316
334
  ...extraCoordinationValues,
317
335
  obsType: baseFileDef.coordinationValues.obsType,