@vitessce/heatmap 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-BNko92Yi.js";
2
+ import { B as BaseDecoder } from "./index-DqIJTivP.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -34223,21 +34223,25 @@ const rectMarginY = 2;
34223
34223
  const rectMarginX = 2;
34224
34224
  function combineExtents(extents, featureAggregationStrategy) {
34225
34225
  if (Array.isArray(extents)) {
34226
- if (featureAggregationStrategy === "first") {
34227
- return extents[0];
34228
- }
34229
- if (featureAggregationStrategy === "last") {
34230
- return extents.at(-1);
34231
- }
34232
- if (typeof featureAggregationStrategy === "number") {
34233
- const i2 = featureAggregationStrategy;
34234
- return extents[i2];
34235
- }
34236
- if (featureAggregationStrategy === "sum") {
34237
- return extents.reduce((a2, h) => [a2[0] + h[0], a2[1] + h[1]]);
34238
- }
34239
- if (featureAggregationStrategy === "mean") {
34240
- return extents.reduce((a2, h) => [a2[0] + h[0], a2[1] + h[1]]).map((v) => v / extents.length);
34226
+ if (Array.isArray(extents == null ? void 0 : extents[0])) {
34227
+ if (featureAggregationStrategy === "first") {
34228
+ return extents[0];
34229
+ }
34230
+ if (featureAggregationStrategy === "last") {
34231
+ return extents.at(-1);
34232
+ }
34233
+ if (typeof featureAggregationStrategy === "number") {
34234
+ const i2 = featureAggregationStrategy;
34235
+ return extents[i2];
34236
+ }
34237
+ if (featureAggregationStrategy === "sum") {
34238
+ return extents.reduce((a2, h) => [a2[0] + h[0], a2[1] + h[1]]);
34239
+ }
34240
+ if (featureAggregationStrategy === "mean") {
34241
+ return extents.reduce((a2, h) => [a2[0] + h[0], a2[1] + h[1]]).map((v) => v / extents.length);
34242
+ }
34243
+ } else {
34244
+ return extents;
34241
34245
  }
34242
34246
  }
34243
34247
  return null;
@@ -138426,22 +138430,22 @@ function addDecoder(cases, importFn) {
138426
138430
  }
138427
138431
  cases.forEach((c) => registry$1.set(c, importFn));
138428
138432
  }
138429
- addDecoder([void 0, 1], () => import("./raw-DYPRCwoj.js").then((m) => m.default));
138430
- addDecoder(5, () => import("./lzw-D3bPG8e2.js").then((m) => m.default));
138433
+ addDecoder([void 0, 1], () => import("./raw-BeDDwWGA.js").then((m) => m.default));
138434
+ addDecoder(5, () => import("./lzw-BcXamXYW.js").then((m) => m.default));
138431
138435
  addDecoder(6, () => {
138432
138436
  throw new Error("old style JPEG compression is not supported.");
138433
138437
  });
138434
- addDecoder(7, () => import("./jpeg-DwLtkwvP.js").then((m) => m.default));
138435
- addDecoder([8, 32946], () => import("./deflate-BVibX3Uq.js").then((m) => m.default));
138436
- addDecoder(32773, () => import("./packbits-CFQqWTBP.js").then((m) => m.default));
138438
+ addDecoder(7, () => import("./jpeg-Cj4rIFBy.js").then((m) => m.default));
138439
+ addDecoder([8, 32946], () => import("./deflate-CGbC7PRY.js").then((m) => m.default));
138440
+ addDecoder(32773, () => import("./packbits-rQvXF0nL.js").then((m) => m.default));
138437
138441
  addDecoder(
138438
138442
  34887,
138439
- () => import("./lerc-D_5wOo-k.js").then(async (m) => {
138443
+ () => import("./lerc-BDKNZy62.js").then(async (m) => {
138440
138444
  await m.zstd.init();
138441
138445
  return m;
138442
138446
  }).then((m) => m.default)
138443
138447
  );
138444
- addDecoder(50001, () => import("./webimage-B4Bpj0Mc.js").then((m) => m.default));
138448
+ addDecoder(50001, () => import("./webimage-CV0zm01h.js").then((m) => m.default));
138445
138449
  function decodeRowAcc(row, stride) {
138446
138450
  let length2 = row.length - stride;
138447
138451
  let offset2 = 0;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a, H } from "./index-BNko92Yi.js";
1
+ import { a, H } from "./index-DqIJTivP.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-BNko92Yi.js";
1
+ import { B as BaseDecoder } from "./index-DqIJTivP.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-BNko92Yi.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-DqIJTivP.js";
3
3
  const LercParameters = {
4
4
  AddCompression: 1
5
5
  };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-BNko92Yi.js";
1
+ import { B as BaseDecoder } from "./index-DqIJTivP.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-BNko92Yi.js";
1
+ import { B as BaseDecoder } from "./index-DqIJTivP.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-BNko92Yi.js";
1
+ import { B as BaseDecoder } from "./index-DqIJTivP.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-BNko92Yi.js";
1
+ import { B as BaseDecoder } from "./index-DqIJTivP.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.1",
3
+ "version": "3.6.3",
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.1",
23
- "@vitessce/constants-internal": "3.6.1",
24
- "@vitessce/gl": "3.6.1",
25
- "@vitessce/legend": "3.6.1",
26
- "@vitessce/sets-utils": "3.6.1",
27
- "@vitessce/tooltip": "3.6.1",
28
- "@vitessce/utils": "3.6.1",
29
- "@vitessce/vit-s": "3.6.1",
30
- "@vitessce/workers": "3.6.1"
22
+ "@vitessce/styles": "3.6.3",
23
+ "@vitessce/constants-internal": "3.6.3",
24
+ "@vitessce/gl": "3.6.3",
25
+ "@vitessce/legend": "3.6.3",
26
+ "@vitessce/sets-utils": "3.6.3",
27
+ "@vitessce/tooltip": "3.6.3",
28
+ "@vitessce/utils": "3.6.3",
29
+ "@vitessce/vit-s": "3.6.3",
30
+ "@vitessce/workers": "3.6.3"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@testing-library/jest-dom": "^6.6.3",