@vitessce/image-utils 3.7.0 → 3.7.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,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-SxljTded.js";
2
- import { B as BaseDecoder } from "./index-vVcGlwOW.js";
2
+ import { B as BaseDecoder } from "./index-CUn7lHtr.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -120227,22 +120227,22 @@ function addDecoder(cases, importFn) {
120227
120227
  }
120228
120228
  cases.forEach((c) => registry$1.set(c, importFn));
120229
120229
  }
120230
- addDecoder([void 0, 1], () => import("./raw-0Zj-wT7y.js").then((m) => m.default));
120231
- addDecoder(5, () => import("./lzw-CKdFEosV.js").then((m) => m.default));
120230
+ addDecoder([void 0, 1], () => import("./raw-DjalUaHd.js").then((m) => m.default));
120231
+ addDecoder(5, () => import("./lzw-DzdLw_wS.js").then((m) => m.default));
120232
120232
  addDecoder(6, () => {
120233
120233
  throw new Error("old style JPEG compression is not supported.");
120234
120234
  });
120235
- addDecoder(7, () => import("./jpeg-Cr-xD78T.js").then((m) => m.default));
120236
- addDecoder([8, 32946], () => import("./deflate-Dd1C9gct.js").then((m) => m.default));
120237
- addDecoder(32773, () => import("./packbits-dEr5HOPP.js").then((m) => m.default));
120235
+ addDecoder(7, () => import("./jpeg-BLEmAryV.js").then((m) => m.default));
120236
+ addDecoder([8, 32946], () => import("./deflate-CesW4_7U.js").then((m) => m.default));
120237
+ addDecoder(32773, () => import("./packbits-Z3s-3Em7.js").then((m) => m.default));
120238
120238
  addDecoder(
120239
120239
  34887,
120240
- () => import("./lerc-CvrT17Yp.js").then(async (m) => {
120240
+ () => import("./lerc-CzRlZhg0.js").then(async (m) => {
120241
120241
  await m.zstd.init();
120242
120242
  return m;
120243
120243
  }).then((m) => m.default)
120244
120244
  );
120245
- addDecoder(50001, () => import("./webimage-Bmag3270.js").then((m) => m.default));
120245
+ addDecoder(50001, () => import("./webimage-CxV5SI--.js").then((m) => m.default));
120246
120246
  function decodeRowAcc(row, stride) {
120247
120247
  let length2 = row.length - stride;
120248
120248
  let offset = 0;
@@ -137440,7 +137440,7 @@ const canLoadResolution = (loader, resolution) => {
137440
137440
  const { totalBytes, height, width, depthDownsampled } = getStatsForResolution(loader, resolution);
137441
137441
  const maxHeapSize = ((_a3 = window.performance) == null ? void 0 : _a3.memory) && ((_c = (_b2 = window.performance) == null ? void 0 : _b2.memory) == null ? void 0 : _c.jsHeapSizeLimit) / 2;
137442
137442
  const maxSize = maxHeapSize || 2 ** 31 - 1;
137443
- return totalBytes < maxSize && height <= 2048 && depthDownsampled <= 2048 && width <= 2048 && depthDownsampled > 1;
137443
+ return totalBytes < maxSize && height <= 2048 && width <= 2048 && depthDownsampled <= 2048;
137444
137444
  };
137445
137445
  function physicalSizeToMatrix(xSize, ySize, zSize, xUnit, yUnit, zUnit) {
137446
137446
  const hasZPhyscialSize = Boolean(zSize) && Boolean(zUnit);
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { I } from "./index-vVcGlwOW.js";
1
+ import { I } from "./index-CUn7lHtr.js";
2
2
  export {
3
3
  I as ImageWrapper
4
4
  };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-vVcGlwOW.js";
1
+ import { B as BaseDecoder } from "./index-CUn7lHtr.js";
2
2
  const dctZigZag = new Int32Array([
3
3
  0,
4
4
  1,
@@ -1,5 +1,5 @@
1
1
  import { i as inflate_1 } from "./pako.esm-SxljTded.js";
2
- import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-vVcGlwOW.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-CUn7lHtr.js";
3
3
  const LercParameters = {
4
4
  AddCompression: 1
5
5
  };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-vVcGlwOW.js";
1
+ import { B as BaseDecoder } from "./index-CUn7lHtr.js";
2
2
  const MIN_BITS = 9;
3
3
  const CLEAR_CODE = 256;
4
4
  const EOI_CODE = 257;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-vVcGlwOW.js";
1
+ import { B as BaseDecoder } from "./index-CUn7lHtr.js";
2
2
  class PackbitsDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  const dataView = new DataView(buffer);
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-vVcGlwOW.js";
1
+ import { B as BaseDecoder } from "./index-CUn7lHtr.js";
2
2
  class RawDecoder extends BaseDecoder {
3
3
  decodeBlock(buffer) {
4
4
  return buffer;
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-vVcGlwOW.js";
1
+ import { B as BaseDecoder } from "./index-CUn7lHtr.js";
2
2
  class WebImageDecoder extends BaseDecoder {
3
3
  constructor() {
4
4
  super();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/image-utils",
3
- "version": "3.7.0",
3
+ "version": "3.7.1",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -17,10 +17,10 @@
17
17
  ],
18
18
  "dependencies": {
19
19
  "@hms-dbmi/viv": "~0.16.0",
20
- "@vitessce/types": "3.7.0",
21
- "@vitessce/spatial-utils": "3.7.0",
22
- "@vitessce/utils": "3.7.0",
23
- "@vitessce/globals": "3.7.0"
20
+ "@vitessce/types": "3.7.1",
21
+ "@vitessce/spatial-utils": "3.7.1",
22
+ "@vitessce/utils": "3.7.1",
23
+ "@vitessce/globals": "3.7.1"
24
24
  },
25
25
  "devDependencies": {
26
26
  "vite": "^7.0.0",