@vitessce/scatterplot-embedding 3.6.1 → 3.6.3

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-j0ihMbBE.js";
2
+ import { B as BaseDecoder } from "./index-Cjo_e-1O.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -123213,22 +123213,22 @@ function addDecoder(cases, importFn) {
123213
123213
  }
123214
123214
  cases.forEach((c2) => registry$1.set(c2, importFn));
123215
123215
  }
123216
- addDecoder([void 0, 1], () => import("./raw-ufiv5yWM.js").then((m2) => m2.default));
123217
- addDecoder(5, () => import("./lzw-CUWU5SBx.js").then((m2) => m2.default));
123216
+ addDecoder([void 0, 1], () => import("./raw-7khL7CHs.js").then((m2) => m2.default));
123217
+ addDecoder(5, () => import("./lzw-BB7DzK4H.js").then((m2) => m2.default));
123218
123218
  addDecoder(6, () => {
123219
123219
  throw new Error("old style JPEG compression is not supported.");
123220
123220
  });
123221
- addDecoder(7, () => import("./jpeg-CHU3I9No.js").then((m2) => m2.default));
123222
- addDecoder([8, 32946], () => import("./deflate-Db2cTk_W.js").then((m2) => m2.default));
123223
- addDecoder(32773, () => import("./packbits-Jo_SZrPf.js").then((m2) => m2.default));
123221
+ addDecoder(7, () => import("./jpeg-Ctq9g9DE.js").then((m2) => m2.default));
123222
+ addDecoder([8, 32946], () => import("./deflate-BNjVGM_n.js").then((m2) => m2.default));
123223
+ addDecoder(32773, () => import("./packbits-C1sP_Cxs.js").then((m2) => m2.default));
123224
123224
  addDecoder(
123225
123225
  34887,
123226
- () => import("./lerc-D8PUPaYD.js").then(async (m2) => {
123226
+ () => import("./lerc-BOvxa_Oj.js").then(async (m2) => {
123227
123227
  await m2.zstd.init();
123228
123228
  return m2;
123229
123229
  }).then((m2) => m2.default)
123230
123230
  );
123231
- addDecoder(50001, () => import("./webimage-7P2vy2jd.js").then((m2) => m2.default));
123231
+ addDecoder(50001, () => import("./webimage-CFAQsrry.js").then((m2) => m2.default));
123232
123232
  function decodeRowAcc(row, stride) {
123233
123233
  let length2 = row.length - stride;
123234
123234
  let offset2 = 0;
@@ -153736,21 +153736,25 @@ const rectMarginY = 2;
153736
153736
  const rectMarginX = 2;
153737
153737
  function combineExtents(extents, featureAggregationStrategy) {
153738
153738
  if (Array.isArray(extents)) {
153739
- if (featureAggregationStrategy === "first") {
153740
- return extents[0];
153741
- }
153742
- if (featureAggregationStrategy === "last") {
153743
- return extents.at(-1);
153744
- }
153745
- if (typeof featureAggregationStrategy === "number") {
153746
- const i2 = featureAggregationStrategy;
153747
- return extents[i2];
153748
- }
153749
- if (featureAggregationStrategy === "sum") {
153750
- return extents.reduce((a2, h) => [a2[0] + h[0], a2[1] + h[1]]);
153751
- }
153752
- if (featureAggregationStrategy === "mean") {
153753
- return extents.reduce((a2, h) => [a2[0] + h[0], a2[1] + h[1]]).map((v) => v / extents.length);
153739
+ if (Array.isArray(extents == null ? void 0 : extents[0])) {
153740
+ if (featureAggregationStrategy === "first") {
153741
+ return extents[0];
153742
+ }
153743
+ if (featureAggregationStrategy === "last") {
153744
+ return extents.at(-1);
153745
+ }
153746
+ if (typeof featureAggregationStrategy === "number") {
153747
+ const i2 = featureAggregationStrategy;
153748
+ return extents[i2];
153749
+ }
153750
+ if (featureAggregationStrategy === "sum") {
153751
+ return extents.reduce((a2, h) => [a2[0] + h[0], a2[1] + h[1]]);
153752
+ }
153753
+ if (featureAggregationStrategy === "mean") {
153754
+ return extents.reduce((a2, h) => [a2[0] + h[0], a2[1] + h[1]]).map((v) => v / extents.length);
153755
+ }
153756
+ } else {
153757
+ return extents;
153754
153758
  }
153755
153759
  }
153756
153760
  return null;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D, E } from "./index-j0ihMbBE.js";
1
+ import { D, E } from "./index-Cjo_e-1O.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-j0ihMbBE.js";
1
+ import { B as BaseDecoder } from "./index-Cjo_e-1O.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-j0ihMbBE.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-Cjo_e-1O.js";
3
3
  const LercParameters = {
4
4
  AddCompression: 1
5
5
  };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-j0ihMbBE.js";
1
+ import { B as BaseDecoder } from "./index-Cjo_e-1O.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-j0ihMbBE.js";
1
+ import { B as BaseDecoder } from "./index-Cjo_e-1O.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-j0ihMbBE.js";
1
+ import { B as BaseDecoder } from "./index-Cjo_e-1O.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-j0ihMbBE.js";
1
+ import { B as BaseDecoder } from "./index-Cjo_e-1O.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.1",
3
+ "version": "3.6.3",
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.1",
24
- "@vitessce/constants-internal": "3.6.1",
25
- "@vitessce/legend": "3.6.1",
26
- "@vitessce/scatterplot": "3.6.1",
27
- "@vitessce/sets-utils": "3.6.1",
28
- "@vitessce/utils": "3.6.1",
29
- "@vitessce/vit-s": "3.6.1"
23
+ "@vitessce/styles": "3.6.3",
24
+ "@vitessce/constants-internal": "3.6.3",
25
+ "@vitessce/legend": "3.6.3",
26
+ "@vitessce/scatterplot": "3.6.3",
27
+ "@vitessce/sets-utils": "3.6.3",
28
+ "@vitessce/utils": "3.6.3",
29
+ "@vitessce/vit-s": "3.6.3"
30
30
  },
31
31
  "devDependencies": {
32
32
  "react": "^18.0.0",