@vitessce/scatterplot-embedding 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-DgPOdHp3.js";
2
+ import { B as BaseDecoder } from "./index-N75bp3XF.js";
3
3
  class DeflateDecoder extends BaseDecoder {
4
4
  decodeBlock(buffer) {
5
5
  return inflate_1(new Uint8Array(buffer)).buffer;
@@ -123410,22 +123410,22 @@ function addDecoder(cases, importFn) {
123410
123410
  }
123411
123411
  cases.forEach((c2) => registry$1.set(c2, importFn));
123412
123412
  }
123413
- addDecoder([void 0, 1], () => import("./raw-Cv7A6Is8.js").then((m2) => m2.default));
123414
- addDecoder(5, () => import("./lzw-BdbvO0aS.js").then((m2) => m2.default));
123413
+ addDecoder([void 0, 1], () => import("./raw-DN9VDLw4.js").then((m2) => m2.default));
123414
+ addDecoder(5, () => import("./lzw-CD_6nkaP.js").then((m2) => m2.default));
123415
123415
  addDecoder(6, () => {
123416
123416
  throw new Error("old style JPEG compression is not supported.");
123417
123417
  });
123418
- addDecoder(7, () => import("./jpeg-C9Q09Dvz.js").then((m2) => m2.default));
123419
- addDecoder([8, 32946], () => import("./deflate-Vi0b2b-T.js").then((m2) => m2.default));
123420
- addDecoder(32773, () => import("./packbits-CLr-1bFS.js").then((m2) => m2.default));
123418
+ addDecoder(7, () => import("./jpeg-apiltN1B.js").then((m2) => m2.default));
123419
+ addDecoder([8, 32946], () => import("./deflate-ByvNJ45k.js").then((m2) => m2.default));
123420
+ addDecoder(32773, () => import("./packbits-4HWilLQb.js").then((m2) => m2.default));
123421
123421
  addDecoder(
123422
123422
  34887,
123423
- () => import("./lerc-C3dlbBvE.js").then(async (m2) => {
123423
+ () => import("./lerc-hQf_oOH-.js").then(async (m2) => {
123424
123424
  await m2.zstd.init();
123425
123425
  return m2;
123426
123426
  }).then((m2) => m2.default)
123427
123427
  );
123428
- addDecoder(50001, () => import("./webimage-BI60-gR7.js").then((m2) => m2.default));
123428
+ addDecoder(50001, () => import("./webimage-CQtI0xlA.js").then((m2) => m2.default));
123429
123429
  function decodeRowAcc(row, stride) {
123430
123430
  let length2 = row.length - stride;
123431
123431
  let offset2 = 0;
@@ -149890,21 +149890,20 @@ Popper$1.Utils = (typeof window !== "undefined" ? window : global).PopperUtils;
149890
149890
  Popper$1.placements = placements;
149891
149891
  Popper$1.Defaults = Defaults;
149892
149892
  function createChainedFunction(...funcs) {
149893
- return funcs.reduce((acc, func) => {
149894
- if (func == null) {
149895
- return acc;
149896
- }
149897
- {
149898
- if (typeof func !== "function") {
149899
- console.error("Material-UI: Invalid Argument Type, must only provide functions, undefined, or null.");
149893
+ return funcs.reduce(
149894
+ (acc, func) => {
149895
+ if (func == null) {
149896
+ return acc;
149900
149897
  }
149898
+ return function chainedFunction(...args) {
149899
+ acc.apply(this, args);
149900
+ func.apply(this, args);
149901
+ };
149902
+ },
149903
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
149904
+ () => {
149901
149905
  }
149902
- return function chainedFunction(...args) {
149903
- acc.apply(this, args);
149904
- func.apply(this, args);
149905
- };
149906
- }, () => {
149907
- });
149906
+ );
149908
149907
  }
149909
149908
  function setRef(ref, value) {
149910
149909
  if (typeof ref === "function") {
@@ -149943,7 +149942,7 @@ function flipPlacement(placement, theme) {
149943
149942
  }
149944
149943
  }
149945
149944
  function getAnchorEl(anchorEl) {
149946
- return typeof anchorEl === "function" ? anchorEl() : anchorEl;
149945
+ return typeof anchorEl === "function" ? anchorEl(document.body) : anchorEl;
149947
149946
  }
149948
149947
  const useEnhancedEffect = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
149949
149948
  const defaultPopperOptions = {};
@@ -149973,25 +149972,18 @@ const Popper = React.forwardRef((props, ref) => {
149973
149972
  }
149974
149973
  if (popperRef.current) {
149975
149974
  popperRef.current.destroy();
149976
- handlePopperRefRef.current(null);
149975
+ if (handlePopperRefRef.current) {
149976
+ setRef(handlePopperRefRef.current, null);
149977
+ }
149977
149978
  }
149978
149979
  const handlePopperUpdate = (data) => {
149979
149980
  setPlacement(data.placement);
149980
149981
  };
149981
- const resolvedAnchorEl = getAnchorEl(anchorEl);
149982
- {
149983
- if (resolvedAnchorEl && resolvedAnchorEl.nodeType === 1) {
149984
- const box = resolvedAnchorEl.getBoundingClientRect();
149985
- if (box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
149986
- console.warn([
149987
- "Material-UI: The `anchorEl` prop provided to the component is invalid.",
149988
- "The anchor element should be part of the document layout.",
149989
- "Make sure the element is present in the document or that it's not display none."
149990
- ].join("\n"));
149991
- }
149992
- }
149982
+ const anchorElement = getAnchorEl(anchorEl);
149983
+ if (!anchorElement) {
149984
+ return;
149993
149985
  }
149994
- const popper = new Popper$1(getAnchorEl(anchorEl), tooltipRef.current, {
149986
+ const popper = new Popper$1(anchorElement, tooltipRef.current, {
149995
149987
  placement: rtlPlacement,
149996
149988
  ...popperOptions,
149997
149989
  modifiers: {
@@ -150009,7 +150001,9 @@ const Popper = React.forwardRef((props, ref) => {
150009
150001
  onCreate: createChainedFunction(handlePopperUpdate, popperOptions.onCreate),
150010
150002
  onUpdate: createChainedFunction(handlePopperUpdate, popperOptions.onUpdate)
150011
150003
  });
150012
- handlePopperRefRef.current(popper);
150004
+ if (handlePopperRefRef.current) {
150005
+ setRef(handlePopperRefRef.current, popper);
150006
+ }
150013
150007
  }, [anchorEl, disablePortal, modifiers2, open, rtlPlacement, popperOptions]);
150014
150008
  const handleRef = React.useCallback((node2) => {
150015
150009
  setRef(ownRef, node2);
@@ -150023,7 +150017,9 @@ const Popper = React.forwardRef((props, ref) => {
150023
150017
  return;
150024
150018
  }
150025
150019
  popperRef.current.destroy();
150026
- handlePopperRefRef.current(null);
150020
+ if (handlePopperRefRef.current) {
150021
+ setRef(handlePopperRefRef.current, null);
150022
+ }
150027
150023
  };
150028
150024
  const handleExited = () => {
150029
150025
  setExited(true);
@@ -150054,7 +150050,7 @@ const Popper = React.forwardRef((props, ref) => {
150054
150050
  // Fix Popper.js display issue
150055
150051
  top: 0,
150056
150052
  left: 0,
150057
- display: !open && keepMounted && !transition ? "none" : null,
150053
+ display: !open && keepMounted && !transition ? "none" : void 0,
150058
150054
  ...style2
150059
150055
  }, children: typeof children2 === "function" ? children2(childProps) : children2 }) });
150060
150056
  });
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D, E } from "./index-DgPOdHp3.js";
1
+ import { D, E } from "./index-N75bp3XF.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-DgPOdHp3.js";
1
+ import { B as BaseDecoder } from "./index-N75bp3XF.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-DgPOdHp3.js";
2
+ import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-N75bp3XF.js";
3
3
  const LercParameters = {
4
4
  AddCompression: 1
5
5
  };
@@ -1,4 +1,4 @@
1
- import { B as BaseDecoder } from "./index-DgPOdHp3.js";
1
+ import { B as BaseDecoder } from "./index-N75bp3XF.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-DgPOdHp3.js";
1
+ import { B as BaseDecoder } from "./index-N75bp3XF.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-DgPOdHp3.js";
1
+ import { B as BaseDecoder } from "./index-N75bp3XF.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-DgPOdHp3.js";
1
+ import { B as BaseDecoder } from "./index-N75bp3XF.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.9.1",
3
+ "version": "3.9.2",
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/constants-internal": "3.9.1",
24
- "@vitessce/scatterplot": "3.9.1",
25
- "@vitessce/styles": "3.9.1",
26
- "@vitessce/legend": "3.9.1",
27
- "@vitessce/sets-utils": "3.9.1",
28
- "@vitessce/utils": "3.9.1",
29
- "@vitessce/vit-s": "3.9.1"
23
+ "@vitessce/legend": "3.9.2",
24
+ "@vitessce/scatterplot": "3.9.2",
25
+ "@vitessce/styles": "3.9.2",
26
+ "@vitessce/sets-utils": "3.9.2",
27
+ "@vitessce/constants-internal": "3.9.2",
28
+ "@vitessce/utils": "3.9.2",
29
+ "@vitessce/vit-s": "3.9.2"
30
30
  },
31
31
  "devDependencies": {
32
32
  "react": "18.3.1",