@vitessce/scatterplot 3.9.0 → 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-DOJ0SQ9r.js";
2
+ import { B as BaseDecoder } from "./index-BnHp_kgt.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -105941,22 +105941,22 @@ function addDecoder(cases, importFn) {
105941
105941
  }
105942
105942
  cases.forEach((c2) => registry$1.set(c2, importFn));
105943
105943
  }
105944
- addDecoder([void 0, 1], () => import("./raw-x7WjGrAR.js").then((m2) => m2.default));
105945
- addDecoder(5, () => import("./lzw-B7vskPPs.js").then((m2) => m2.default));
105944
+ addDecoder([void 0, 1], () => import("./raw-9QYXvV7g.js").then((m2) => m2.default));
105945
+ addDecoder(5, () => import("./lzw-DmGPZNwe.js").then((m2) => m2.default));
105946
105946
  addDecoder(6, () => {
105947
105947
  throw new Error("old style JPEG compression is not supported.");
105948
105948
  });
105949
- addDecoder(7, () => import("./jpeg-9W5Yt9ZO.js").then((m2) => m2.default));
105950
- addDecoder([8, 32946], () => import("./deflate-CeYijgt6.js").then((m2) => m2.default));
105951
- addDecoder(32773, () => import("./packbits-BPd00-mr.js").then((m2) => m2.default));
105949
+ addDecoder(7, () => import("./jpeg-NBKSBWG4.js").then((m2) => m2.default));
105950
+ addDecoder([8, 32946], () => import("./deflate-Crq3Jefy.js").then((m2) => m2.default));
105951
+ addDecoder(32773, () => import("./packbits-BQsY1hoj.js").then((m2) => m2.default));
105952
105952
  addDecoder(
105953
105953
  34887,
105954
- () => import("./lerc-6BpvcXOs.js").then(async (m2) => {
105954
+ () => import("./lerc-mkLyV9VA.js").then(async (m2) => {
105955
105955
  await m2.zstd.init();
105956
105956
  return m2;
105957
105957
  }).then((m2) => m2.default)
105958
105958
  );
105959
- addDecoder(50001, () => import("./webimage-BfG0h7pO.js").then((m2) => m2.default));
105959
+ addDecoder(50001, () => import("./webimage-DVGmzIi6.js").then((m2) => m2.default));
105960
105960
  function decodeRowAcc(row, stride) {
105961
105961
  let length2 = row.length - stride;
105962
105962
  let offset2 = 0;
@@ -137557,21 +137557,20 @@ Popper$1.Utils = (typeof window !== "undefined" ? window : global).PopperUtils;
137557
137557
  Popper$1.placements = placements;
137558
137558
  Popper$1.Defaults = Defaults;
137559
137559
  function createChainedFunction(...funcs) {
137560
- return funcs.reduce((acc, func) => {
137561
- if (func == null) {
137562
- return acc;
137563
- }
137564
- {
137565
- if (typeof func !== "function") {
137566
- console.error("Material-UI: Invalid Argument Type, must only provide functions, undefined, or null.");
137560
+ return funcs.reduce(
137561
+ (acc, func) => {
137562
+ if (func == null) {
137563
+ return acc;
137567
137564
  }
137565
+ return function chainedFunction(...args) {
137566
+ acc.apply(this, args);
137567
+ func.apply(this, args);
137568
+ };
137569
+ },
137570
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
137571
+ () => {
137568
137572
  }
137569
- return function chainedFunction(...args) {
137570
- acc.apply(this, args);
137571
- func.apply(this, args);
137572
- };
137573
- }, () => {
137574
- });
137573
+ );
137575
137574
  }
137576
137575
  function setRef(ref, value) {
137577
137576
  if (typeof ref === "function") {
@@ -137610,7 +137609,7 @@ function flipPlacement(placement, theme) {
137610
137609
  }
137611
137610
  }
137612
137611
  function getAnchorEl(anchorEl) {
137613
- return typeof anchorEl === "function" ? anchorEl() : anchorEl;
137612
+ return typeof anchorEl === "function" ? anchorEl(document.body) : anchorEl;
137614
137613
  }
137615
137614
  const useEnhancedEffect = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
137616
137615
  const defaultPopperOptions = {};
@@ -137640,25 +137639,18 @@ const Popper = React.forwardRef((props, ref) => {
137640
137639
  }
137641
137640
  if (popperRef.current) {
137642
137641
  popperRef.current.destroy();
137643
- handlePopperRefRef.current(null);
137642
+ if (handlePopperRefRef.current) {
137643
+ setRef(handlePopperRefRef.current, null);
137644
+ }
137644
137645
  }
137645
137646
  const handlePopperUpdate = (data) => {
137646
137647
  setPlacement(data.placement);
137647
137648
  };
137648
- const resolvedAnchorEl = getAnchorEl(anchorEl);
137649
- {
137650
- if (resolvedAnchorEl && resolvedAnchorEl.nodeType === 1) {
137651
- const box = resolvedAnchorEl.getBoundingClientRect();
137652
- if (box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
137653
- console.warn([
137654
- "Material-UI: The `anchorEl` prop provided to the component is invalid.",
137655
- "The anchor element should be part of the document layout.",
137656
- "Make sure the element is present in the document or that it's not display none."
137657
- ].join("\n"));
137658
- }
137659
- }
137649
+ const anchorElement = getAnchorEl(anchorEl);
137650
+ if (!anchorElement) {
137651
+ return;
137660
137652
  }
137661
- const popper = new Popper$1(getAnchorEl(anchorEl), tooltipRef.current, {
137653
+ const popper = new Popper$1(anchorElement, tooltipRef.current, {
137662
137654
  placement: rtlPlacement,
137663
137655
  ...popperOptions,
137664
137656
  modifiers: {
@@ -137676,7 +137668,9 @@ const Popper = React.forwardRef((props, ref) => {
137676
137668
  onCreate: createChainedFunction(handlePopperUpdate, popperOptions.onCreate),
137677
137669
  onUpdate: createChainedFunction(handlePopperUpdate, popperOptions.onUpdate)
137678
137670
  });
137679
- handlePopperRefRef.current(popper);
137671
+ if (handlePopperRefRef.current) {
137672
+ setRef(handlePopperRefRef.current, popper);
137673
+ }
137680
137674
  }, [anchorEl, disablePortal, modifiers2, open, rtlPlacement, popperOptions]);
137681
137675
  const handleRef = React.useCallback((node2) => {
137682
137676
  setRef(ownRef, node2);
@@ -137690,7 +137684,9 @@ const Popper = React.forwardRef((props, ref) => {
137690
137684
  return;
137691
137685
  }
137692
137686
  popperRef.current.destroy();
137693
- handlePopperRefRef.current(null);
137687
+ if (handlePopperRefRef.current) {
137688
+ setRef(handlePopperRefRef.current, null);
137689
+ }
137694
137690
  };
137695
137691
  const handleExited = () => {
137696
137692
  setExited(true);
@@ -137721,7 +137717,7 @@ const Popper = React.forwardRef((props, ref) => {
137721
137717
  // Fix Popper.js display issue
137722
137718
  top: 0,
137723
137719
  left: 0,
137724
- display: !open && keepMounted && !transition ? "none" : null,
137720
+ display: !open && keepMounted && !transition ? "none" : void 0,
137725
137721
  ...style2
137726
137722
  }, children: typeof children === "function" ? children(childProps) : children }) });
137727
137723
  });
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A, E, S, a, b, f, e, d, c } from "./index-DOJ0SQ9r.js";
1
+ import { A, E, S, a, b, f, e, d, c } from "./index-BnHp_kgt.js";
2
2
  export {
3
3
  A as AbstractSpatialOrScatterplot,
4
4
  E as EmptyMessage,
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-DOJ0SQ9r.js";
1
+ import { B as BaseDecoder } from "./index-BnHp_kgt.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-DOJ0SQ9r.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-BnHp_kgt.js";
3
3
  const LercParameters = {
4
4
  AddCompression: 1
5
5
  };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-DOJ0SQ9r.js";
1
+ import { B as BaseDecoder } from "./index-BnHp_kgt.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-DOJ0SQ9r.js";
1
+ import { B as BaseDecoder } from "./index-BnHp_kgt.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-DOJ0SQ9r.js";
1
+ import { B as BaseDecoder } from "./index-BnHp_kgt.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-DOJ0SQ9r.js";
1
+ import { B as BaseDecoder } from "./index-BnHp_kgt.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",
3
- "version": "3.9.0",
3
+ "version": "3.9.2",
4
4
  "author": "HIDIVE Lab at HMS",
5
5
  "homepage": "http://vitessce.io",
6
6
  "repository": {
@@ -21,13 +21,13 @@
21
21
  "d3-quadtree": "^1.0.7",
22
22
  "lodash-es": "^4.17.21",
23
23
  "react-aria": "^3.28.0",
24
- "@vitessce/styles": "3.9.0",
25
- "@vitessce/gl": "3.9.0",
26
- "@vitessce/constants-internal": "3.9.0",
27
- "@vitessce/icons": "3.9.0",
28
- "@vitessce/utils": "3.9.0",
29
- "@vitessce/tooltip": "3.9.0",
30
- "@vitessce/vit-s": "3.9.0"
24
+ "@vitessce/constants-internal": "3.9.2",
25
+ "@vitessce/styles": "3.9.2",
26
+ "@vitessce/gl": "3.9.2",
27
+ "@vitessce/icons": "3.9.2",
28
+ "@vitessce/utils": "3.9.2",
29
+ "@vitessce/vit-s": "3.9.2",
30
+ "@vitessce/tooltip": "3.9.2"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@testing-library/jest-dom": "^6.6.3",