@vitessce/layer-controller 3.6.13 → 3.6.15

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--tKOvOHS.js";
2
+ import { B as BaseDecoder } from "./index-DtuIAdKG.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -128043,22 +128043,22 @@ function addDecoder(cases, importFn) {
128043
128043
  }
128044
128044
  cases.forEach((c) => registry$1.set(c, importFn));
128045
128045
  }
128046
- addDecoder([void 0, 1], () => import("./raw-C_QOClSc.js").then((m) => m.default));
128047
- addDecoder(5, () => import("./lzw-Dz0GpPBw.js").then((m) => m.default));
128046
+ addDecoder([void 0, 1], () => import("./raw-CYFJJ3fA.js").then((m) => m.default));
128047
+ addDecoder(5, () => import("./lzw-qy2qAJDy.js").then((m) => m.default));
128048
128048
  addDecoder(6, () => {
128049
128049
  throw new Error("old style JPEG compression is not supported.");
128050
128050
  });
128051
- addDecoder(7, () => import("./jpeg-Dxs20WzD.js").then((m) => m.default));
128052
- addDecoder([8, 32946], () => import("./deflate-CfD7XI1J.js").then((m) => m.default));
128053
- addDecoder(32773, () => import("./packbits-C898JJ8R.js").then((m) => m.default));
128051
+ addDecoder(7, () => import("./jpeg-ClELP1Y7.js").then((m) => m.default));
128052
+ addDecoder([8, 32946], () => import("./deflate-C1xwcx5I.js").then((m) => m.default));
128053
+ addDecoder(32773, () => import("./packbits-u0sf9Ydw.js").then((m) => m.default));
128054
128054
  addDecoder(
128055
128055
  34887,
128056
- () => import("./lerc-DOOYL9jd.js").then(async (m) => {
128056
+ () => import("./lerc-CFE3Ze_z.js").then(async (m) => {
128057
128057
  await m.zstd.init();
128058
128058
  return m;
128059
128059
  }).then((m) => m.default)
128060
128060
  );
128061
- addDecoder(50001, () => import("./webimage-DoxLrOMR.js").then((m) => m.default));
128061
+ addDecoder(50001, () => import("./webimage-CQEHV8_N.js").then((m) => m.default));
128062
128062
  function decodeRowAcc(row, stride) {
128063
128063
  let length2 = row.length - stride;
128064
128064
  let offset2 = 0;
@@ -141713,10 +141713,10 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
141713
141713
  channelIsSetColorMode.forEach((isSetColorMode, channelIndex) => {
141714
141714
  var _a3, _b2, _c, _d;
141715
141715
  if (isSetColorMode) {
141716
- totalColorsLength += (((_b2 = (_a3 = setColorValues[channelIndex]) == null ? void 0 : _a3.setColors) == null ? void 0 : _b2.length) || 0) * 3;
141716
+ totalColorsLength += (((_b2 = (_a3 = setColorValues[channelIndex]) == null ? void 0 : _a3.setColors) == null ? void 0 : _b2.length) ?? 0) * 3;
141717
141717
  totalValuesLength += ((_c = setColorValues[channelIndex]) == null ? void 0 : _c.obsIndex) ? max(setColorValues[channelIndex].obsIndex.map((d) => parseInt(d))) : 0;
141718
141718
  } else {
141719
- totalValuesLength += multiMatrixObsIndex[channelIndex] ? max(multiMatrixObsIndex[channelIndex].map((d) => parseInt(d))) : ((_d = multiFeatureValues[channelIndex]) == null ? void 0 : _d.length) || 0;
141719
+ totalValuesLength += multiMatrixObsIndex[channelIndex] ? max(multiMatrixObsIndex[channelIndex].map((d) => parseInt(d))) : ((_d = multiFeatureValues[channelIndex]) == null ? void 0 : _d.length) ?? 0;
141720
141720
  }
141721
141721
  });
141722
141722
  const valueTexHeight = Math.max(2, Math.ceil(totalValuesLength / texSize));
@@ -141737,7 +141737,7 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
141737
141737
  const matrixObsIndex = multiMatrixObsIndex[channelIndex];
141738
141738
  const bitmaskValueIsIndex = matrixObsIndex === null;
141739
141739
  if (isSetColorMode) {
141740
- const { setColorIndices, setColors, obsIndex } = setColorValues[channelIndex] || {};
141740
+ const { setColorIndices, setColors, obsIndex } = setColorValues[channelIndex] ?? {};
141741
141741
  if (setColorIndices && setColors && obsIndex) {
141742
141742
  for (let i2 = 0; i2 < obsIndex.length; i2++) {
141743
141743
  let obsId = String(i2 + 1);
@@ -141761,7 +141761,7 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
141761
141761
  indexOffset += (obsIndex == null ? void 0 : obsIndex.length) || 0;
141762
141762
  colorOffset += (setColors == null ? void 0 : setColors.length) || 0;
141763
141763
  } else {
141764
- const featureArr = multiFeatureValues[channelIndex];
141764
+ const featureArr = multiFeatureValues[channelIndex] ?? [];
141765
141765
  const normalizedFeatureArr = normalize(featureArr);
141766
141766
  if (!bitmaskValueIsIndex && matrixObsIndex) {
141767
141767
  for (let i2 = 0; i2 < matrixObsIndex.length; i2++) {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a, L, V, d, c, e, f, b, h, u } from "./index--tKOvOHS.js";
1
+ import { a, L, V, d, c, e, f, b, h, u } from "./index-DtuIAdKG.js";
2
2
  export {
3
3
  a as LayerController,
4
4
  L as LayerControllerSubscriber,
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index--tKOvOHS.js";
1
+ import { B as BaseDecoder } from "./index-DtuIAdKG.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--tKOvOHS.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-DtuIAdKG.js";
3
3
  const LercParameters = {
4
4
  AddCompression: 1
5
5
  };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index--tKOvOHS.js";
1
+ import { B as BaseDecoder } from "./index-DtuIAdKG.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--tKOvOHS.js";
1
+ import { B as BaseDecoder } from "./index-DtuIAdKG.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--tKOvOHS.js";
1
+ import { B as BaseDecoder } from "./index-DtuIAdKG.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--tKOvOHS.js";
1
+ import { B as BaseDecoder } from "./index-DtuIAdKG.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/layer-controller",
3
- "version": "3.6.13",
3
+ "version": "3.6.15",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -19,12 +19,12 @@
19
19
  "lodash-es": "^4.17.21",
20
20
  "math.gl": "^3.5.6",
21
21
  "react-aria": "^3.28.0",
22
- "@vitessce/styles": "3.6.13",
23
- "@vitessce/constants-internal": "3.6.13",
24
- "@vitessce/gl": "3.6.13",
25
- "@vitessce/spatial-utils": "3.6.13",
26
- "@vitessce/utils": "3.6.13",
27
- "@vitessce/vit-s": "3.6.13"
22
+ "@vitessce/styles": "3.6.15",
23
+ "@vitessce/constants-internal": "3.6.15",
24
+ "@vitessce/gl": "3.6.15",
25
+ "@vitessce/spatial-utils": "3.6.15",
26
+ "@vitessce/utils": "3.6.15",
27
+ "@vitessce/vit-s": "3.6.15"
28
28
  },
29
29
  "devDependencies": {
30
30
  "react": "^18.0.0",