@vitessce/ome-tiff 3.6.14 → 3.6.16

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-CvbBsZl9.js";
2
+ import { B as BaseDecoder } from "./index-Cm9YItP4.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -104772,22 +104772,22 @@ async function getDecoder(fileDirectory) {
104772
104772
  const Decoder = await importFn();
104773
104773
  return new Decoder(fileDirectory);
104774
104774
  }
104775
- addDecoder([void 0, 1], () => import("./raw-DBApv_dB.js").then((m) => m.default));
104776
- addDecoder(5, () => import("./lzw-C6XzILiL.js").then((m) => m.default));
104775
+ addDecoder([void 0, 1], () => import("./raw-BqYJ21Lo.js").then((m) => m.default));
104776
+ addDecoder(5, () => import("./lzw-DgaeJZEg.js").then((m) => m.default));
104777
104777
  addDecoder(6, () => {
104778
104778
  throw new Error("old style JPEG compression is not supported.");
104779
104779
  });
104780
- addDecoder(7, () => import("./jpeg-BOmRcIup.js").then((m) => m.default));
104781
- addDecoder([8, 32946], () => import("./deflate-CsVUJRQh.js").then((m) => m.default));
104782
- addDecoder(32773, () => import("./packbits-DPaUyK48.js").then((m) => m.default));
104780
+ addDecoder(7, () => import("./jpeg-Dp1zNV18.js").then((m) => m.default));
104781
+ addDecoder([8, 32946], () => import("./deflate-u7j5fAYD.js").then((m) => m.default));
104782
+ addDecoder(32773, () => import("./packbits-ilQhXLbG.js").then((m) => m.default));
104783
104783
  addDecoder(
104784
104784
  34887,
104785
- () => import("./lerc-D8moRaV1.js").then(async (m) => {
104785
+ () => import("./lerc-D8aoR9iq.js").then(async (m) => {
104786
104786
  await m.zstd.init();
104787
104787
  return m;
104788
104788
  }).then((m) => m.default)
104789
104789
  );
104790
- addDecoder(50001, () => import("./webimage-DIeQ7UJG.js").then((m) => m.default));
104790
+ addDecoder(50001, () => import("./webimage-C8B5E807.js").then((m) => m.default));
104791
104791
  function copyNewSize(array, width, height, samplesPerPixel = 1) {
104792
104792
  return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
104793
104793
  }
@@ -122569,10 +122569,10 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
122569
122569
  channelIsSetColorMode.forEach((isSetColorMode, channelIndex) => {
122570
122570
  var _a3, _b2, _c, _d;
122571
122571
  if (isSetColorMode) {
122572
- totalColorsLength += (((_b2 = (_a3 = setColorValues[channelIndex]) == null ? void 0 : _a3.setColors) == null ? void 0 : _b2.length) || 0) * 3;
122572
+ totalColorsLength += (((_b2 = (_a3 = setColorValues[channelIndex]) == null ? void 0 : _a3.setColors) == null ? void 0 : _b2.length) ?? 0) * 3;
122573
122573
  totalValuesLength += ((_c = setColorValues[channelIndex]) == null ? void 0 : _c.obsIndex) ? max$1(setColorValues[channelIndex].obsIndex.map((d) => parseInt(d))) : 0;
122574
122574
  } else {
122575
- totalValuesLength += multiMatrixObsIndex[channelIndex] ? max$1(multiMatrixObsIndex[channelIndex].map((d) => parseInt(d))) : ((_d = multiFeatureValues[channelIndex]) == null ? void 0 : _d.length) || 0;
122575
+ totalValuesLength += multiMatrixObsIndex[channelIndex] ? max$1(multiMatrixObsIndex[channelIndex].map((d) => parseInt(d))) : ((_d = multiFeatureValues[channelIndex]) == null ? void 0 : _d.length) ?? 0;
122576
122576
  }
122577
122577
  });
122578
122578
  const valueTexHeight = Math.max(2, Math.ceil(totalValuesLength / texSize));
@@ -122593,7 +122593,7 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
122593
122593
  const matrixObsIndex = multiMatrixObsIndex[channelIndex];
122594
122594
  const bitmaskValueIsIndex = matrixObsIndex === null;
122595
122595
  if (isSetColorMode) {
122596
- const { setColorIndices, setColors, obsIndex } = setColorValues[channelIndex] || {};
122596
+ const { setColorIndices, setColors, obsIndex } = setColorValues[channelIndex] ?? {};
122597
122597
  if (setColorIndices && setColors && obsIndex) {
122598
122598
  for (let i2 = 0; i2 < obsIndex.length; i2++) {
122599
122599
  let obsId = String(i2 + 1);
@@ -122617,7 +122617,7 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
122617
122617
  indexOffset += (obsIndex == null ? void 0 : obsIndex.length) || 0;
122618
122618
  colorOffset += (setColors == null ? void 0 : setColors.length) || 0;
122619
122619
  } else {
122620
- const featureArr = multiFeatureValues[channelIndex];
122620
+ const featureArr = multiFeatureValues[channelIndex] ?? [];
122621
122621
  const normalizedFeatureArr = normalize(featureArr);
122622
122622
  if (!bitmaskValueIsIndex && matrixObsIndex) {
122623
122623
  for (let i2 = 0; i2 < matrixObsIndex.length; i2++) {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c, b, O } from "./index-CvbBsZl9.js";
1
+ import { c, b, O } from "./index-Cm9YItP4.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-CvbBsZl9.js";
1
+ import { B as BaseDecoder } from "./index-Cm9YItP4.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-CvbBsZl9.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-Cm9YItP4.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-CvbBsZl9.js";
1
+ import { B as BaseDecoder } from "./index-Cm9YItP4.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-CvbBsZl9.js";
1
+ import { B as BaseDecoder } from "./index-Cm9YItP4.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-CvbBsZl9.js";
1
+ import { B as BaseDecoder } from "./index-Cm9YItP4.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-CvbBsZl9.js";
1
+ import { B as BaseDecoder } from "./index-Cm9YItP4.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": "3.6.14",
3
+ "version": "3.6.16",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -18,15 +18,15 @@
18
18
  "dependencies": {
19
19
  "d3-array": "^2.4.0",
20
20
  "lodash-es": "^4.17.21",
21
- "@vitessce/abstract": "3.6.14",
22
- "@vitessce/error": "3.6.14",
23
- "@vitessce/constants-internal": "3.6.14",
24
- "@vitessce/config": "3.6.14",
25
- "@vitessce/gl": "3.6.14",
26
- "@vitessce/sets-utils": "3.6.14",
27
- "@vitessce/spatial-utils": "3.6.14",
28
- "@vitessce/image-utils": "3.6.14",
29
- "@vitessce/utils": "3.6.14"
21
+ "@vitessce/abstract": "3.6.16",
22
+ "@vitessce/error": "3.6.16",
23
+ "@vitessce/constants-internal": "3.6.16",
24
+ "@vitessce/config": "3.6.16",
25
+ "@vitessce/gl": "3.6.16",
26
+ "@vitessce/sets-utils": "3.6.16",
27
+ "@vitessce/spatial-utils": "3.6.16",
28
+ "@vitessce/image-utils": "3.6.16",
29
+ "@vitessce/utils": "3.6.16"
30
30
  },
31
31
  "scripts": {
32
32
  "bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",