@vitessce/ome-tiff 4.0.2 → 4.0.4

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-DoIS_HTD.js";
2
+ import { B as BaseDecoder } from "./index-CQ7r181e.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -104765,22 +104765,22 @@ async function getDecoder(fileDirectory) {
104765
104765
  const Decoder = await importFn();
104766
104766
  return new Decoder(fileDirectory);
104767
104767
  }
104768
- addDecoder([void 0, 1], () => import("./raw-CKcSMPsO.js").then((m) => m.default));
104769
- addDecoder(5, () => import("./lzw-s7jEehlR.js").then((m) => m.default));
104768
+ addDecoder([void 0, 1], () => import("./raw-A54qchNv.js").then((m) => m.default));
104769
+ addDecoder(5, () => import("./lzw-CMAVLsj6.js").then((m) => m.default));
104770
104770
  addDecoder(6, () => {
104771
104771
  throw new Error("old style JPEG compression is not supported.");
104772
104772
  });
104773
- addDecoder(7, () => import("./jpeg-BT_LZHvf.js").then((m) => m.default));
104774
- addDecoder([8, 32946], () => import("./deflate-DTEVP_rG.js").then((m) => m.default));
104775
- addDecoder(32773, () => import("./packbits-CiI17GIG.js").then((m) => m.default));
104773
+ addDecoder(7, () => import("./jpeg-BbWvMxS7.js").then((m) => m.default));
104774
+ addDecoder([8, 32946], () => import("./deflate-BvKxW_xr.js").then((m) => m.default));
104775
+ addDecoder(32773, () => import("./packbits-Dykq6ZJu.js").then((m) => m.default));
104776
104776
  addDecoder(
104777
104777
  34887,
104778
- () => import("./lerc-DjBGL13Z.js").then(async (m) => {
104778
+ () => import("./lerc-D1s3952-.js").then(async (m) => {
104779
104779
  await m.zstd.init();
104780
104780
  return m;
104781
104781
  }).then((m) => m.default)
104782
104782
  );
104783
- addDecoder(50001, () => import("./webimage-hIYaSYhx.js").then((m) => m.default));
104783
+ addDecoder(50001, () => import("./webimage-2os33Txg.js").then((m) => m.default));
104784
104784
  function copyNewSize(array, width, height, samplesPerPixel = 1) {
104785
104785
  return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
104786
104786
  }
@@ -141814,7 +141814,26 @@ class ImageWrapper {
141814
141814
  }
141815
141815
  return true;
141816
141816
  }
141817
- getData() {
141817
+ // TODO: make stripPhysicalSizes the default behavior,
141818
+ // and remove it as a parameter, once it is no longer
141819
+ // used by spatial-accelerated and spatial-three.
141820
+ getData(stripPhysicalSizes = true) {
141821
+ if (stripPhysicalSizes) {
141822
+ const { data } = this.vivLoader;
141823
+ const newData = data.map((d) => {
141824
+ if ("meta" in d) {
141825
+ const { meta } = d;
141826
+ if (meta && "physicalSizes" in meta) {
141827
+ const newMeta = { ...meta, physicalSizes: void 0 };
141828
+ const clone2 = Object.create(Object.getPrototypeOf(d));
141829
+ Object.assign(clone2, d, { meta: newMeta });
141830
+ return clone2;
141831
+ }
141832
+ }
141833
+ return d;
141834
+ });
141835
+ return newData;
141836
+ }
141818
141837
  return this.vivLoader.data;
141819
141838
  }
141820
141839
  getModelMatrix() {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c, b, O } from "./index-DoIS_HTD.js";
1
+ import { c, b, O } from "./index-CQ7r181e.js";
2
2
  export {
3
3
  c as OmeTiffAsObsSegmentationsLoader,
4
4
  b as OmeTiffLoader,
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-DoIS_HTD.js";
1
+ import { B as BaseDecoder } from "./index-CQ7r181e.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, L as LercParameters, a as LercAddCompression } from "./index-DoIS_HTD.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-CQ7r181e.js";
3
3
  var LercDecode = { exports: {} };
4
4
  var hasRequiredLercDecode;
5
5
  function requireLercDecode() {
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-DoIS_HTD.js";
1
+ import { B as BaseDecoder } from "./index-CQ7r181e.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-DoIS_HTD.js";
1
+ import { B as BaseDecoder } from "./index-CQ7r181e.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-DoIS_HTD.js";
1
+ import { B as BaseDecoder } from "./index-CQ7r181e.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-DoIS_HTD.js";
1
+ import { B as BaseDecoder } from "./index-CQ7r181e.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/ome-tiff",
3
- "version": "4.0.2",
3
+ "version": "4.0.4",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -18,16 +18,16 @@
18
18
  "dependencies": {
19
19
  "d3-array": "^2.4.0",
20
20
  "lodash-es": "^4.17.21",
21
- "@vitessce/globals": "4.0.2",
22
- "@vitessce/abstract": "4.0.2",
23
- "@vitessce/error": "4.0.2",
24
- "@vitessce/config": "4.0.2",
25
- "@vitessce/gl": "4.0.2",
26
- "@vitessce/constants-internal": "4.0.2",
27
- "@vitessce/sets-utils": "4.0.2",
28
- "@vitessce/utils": "4.0.2",
29
- "@vitessce/image-utils": "4.0.2",
30
- "@vitessce/spatial-utils": "4.0.2"
21
+ "@vitessce/globals": "4.0.4",
22
+ "@vitessce/error": "4.0.4",
23
+ "@vitessce/gl": "4.0.4",
24
+ "@vitessce/abstract": "4.0.4",
25
+ "@vitessce/constants-internal": "4.0.4",
26
+ "@vitessce/config": "4.0.4",
27
+ "@vitessce/sets-utils": "4.0.4",
28
+ "@vitessce/spatial-utils": "4.0.4",
29
+ "@vitessce/image-utils": "4.0.4",
30
+ "@vitessce/utils": "4.0.4"
31
31
  },
32
32
  "scripts": {
33
33
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.mjs",