@aics/vole-core 3.15.0 → 3.15.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.
@@ -6,7 +6,8 @@ export function getSourceChannelNames(src) {
6
6
  label
7
7
  }, idx) => label ?? `Channel ${idx + src.channelOffset}`);
8
8
  }
9
- const length = src.scaleLevels[0].shape[src.axesTCZYX[1]];
9
+ const cIdx = src.axesTCZYX[1];
10
+ const length = cIdx < 0 ? 1 : src.scaleLevels[0].shape[cIdx];
10
11
  return Array.from({
11
12
  length
12
13
  }, (_, idx) => `Channel ${idx + src.channelOffset}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aics/vole-core",
3
- "version": "3.15.0",
3
+ "version": "3.15.1",
4
4
  "description": "volume renderer for 3d, 4d, or 5d imaging data with OME-Zarr support",
5
5
  "main": "es/index.js",
6
6
  "type": "module",