@vitessce/config 4.0.0-test.0 → 4.0.0-test.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.
@@ -1 +1 @@
1
- {"version":3,"file":"generate-config-spatialdata.d.ts","sourceRoot":"","sources":["../src/generate-config-spatialdata.js"],"names":[],"mappings":"AAIA;IACE,iBAiGC;CAqCF;mCAzIkC,8BAA8B"}
1
+ {"version":3,"file":"generate-config-spatialdata.d.ts","sourceRoot":"","sources":["../src/generate-config-spatialdata.js"],"names":[],"mappings":"AAKA;IACE,iBAkGC;CAqCF;mCA1IkC,8BAA8B"}
@@ -1,4 +1,5 @@
1
1
  /* eslint-disable no-unused-vars */
2
+ import { flattenOmeAttrs } from '@vitessce/zarr-utils';
2
3
  import { hconcat, vconcat } from './VitessceConfig.js';
3
4
  import { AbstractAutoConfig } from './generate-config-helpers.js';
4
5
  export class SpatialDataAutoConfig extends AbstractAutoConfig {
@@ -11,7 +12,8 @@ export class SpatialDataAutoConfig extends AbstractAutoConfig {
11
12
  });
12
13
  availableElements.forEach(({ path, attrs }) => {
13
14
  const relPath = path.substring(1);
14
- const firstCoordinateSystem = attrs
15
+ const omeAttrs = flattenOmeAttrs(attrs);
16
+ const firstCoordinateSystem = omeAttrs
15
17
  ?.multiscales?.[0]
16
18
  ?.coordinateTransformations?.[0]
17
19
  ?.output?.name;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/config",
3
- "version": "4.0.0-test.0",
3
+ "version": "4.0.0-test.1",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -18,10 +18,10 @@
18
18
  "dependencies": {
19
19
  "zarrita": "0.6.1",
20
20
  "@zarrita/storage": "0.1.4",
21
- "@vitessce/utils": "4.0.0-test.0",
22
- "@vitessce/globals": "4.0.0-test.0",
23
- "@vitessce/zarr-utils": "4.0.0-test.0",
24
- "@vitessce/constants-internal": "4.0.0-test.0"
21
+ "@vitessce/utils": "4.0.0-test.1",
22
+ "@vitessce/globals": "4.0.0-test.1",
23
+ "@vitessce/constants-internal": "4.0.0-test.1",
24
+ "@vitessce/zarr-utils": "4.0.0-test.1"
25
25
  },
26
26
  "scripts": {
27
27
  "bundle": "pnpm exec vite build -c ../../scripts/vite.config.mjs",
@@ -1,4 +1,5 @@
1
1
  /* eslint-disable no-unused-vars */
2
+ import { flattenOmeAttrs } from '@vitessce/zarr-utils';
2
3
  import { hconcat, vconcat } from './VitessceConfig.js';
3
4
  import { AbstractAutoConfig } from './generate-config-helpers.js';
4
5
 
@@ -15,7 +16,8 @@ export class SpatialDataAutoConfig extends AbstractAutoConfig {
15
16
  availableElements.forEach(({ path, attrs }) => {
16
17
  const relPath = path.substring(1);
17
18
 
18
- const firstCoordinateSystem = attrs
19
+ const omeAttrs = flattenOmeAttrs(attrs);
20
+ const firstCoordinateSystem = omeAttrs
19
21
  ?.multiscales?.[0]
20
22
  ?.coordinateTransformations?.[0]
21
23
  ?.output?.name;