@vitessce/scatterplot-gating 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-CrsPy-n7.js";
2
+ import { B as BaseDecoder } from "./index-DNmU76cL.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -123124,22 +123124,22 @@ function addDecoder(cases, importFn) {
123124
123124
  }
123125
123125
  cases.forEach((c2) => registry$1.set(c2, importFn));
123126
123126
  }
123127
- addDecoder([void 0, 1], () => import("./raw-CDIL_Wat.js").then((m2) => m2.default));
123128
- addDecoder(5, () => import("./lzw-D9RpJMTD.js").then((m2) => m2.default));
123127
+ addDecoder([void 0, 1], () => import("./raw-BVRj2spn.js").then((m2) => m2.default));
123128
+ addDecoder(5, () => import("./lzw-DurWd6oh.js").then((m2) => m2.default));
123129
123129
  addDecoder(6, () => {
123130
123130
  throw new Error("old style JPEG compression is not supported.");
123131
123131
  });
123132
- addDecoder(7, () => import("./jpeg-Berjq5Ym.js").then((m2) => m2.default));
123133
- addDecoder([8, 32946], () => import("./deflate-B57BId99.js").then((m2) => m2.default));
123134
- addDecoder(32773, () => import("./packbits-CTMF4fVZ.js").then((m2) => m2.default));
123132
+ addDecoder(7, () => import("./jpeg-DVzsG58A.js").then((m2) => m2.default));
123133
+ addDecoder([8, 32946], () => import("./deflate-DxHXH5xg.js").then((m2) => m2.default));
123134
+ addDecoder(32773, () => import("./packbits-Wx1kBQ0B.js").then((m2) => m2.default));
123135
123135
  addDecoder(
123136
123136
  34887,
123137
- () => import("./lerc-CxaIuIQ5.js").then(async (m2) => {
123137
+ () => import("./lerc-DDH4E1vF.js").then(async (m2) => {
123138
123138
  await m2.zstd.init();
123139
123139
  return m2;
123140
123140
  }).then((m2) => m2.default)
123141
123141
  );
123142
- addDecoder(50001, () => import("./webimage-dh1_F6vO.js").then((m2) => m2.default));
123142
+ addDecoder(50001, () => import("./webimage-D9sKJsjg.js").then((m2) => m2.default));
123143
123143
  function decodeRowAcc(row, stride) {
123144
123144
  let length2 = row.length - stride;
123145
123145
  let offset2 = 0;
@@ -133097,10 +133097,10 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
133097
133097
  channelIsSetColorMode.forEach((isSetColorMode, channelIndex) => {
133098
133098
  var _a3, _b2, _c, _d;
133099
133099
  if (isSetColorMode) {
133100
- totalColorsLength += (((_b2 = (_a3 = setColorValues[channelIndex]) == null ? void 0 : _a3.setColors) == null ? void 0 : _b2.length) || 0) * 3;
133100
+ totalColorsLength += (((_b2 = (_a3 = setColorValues[channelIndex]) == null ? void 0 : _a3.setColors) == null ? void 0 : _b2.length) ?? 0) * 3;
133101
133101
  totalValuesLength += ((_c = setColorValues[channelIndex]) == null ? void 0 : _c.obsIndex) ? max(setColorValues[channelIndex].obsIndex.map((d) => parseInt(d))) : 0;
133102
133102
  } else {
133103
- totalValuesLength += multiMatrixObsIndex[channelIndex] ? max(multiMatrixObsIndex[channelIndex].map((d) => parseInt(d))) : ((_d = multiFeatureValues[channelIndex]) == null ? void 0 : _d.length) || 0;
133103
+ totalValuesLength += multiMatrixObsIndex[channelIndex] ? max(multiMatrixObsIndex[channelIndex].map((d) => parseInt(d))) : ((_d = multiFeatureValues[channelIndex]) == null ? void 0 : _d.length) ?? 0;
133104
133104
  }
133105
133105
  });
133106
133106
  const valueTexHeight = Math.max(2, Math.ceil(totalValuesLength / texSize));
@@ -133121,7 +133121,7 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
133121
133121
  const matrixObsIndex = multiMatrixObsIndex[channelIndex];
133122
133122
  const bitmaskValueIsIndex = matrixObsIndex === null;
133123
133123
  if (isSetColorMode) {
133124
- const { setColorIndices, setColors, obsIndex } = setColorValues[channelIndex] || {};
133124
+ const { setColorIndices, setColors, obsIndex } = setColorValues[channelIndex] ?? {};
133125
133125
  if (setColorIndices && setColors && obsIndex) {
133126
133126
  for (let i2 = 0; i2 < obsIndex.length; i2++) {
133127
133127
  let obsId = String(i2 + 1);
@@ -133145,7 +133145,7 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
133145
133145
  indexOffset += (obsIndex == null ? void 0 : obsIndex.length) || 0;
133146
133146
  colorOffset += (setColors == null ? void 0 : setColors.length) || 0;
133147
133147
  } else {
133148
- const featureArr = multiFeatureValues[channelIndex];
133148
+ const featureArr = multiFeatureValues[channelIndex] ?? [];
133149
133149
  const normalizedFeatureArr = normalize(featureArr);
133150
133150
  if (!bitmaskValueIsIndex && matrixObsIndex) {
133151
133151
  for (let i2 = 0; i2 < matrixObsIndex.length; i2++) {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { G } from "./index-CrsPy-n7.js";
1
+ import { G } from "./index-DNmU76cL.js";
2
2
  export {
3
3
  G as GatingSubscriber
4
4
  };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-CrsPy-n7.js";
1
+ import { B as BaseDecoder } from "./index-DNmU76cL.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-CrsPy-n7.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-DNmU76cL.js";
3
3
  const LercParameters = {
4
4
  AddCompression: 1
5
5
  };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-CrsPy-n7.js";
1
+ import { B as BaseDecoder } from "./index-DNmU76cL.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-CrsPy-n7.js";
1
+ import { B as BaseDecoder } from "./index-DNmU76cL.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-CrsPy-n7.js";
1
+ import { B as BaseDecoder } from "./index-DNmU76cL.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-CrsPy-n7.js";
1
+ import { B as BaseDecoder } from "./index-DNmU76cL.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-gating",
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,12 +19,12 @@
19
19
  "d3-array": "^2.4.0",
20
20
  "lodash-es": "^4.17.21",
21
21
  "react-aria": "^3.28.0",
22
- "@vitessce/styles": "3.6.14",
23
- "@vitessce/constants-internal": "3.6.14",
24
- "@vitessce/scatterplot": "3.6.14",
25
- "@vitessce/sets-utils": "3.6.14",
26
- "@vitessce/utils": "3.6.14",
27
- "@vitessce/vit-s": "3.6.14"
22
+ "@vitessce/styles": "3.6.16",
23
+ "@vitessce/constants-internal": "3.6.16",
24
+ "@vitessce/scatterplot": "3.6.16",
25
+ "@vitessce/sets-utils": "3.6.16",
26
+ "@vitessce/utils": "3.6.16",
27
+ "@vitessce/vit-s": "3.6.16"
28
28
  },
29
29
  "devDependencies": {
30
30
  "react": "^18.0.0",