@vitessce/heatmap 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-CQqLh6YN.js";
2
+ import { B as BaseDecoder } from "./index-C1af7JPH.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -137800,22 +137800,22 @@ function addDecoder(cases, importFn) {
137800
137800
  }
137801
137801
  cases.forEach((c) => registry$1.set(c, importFn));
137802
137802
  }
137803
- addDecoder([void 0, 1], () => import("./raw-C0bEplTc.js").then((m) => m.default));
137804
- addDecoder(5, () => import("./lzw-nzGB6S9Q.js").then((m) => m.default));
137803
+ addDecoder([void 0, 1], () => import("./raw-tr07gm2Y.js").then((m) => m.default));
137804
+ addDecoder(5, () => import("./lzw-CvkIL6nh.js").then((m) => m.default));
137805
137805
  addDecoder(6, () => {
137806
137806
  throw new Error("old style JPEG compression is not supported.");
137807
137807
  });
137808
- addDecoder(7, () => import("./jpeg-BBLO8haQ.js").then((m) => m.default));
137809
- addDecoder([8, 32946], () => import("./deflate-1R3PbcR0.js").then((m) => m.default));
137810
- addDecoder(32773, () => import("./packbits-C5L_RQ-X.js").then((m) => m.default));
137808
+ addDecoder(7, () => import("./jpeg-CpmVJ42X.js").then((m) => m.default));
137809
+ addDecoder([8, 32946], () => import("./deflate-BPUN1lvi.js").then((m) => m.default));
137810
+ addDecoder(32773, () => import("./packbits-B-NeN4CG.js").then((m) => m.default));
137811
137811
  addDecoder(
137812
137812
  34887,
137813
- () => import("./lerc-DZxUfL95.js").then(async (m) => {
137813
+ () => import("./lerc-CPHfI-f2.js").then(async (m) => {
137814
137814
  await m.zstd.init();
137815
137815
  return m;
137816
137816
  }).then((m) => m.default)
137817
137817
  );
137818
- addDecoder(50001, () => import("./webimage-Je0CS-SA.js").then((m) => m.default));
137818
+ addDecoder(50001, () => import("./webimage-D-qAx2Yj.js").then((m) => m.default));
137819
137819
  function decodeRowAcc(row, stride) {
137820
137820
  let length2 = row.length - stride;
137821
137821
  let offset2 = 0;
@@ -147801,10 +147801,10 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
147801
147801
  channelIsSetColorMode.forEach((isSetColorMode, channelIndex) => {
147802
147802
  var _a3, _b2, _c, _d;
147803
147803
  if (isSetColorMode) {
147804
- totalColorsLength += (((_b2 = (_a3 = setColorValues[channelIndex]) == null ? void 0 : _a3.setColors) == null ? void 0 : _b2.length) || 0) * 3;
147804
+ totalColorsLength += (((_b2 = (_a3 = setColorValues[channelIndex]) == null ? void 0 : _a3.setColors) == null ? void 0 : _b2.length) ?? 0) * 3;
147805
147805
  totalValuesLength += ((_c = setColorValues[channelIndex]) == null ? void 0 : _c.obsIndex) ? max(setColorValues[channelIndex].obsIndex.map((d) => parseInt(d))) : 0;
147806
147806
  } else {
147807
- totalValuesLength += multiMatrixObsIndex[channelIndex] ? max(multiMatrixObsIndex[channelIndex].map((d) => parseInt(d))) : ((_d = multiFeatureValues[channelIndex]) == null ? void 0 : _d.length) || 0;
147807
+ totalValuesLength += multiMatrixObsIndex[channelIndex] ? max(multiMatrixObsIndex[channelIndex].map((d) => parseInt(d))) : ((_d = multiFeatureValues[channelIndex]) == null ? void 0 : _d.length) ?? 0;
147808
147808
  }
147809
147809
  });
147810
147810
  const valueTexHeight = Math.max(2, Math.ceil(totalValuesLength / texSize));
@@ -147825,7 +147825,7 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
147825
147825
  const matrixObsIndex = multiMatrixObsIndex[channelIndex];
147826
147826
  const bitmaskValueIsIndex = matrixObsIndex === null;
147827
147827
  if (isSetColorMode) {
147828
- const { setColorIndices, setColors, obsIndex } = setColorValues[channelIndex] || {};
147828
+ const { setColorIndices, setColors, obsIndex } = setColorValues[channelIndex] ?? {};
147829
147829
  if (setColorIndices && setColors && obsIndex) {
147830
147830
  for (let i2 = 0; i2 < obsIndex.length; i2++) {
147831
147831
  let obsId = String(i2 + 1);
@@ -147849,7 +147849,7 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
147849
147849
  indexOffset += (obsIndex == null ? void 0 : obsIndex.length) || 0;
147850
147850
  colorOffset += (setColors == null ? void 0 : setColors.length) || 0;
147851
147851
  } else {
147852
- const featureArr = multiFeatureValues[channelIndex];
147852
+ const featureArr = multiFeatureValues[channelIndex] ?? [];
147853
147853
  const normalizedFeatureArr = normalize(featureArr);
147854
147854
  if (!bitmaskValueIsIndex && matrixObsIndex) {
147855
147855
  for (let i2 = 0; i2 < matrixObsIndex.length; i2++) {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a, H } from "./index-CQqLh6YN.js";
1
+ import { a, H } from "./index-C1af7JPH.js";
2
2
  export {
3
3
  a as Heatmap,
4
4
  H as HeatmapSubscriber
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-CQqLh6YN.js";
1
+ import { B as BaseDecoder } from "./index-C1af7JPH.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-CQqLh6YN.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-C1af7JPH.js";
3
3
  const LercParameters = {
4
4
  AddCompression: 1
5
5
  };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-CQqLh6YN.js";
1
+ import { B as BaseDecoder } from "./index-C1af7JPH.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-CQqLh6YN.js";
1
+ import { B as BaseDecoder } from "./index-C1af7JPH.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-CQqLh6YN.js";
1
+ import { B as BaseDecoder } from "./index-C1af7JPH.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-CQqLh6YN.js";
1
+ import { B as BaseDecoder } from "./index-C1af7JPH.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/heatmap",
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": {
@@ -19,15 +19,15 @@
19
19
  "lodash-es": "^4.17.21",
20
20
  "uuid": "^9.0.0",
21
21
  "react-aria": "^3.28.0",
22
- "@vitessce/styles": "3.6.14",
23
- "@vitessce/constants-internal": "3.6.14",
24
- "@vitessce/gl": "3.6.14",
25
- "@vitessce/legend": "3.6.14",
26
- "@vitessce/sets-utils": "3.6.14",
27
- "@vitessce/tooltip": "3.6.14",
28
- "@vitessce/utils": "3.6.14",
29
- "@vitessce/vit-s": "3.6.14",
30
- "@vitessce/workers": "3.6.14"
22
+ "@vitessce/styles": "3.6.16",
23
+ "@vitessce/constants-internal": "3.6.16",
24
+ "@vitessce/gl": "3.6.16",
25
+ "@vitessce/legend": "3.6.16",
26
+ "@vitessce/sets-utils": "3.6.16",
27
+ "@vitessce/tooltip": "3.6.16",
28
+ "@vitessce/utils": "3.6.16",
29
+ "@vitessce/vit-s": "3.6.16",
30
+ "@vitessce/workers": "3.6.16"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@testing-library/jest-dom": "^6.6.3",