@vitessce/zarr 3.5.0 → 3.5.2

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,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
2
- import { B as BaseDecoder } from "./index-a1019708.js";
2
+ import { B as BaseDecoder } from "./index-315714b8.js";
3
3
  import "@vitessce/vit-s";
4
4
  import "react";
5
5
  class DeflateDecoder extends BaseDecoder {
@@ -139228,16 +139228,16 @@ function addDecoder(cases, importFn) {
139228
139228
  }
139229
139229
  cases.forEach((c) => registry$1.set(c, importFn));
139230
139230
  }
139231
- addDecoder([void 0, 1], () => import("./raw-f9274a13.js").then((m) => m.default));
139232
- addDecoder(5, () => import("./lzw-40048bd4.js").then((m) => m.default));
139231
+ addDecoder([void 0, 1], () => import("./raw-155ab7ca.js").then((m) => m.default));
139232
+ addDecoder(5, () => import("./lzw-10e7c9ff.js").then((m) => m.default));
139233
139233
  addDecoder(6, () => {
139234
139234
  throw new Error("old style JPEG compression is not supported.");
139235
139235
  });
139236
- addDecoder(7, () => import("./jpeg-54659e84.js").then((m) => m.default));
139237
- addDecoder([8, 32946], () => import("./deflate-e0025ccc.js").then((m) => m.default));
139238
- addDecoder(32773, () => import("./packbits-bf37d3f7.js").then((m) => m.default));
139239
- addDecoder(34887, () => import("./lerc-4e84f820.js").then((m) => m.default));
139240
- addDecoder(50001, () => import("./webimage-88b1773f.js").then((m) => m.default));
139236
+ addDecoder(7, () => import("./jpeg-2118e67e.js").then((m) => m.default));
139237
+ addDecoder([8, 32946], () => import("./deflate-d6c44024.js").then((m) => m.default));
139238
+ addDecoder(32773, () => import("./packbits-166dac1c.js").then((m) => m.default));
139239
+ addDecoder(34887, () => import("./lerc-48cfdf2b.js").then((m) => m.default));
139240
+ addDecoder(50001, () => import("./webimage-f1ecb720.js").then((m) => m.default));
139241
139241
  function decodeRowAcc(row, stride) {
139242
139242
  let length2 = row.length - stride;
139243
139243
  let offset = 0;
@@ -165149,6 +165149,17 @@ class ImageWrapper {
165149
165149
  }
165150
165150
  return [];
165151
165151
  }
165152
+ getChannelIndex(channelSpecifier) {
165153
+ if (typeof channelSpecifier === "number") {
165154
+ return channelSpecifier;
165155
+ }
165156
+ const channelNames = this.getChannelNames();
165157
+ const channelIndex = channelNames.indexOf(channelSpecifier);
165158
+ if (channelIndex === -1) {
165159
+ console.error(`Channel ${channelSpecifier} not found in image.`);
165160
+ }
165161
+ return channelIndex;
165162
+ }
165152
165163
  // TODO: support passing a custom color palette array.
165153
165164
  getChannelObjects() {
165154
165165
  if ("image-label" in this.vivLoader.metadata) {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A, F, G, b, M, c, k, O, j, f, e, h, i, d, n, m, l, o, p, r, q, a, S, Z } from "./index-a1019708.js";
1
+ import { A, F, G, b, M, c, k, O, j, f, e, h, i, d, n, m, l, o, p, r, q, a, S, Z } from "./index-315714b8.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-a1019708.js";
1
+ import { B as BaseDecoder } from "./index-315714b8.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  const dctZigZag = new Int32Array([
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
2
- import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-a1019708.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-315714b8.js";
3
3
  import "@vitessce/vit-s";
4
4
  import "react";
5
5
  const LercParameters = {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-a1019708.js";
1
+ import { B as BaseDecoder } from "./index-315714b8.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  const MIN_BITS = 9;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-a1019708.js";
1
+ import { B as BaseDecoder } from "./index-315714b8.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  class PackbitsDecoder extends BaseDecoder {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-a1019708.js";
1
+ import { B as BaseDecoder } from "./index-315714b8.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  class RawDecoder extends BaseDecoder {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-a1019708.js";
1
+ import { B as BaseDecoder } from "./index-315714b8.js";
2
2
  import "@vitessce/vit-s";
3
3
  import "react";
4
4
  class WebImageDecoder extends BaseDecoder {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/zarr",
3
- "version": "3.5.0",
3
+ "version": "3.5.2",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -22,21 +22,21 @@
22
22
  "apache-arrow": "^17.0.0",
23
23
  "parquet-wasm": "^0.6.1",
24
24
  "ol": "^10.2.1",
25
- "@vitessce/constants-internal": "3.5.0",
26
- "@vitessce/gl": "3.5.0",
27
- "@vitessce/sets-utils": "3.5.0",
28
- "@vitessce/spatial-utils": "3.5.0",
29
- "@vitessce/image-utils": "3.5.0",
30
- "@vitessce/utils": "3.5.0",
31
- "@vitessce/vit-s": "3.5.0",
32
- "@vitessce/zarr-utils": "3.5.0",
33
- "@vitessce/config": "3.5.0"
25
+ "@vitessce/constants-internal": "3.5.2",
26
+ "@vitessce/gl": "3.5.2",
27
+ "@vitessce/sets-utils": "3.5.2",
28
+ "@vitessce/spatial-utils": "3.5.2",
29
+ "@vitessce/image-utils": "3.5.2",
30
+ "@vitessce/utils": "3.5.2",
31
+ "@vitessce/vit-s": "3.5.2",
32
+ "@vitessce/zarr-utils": "3.5.2",
33
+ "@vitessce/config": "3.5.2"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@zarrita/core": "0.1.0-next.14",
37
37
  "@zarrita/storage": "0.1.0-next.6",
38
38
  "@zarrita/typedarray": "0.1.0-next.3",
39
- "@vitessce/types": "3.5.0"
39
+ "@vitessce/types": "3.5.2"
40
40
  },
41
41
  "scripts": {
42
42
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",