@vitessce/scatterplot-embedding 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-DX6lR9Aw.js";
2
+ import { B as BaseDecoder } from "./index-D8r0IhL2.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -123323,22 +123323,22 @@ function addDecoder(cases, importFn) {
123323
123323
  }
123324
123324
  cases.forEach((c2) => registry$1.set(c2, importFn));
123325
123325
  }
123326
- addDecoder([void 0, 1], () => import("./raw-5P3ZwohC.js").then((m2) => m2.default));
123327
- addDecoder(5, () => import("./lzw-C54W6l8V.js").then((m2) => m2.default));
123326
+ addDecoder([void 0, 1], () => import("./raw-Ddzhu2WQ.js").then((m2) => m2.default));
123327
+ addDecoder(5, () => import("./lzw-D-BbpGiu.js").then((m2) => m2.default));
123328
123328
  addDecoder(6, () => {
123329
123329
  throw new Error("old style JPEG compression is not supported.");
123330
123330
  });
123331
- addDecoder(7, () => import("./jpeg-CMxusqDo.js").then((m2) => m2.default));
123332
- addDecoder([8, 32946], () => import("./deflate-D0elCq7r.js").then((m2) => m2.default));
123333
- addDecoder(32773, () => import("./packbits-x7cn6KOF.js").then((m2) => m2.default));
123331
+ addDecoder(7, () => import("./jpeg-CgBOQiTD.js").then((m2) => m2.default));
123332
+ addDecoder([8, 32946], () => import("./deflate-k2pYg4c6.js").then((m2) => m2.default));
123333
+ addDecoder(32773, () => import("./packbits-Cs8NfpR6.js").then((m2) => m2.default));
123334
123334
  addDecoder(
123335
123335
  34887,
123336
- () => import("./lerc-B-TFCcX_.js").then(async (m2) => {
123336
+ () => import("./lerc-ku5SU9l7.js").then(async (m2) => {
123337
123337
  await m2.zstd.init();
123338
123338
  return m2;
123339
123339
  }).then((m2) => m2.default)
123340
123340
  );
123341
- addDecoder(50001, () => import("./webimage-DvDxXJLL.js").then((m2) => m2.default));
123341
+ addDecoder(50001, () => import("./webimage-CC8JAPvA.js").then((m2) => m2.default));
123342
123342
  function decodeRowAcc(row, stride) {
123343
123343
  let length2 = row.length - stride;
123344
123344
  let offset2 = 0;
@@ -133296,10 +133296,10 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
133296
133296
  channelIsSetColorMode.forEach((isSetColorMode, channelIndex) => {
133297
133297
  var _a3, _b2, _c, _d;
133298
133298
  if (isSetColorMode) {
133299
- totalColorsLength += (((_b2 = (_a3 = setColorValues[channelIndex]) == null ? void 0 : _a3.setColors) == null ? void 0 : _b2.length) || 0) * 3;
133299
+ totalColorsLength += (((_b2 = (_a3 = setColorValues[channelIndex]) == null ? void 0 : _a3.setColors) == null ? void 0 : _b2.length) ?? 0) * 3;
133300
133300
  totalValuesLength += ((_c = setColorValues[channelIndex]) == null ? void 0 : _c.obsIndex) ? max(setColorValues[channelIndex].obsIndex.map((d) => parseInt(d))) : 0;
133301
133301
  } else {
133302
- totalValuesLength += multiMatrixObsIndex[channelIndex] ? max(multiMatrixObsIndex[channelIndex].map((d) => parseInt(d))) : ((_d = multiFeatureValues[channelIndex]) == null ? void 0 : _d.length) || 0;
133302
+ totalValuesLength += multiMatrixObsIndex[channelIndex] ? max(multiMatrixObsIndex[channelIndex].map((d) => parseInt(d))) : ((_d = multiFeatureValues[channelIndex]) == null ? void 0 : _d.length) ?? 0;
133303
133303
  }
133304
133304
  });
133305
133305
  const valueTexHeight = Math.max(2, Math.ceil(totalValuesLength / texSize));
@@ -133320,7 +133320,7 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
133320
133320
  const matrixObsIndex = multiMatrixObsIndex[channelIndex];
133321
133321
  const bitmaskValueIsIndex = matrixObsIndex === null;
133322
133322
  if (isSetColorMode) {
133323
- const { setColorIndices, setColors, obsIndex } = setColorValues[channelIndex] || {};
133323
+ const { setColorIndices, setColors, obsIndex } = setColorValues[channelIndex] ?? {};
133324
133324
  if (setColorIndices && setColors && obsIndex) {
133325
133325
  for (let i2 = 0; i2 < obsIndex.length; i2++) {
133326
133326
  let obsId = String(i2 + 1);
@@ -133344,7 +133344,7 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
133344
133344
  indexOffset += (obsIndex == null ? void 0 : obsIndex.length) || 0;
133345
133345
  colorOffset += (setColors == null ? void 0 : setColors.length) || 0;
133346
133346
  } else {
133347
- const featureArr = multiFeatureValues[channelIndex];
133347
+ const featureArr = multiFeatureValues[channelIndex] ?? [];
133348
133348
  const normalizedFeatureArr = normalize$1(featureArr);
133349
133349
  if (!bitmaskValueIsIndex && matrixObsIndex) {
133350
133350
  for (let i2 = 0; i2 < matrixObsIndex.length; i2++) {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D, E } from "./index-DX6lR9Aw.js";
1
+ import { D, E } from "./index-D8r0IhL2.js";
2
2
  export {
3
3
  D as DualEmbeddingScatterplotSubscriber,
4
4
  E as EmbeddingScatterplotSubscriber
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-DX6lR9Aw.js";
1
+ import { B as BaseDecoder } from "./index-D8r0IhL2.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-DX6lR9Aw.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-D8r0IhL2.js";
3
3
  const LercParameters = {
4
4
  AddCompression: 1
5
5
  };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-DX6lR9Aw.js";
1
+ import { B as BaseDecoder } from "./index-D8r0IhL2.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-DX6lR9Aw.js";
1
+ import { B as BaseDecoder } from "./index-D8r0IhL2.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-DX6lR9Aw.js";
1
+ import { B as BaseDecoder } from "./index-D8r0IhL2.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-DX6lR9Aw.js";
1
+ import { B as BaseDecoder } from "./index-D8r0IhL2.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/scatterplot-embedding",
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": {
@@ -20,13 +20,13 @@
20
20
  "lodash-es": "^4.17.21",
21
21
  "react-aria": "^3.28.0",
22
22
  "@turf/circle": "^7.2.0",
23
- "@vitessce/styles": "3.6.14",
24
- "@vitessce/constants-internal": "3.6.14",
25
- "@vitessce/legend": "3.6.14",
26
- "@vitessce/scatterplot": "3.6.14",
27
- "@vitessce/sets-utils": "3.6.14",
28
- "@vitessce/utils": "3.6.14",
29
- "@vitessce/vit-s": "3.6.14"
23
+ "@vitessce/styles": "3.6.16",
24
+ "@vitessce/constants-internal": "3.6.16",
25
+ "@vitessce/legend": "3.6.16",
26
+ "@vitessce/scatterplot": "3.6.16",
27
+ "@vitessce/sets-utils": "3.6.16",
28
+ "@vitessce/utils": "3.6.16",
29
+ "@vitessce/vit-s": "3.6.16"
30
30
  },
31
31
  "devDependencies": {
32
32
  "react": "^18.0.0",