@vitessce/heatmap 3.9.1 → 3.9.2

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-DgJedZPO.js";
2
+ import { B as BaseDecoder } from "./index-COwftYHh.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -31572,21 +31572,20 @@ Popper$1.Utils = (typeof window !== "undefined" ? window : global).PopperUtils;
31572
31572
  Popper$1.placements = placements;
31573
31573
  Popper$1.Defaults = Defaults;
31574
31574
  function createChainedFunction(...funcs) {
31575
- return funcs.reduce((acc, func) => {
31576
- if (func == null) {
31577
- return acc;
31578
- }
31579
- {
31580
- if (typeof func !== "function") {
31581
- console.error("Material-UI: Invalid Argument Type, must only provide functions, undefined, or null.");
31575
+ return funcs.reduce(
31576
+ (acc, func) => {
31577
+ if (func == null) {
31578
+ return acc;
31582
31579
  }
31580
+ return function chainedFunction(...args) {
31581
+ acc.apply(this, args);
31582
+ func.apply(this, args);
31583
+ };
31584
+ },
31585
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
31586
+ () => {
31583
31587
  }
31584
- return function chainedFunction(...args) {
31585
- acc.apply(this, args);
31586
- func.apply(this, args);
31587
- };
31588
- }, () => {
31589
- });
31588
+ );
31590
31589
  }
31591
31590
  function setRef(ref, value) {
31592
31591
  if (typeof ref === "function") {
@@ -31625,7 +31624,7 @@ function flipPlacement(placement, theme) {
31625
31624
  }
31626
31625
  }
31627
31626
  function getAnchorEl(anchorEl) {
31628
- return typeof anchorEl === "function" ? anchorEl() : anchorEl;
31627
+ return typeof anchorEl === "function" ? anchorEl(document.body) : anchorEl;
31629
31628
  }
31630
31629
  const useEnhancedEffect = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
31631
31630
  const defaultPopperOptions = {};
@@ -31655,25 +31654,18 @@ const Popper = React.forwardRef((props, ref) => {
31655
31654
  }
31656
31655
  if (popperRef.current) {
31657
31656
  popperRef.current.destroy();
31658
- handlePopperRefRef.current(null);
31657
+ if (handlePopperRefRef.current) {
31658
+ setRef(handlePopperRefRef.current, null);
31659
+ }
31659
31660
  }
31660
31661
  const handlePopperUpdate = (data) => {
31661
31662
  setPlacement(data.placement);
31662
31663
  };
31663
- const resolvedAnchorEl = getAnchorEl(anchorEl);
31664
- {
31665
- if (resolvedAnchorEl && resolvedAnchorEl.nodeType === 1) {
31666
- const box = resolvedAnchorEl.getBoundingClientRect();
31667
- if (box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
31668
- console.warn([
31669
- "Material-UI: The `anchorEl` prop provided to the component is invalid.",
31670
- "The anchor element should be part of the document layout.",
31671
- "Make sure the element is present in the document or that it's not display none."
31672
- ].join("\n"));
31673
- }
31674
- }
31664
+ const anchorElement = getAnchorEl(anchorEl);
31665
+ if (!anchorElement) {
31666
+ return;
31675
31667
  }
31676
- const popper = new Popper$1(getAnchorEl(anchorEl), tooltipRef.current, {
31668
+ const popper = new Popper$1(anchorElement, tooltipRef.current, {
31677
31669
  placement: rtlPlacement,
31678
31670
  ...popperOptions,
31679
31671
  modifiers: {
@@ -31691,7 +31683,9 @@ const Popper = React.forwardRef((props, ref) => {
31691
31683
  onCreate: createChainedFunction(handlePopperUpdate, popperOptions.onCreate),
31692
31684
  onUpdate: createChainedFunction(handlePopperUpdate, popperOptions.onUpdate)
31693
31685
  });
31694
- handlePopperRefRef.current(popper);
31686
+ if (handlePopperRefRef.current) {
31687
+ setRef(handlePopperRefRef.current, popper);
31688
+ }
31695
31689
  }, [anchorEl, disablePortal, modifiers2, open, rtlPlacement, popperOptions]);
31696
31690
  const handleRef = React.useCallback((node2) => {
31697
31691
  setRef(ownRef, node2);
@@ -31705,7 +31699,9 @@ const Popper = React.forwardRef((props, ref) => {
31705
31699
  return;
31706
31700
  }
31707
31701
  popperRef.current.destroy();
31708
- handlePopperRefRef.current(null);
31702
+ if (handlePopperRefRef.current) {
31703
+ setRef(handlePopperRefRef.current, null);
31704
+ }
31709
31705
  };
31710
31706
  const handleExited = () => {
31711
31707
  setExited(true);
@@ -31736,7 +31732,7 @@ const Popper = React.forwardRef((props, ref) => {
31736
31732
  // Fix Popper.js display issue
31737
31733
  top: 0,
31738
31734
  left: 0,
31739
- display: !open && keepMounted && !transition ? "none" : null,
31735
+ display: !open && keepMounted && !transition ? "none" : void 0,
31740
31736
  ...style2
31741
31737
  }, children: typeof children2 === "function" ? children2(childProps) : children2 }) });
31742
31738
  });
@@ -138183,22 +138179,22 @@ function addDecoder(cases, importFn) {
138183
138179
  }
138184
138180
  cases.forEach((c) => registry$1.set(c, importFn));
138185
138181
  }
138186
- addDecoder([void 0, 1], () => import("./raw-BY4wlPHH.js").then((m) => m.default));
138187
- addDecoder(5, () => import("./lzw-Cvt0LkXw.js").then((m) => m.default));
138182
+ addDecoder([void 0, 1], () => import("./raw-CuoVZYgh.js").then((m) => m.default));
138183
+ addDecoder(5, () => import("./lzw-B49kANWk.js").then((m) => m.default));
138188
138184
  addDecoder(6, () => {
138189
138185
  throw new Error("old style JPEG compression is not supported.");
138190
138186
  });
138191
- addDecoder(7, () => import("./jpeg-DHh36Lwj.js").then((m) => m.default));
138192
- addDecoder([8, 32946], () => import("./deflate-CtXZgCAW.js").then((m) => m.default));
138193
- addDecoder(32773, () => import("./packbits-5TE0g68q.js").then((m) => m.default));
138187
+ addDecoder(7, () => import("./jpeg-ej4QpQD2.js").then((m) => m.default));
138188
+ addDecoder([8, 32946], () => import("./deflate-DoBsfd5X.js").then((m) => m.default));
138189
+ addDecoder(32773, () => import("./packbits-Chm1I75k.js").then((m) => m.default));
138194
138190
  addDecoder(
138195
138191
  34887,
138196
- () => import("./lerc-DWs1G17t.js").then(async (m) => {
138192
+ () => import("./lerc-DmcLtqzg.js").then(async (m) => {
138197
138193
  await m.zstd.init();
138198
138194
  return m;
138199
138195
  }).then((m) => m.default)
138200
138196
  );
138201
- addDecoder(50001, () => import("./webimage-CikUgHwn.js").then((m) => m.default));
138197
+ addDecoder(50001, () => import("./webimage-BTaPGzt_.js").then((m) => m.default));
138202
138198
  function decodeRowAcc(row, stride) {
138203
138199
  let length2 = row.length - stride;
138204
138200
  let offset2 = 0;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a, H } from "./index-DgJedZPO.js";
1
+ import { a, H } from "./index-COwftYHh.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-DgJedZPO.js";
1
+ import { B as BaseDecoder } from "./index-COwftYHh.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-DgJedZPO.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-COwftYHh.js";
3
3
  const LercParameters = {
4
4
  AddCompression: 1
5
5
  };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-DgJedZPO.js";
1
+ import { B as BaseDecoder } from "./index-COwftYHh.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-DgJedZPO.js";
1
+ import { B as BaseDecoder } from "./index-COwftYHh.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-DgJedZPO.js";
1
+ import { B as BaseDecoder } from "./index-COwftYHh.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-DgJedZPO.js";
1
+ import { B as BaseDecoder } from "./index-COwftYHh.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.9.1",
3
+ "version": "3.9.2",
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.9.1",
23
- "@vitessce/gl": "3.9.1",
24
- "@vitessce/constants-internal": "3.9.1",
25
- "@vitessce/legend": "3.9.1",
26
- "@vitessce/sets-utils": "3.9.1",
27
- "@vitessce/utils": "3.9.1",
28
- "@vitessce/tooltip": "3.9.1",
29
- "@vitessce/workers": "3.9.1",
30
- "@vitessce/vit-s": "3.9.1"
22
+ "@vitessce/styles": "3.9.2",
23
+ "@vitessce/constants-internal": "3.9.2",
24
+ "@vitessce/gl": "3.9.2",
25
+ "@vitessce/legend": "3.9.2",
26
+ "@vitessce/tooltip": "3.9.2",
27
+ "@vitessce/sets-utils": "3.9.2",
28
+ "@vitessce/utils": "3.9.2",
29
+ "@vitessce/workers": "3.9.2",
30
+ "@vitessce/vit-s": "3.9.2"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@testing-library/jest-dom": "^6.6.3",