@vitessce/vega 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.
Files changed (2) hide show
  1. package/dist/index.js +30 -32
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -41804,21 +41804,20 @@ Popper.Utils = (typeof window !== "undefined" ? window : global).PopperUtils;
41804
41804
  Popper.placements = placements;
41805
41805
  Popper.Defaults = Defaults;
41806
41806
  function createChainedFunction(...funcs) {
41807
- return funcs.reduce((acc, func) => {
41808
- if (func == null) {
41809
- return acc;
41810
- }
41811
- {
41812
- if (typeof func !== "function") {
41813
- console.error("Material-UI: Invalid Argument Type, must only provide functions, undefined, or null.");
41807
+ return funcs.reduce(
41808
+ (acc, func) => {
41809
+ if (func == null) {
41810
+ return acc;
41814
41811
  }
41812
+ return function chainedFunction(...args) {
41813
+ acc.apply(this, args);
41814
+ func.apply(this, args);
41815
+ };
41816
+ },
41817
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
41818
+ () => {
41815
41819
  }
41816
- return function chainedFunction(...args) {
41817
- acc.apply(this, args);
41818
- func.apply(this, args);
41819
- };
41820
- }, () => {
41821
- });
41820
+ );
41822
41821
  }
41823
41822
  function setRef(ref2, value2) {
41824
41823
  if (typeof ref2 === "function") {
@@ -41857,7 +41856,7 @@ function flipPlacement(placement, theme) {
41857
41856
  }
41858
41857
  }
41859
41858
  function getAnchorEl(anchorEl) {
41860
- return typeof anchorEl === "function" ? anchorEl() : anchorEl;
41859
+ return typeof anchorEl === "function" ? anchorEl(document.body) : anchorEl;
41861
41860
  }
41862
41861
  const useEnhancedEffect = typeof window !== "undefined" ? React$1.useLayoutEffect : React$1.useEffect;
41863
41862
  const defaultPopperOptions = {};
@@ -41887,25 +41886,18 @@ React$1.forwardRef((props, ref2) => {
41887
41886
  }
41888
41887
  if (popperRef.current) {
41889
41888
  popperRef.current.destroy();
41890
- handlePopperRefRef.current(null);
41889
+ if (handlePopperRefRef.current) {
41890
+ setRef(handlePopperRefRef.current, null);
41891
+ }
41891
41892
  }
41892
41893
  const handlePopperUpdate = (data2) => {
41893
41894
  setPlacement(data2.placement);
41894
41895
  };
41895
- const resolvedAnchorEl = getAnchorEl(anchorEl);
41896
- {
41897
- if (resolvedAnchorEl && resolvedAnchorEl.nodeType === 1) {
41898
- const box = resolvedAnchorEl.getBoundingClientRect();
41899
- if (box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
41900
- console.warn([
41901
- "Material-UI: The `anchorEl` prop provided to the component is invalid.",
41902
- "The anchor element should be part of the document layout.",
41903
- "Make sure the element is present in the document or that it's not display none."
41904
- ].join("\n"));
41905
- }
41906
- }
41896
+ const anchorElement = getAnchorEl(anchorEl);
41897
+ if (!anchorElement) {
41898
+ return;
41907
41899
  }
41908
- const popper = new Popper(getAnchorEl(anchorEl), tooltipRef.current, {
41900
+ const popper = new Popper(anchorElement, tooltipRef.current, {
41909
41901
  placement: rtlPlacement,
41910
41902
  ...popperOptions,
41911
41903
  modifiers: {
@@ -41923,7 +41915,9 @@ React$1.forwardRef((props, ref2) => {
41923
41915
  onCreate: createChainedFunction(handlePopperUpdate, popperOptions.onCreate),
41924
41916
  onUpdate: createChainedFunction(handlePopperUpdate, popperOptions.onUpdate)
41925
41917
  });
41926
- handlePopperRefRef.current(popper);
41918
+ if (handlePopperRefRef.current) {
41919
+ setRef(handlePopperRefRef.current, popper);
41920
+ }
41927
41921
  }, [anchorEl, disablePortal, modifiers2, open, rtlPlacement, popperOptions]);
41928
41922
  const handleRef = React$1.useCallback((node2) => {
41929
41923
  setRef(ownRef, node2);
@@ -41937,7 +41931,9 @@ React$1.forwardRef((props, ref2) => {
41937
41931
  return;
41938
41932
  }
41939
41933
  popperRef.current.destroy();
41940
- handlePopperRefRef.current(null);
41934
+ if (handlePopperRefRef.current) {
41935
+ setRef(handlePopperRefRef.current, null);
41936
+ }
41941
41937
  };
41942
41938
  const handleExited = () => {
41943
41939
  setExited(true);
@@ -41968,7 +41964,7 @@ React$1.forwardRef((props, ref2) => {
41968
41964
  // Fix Popper.js display issue
41969
41965
  top: 0,
41970
41966
  left: 0,
41971
- display: !open && keepMounted && !transition ? "none" : null,
41967
+ display: !open && keepMounted && !transition ? "none" : void 0,
41972
41968
  ...style2
41973
41969
  }, children: typeof children2 === "function" ? children2(childProps) : children2 }) });
41974
41970
  });
@@ -52299,7 +52295,9 @@ const obsSegmentationsSpatialdataSchema = z.object({
52299
52295
  const obsPointsSpatialdataSchema = z.object({
52300
52296
  path: z.string().describe("The path to the point data."),
52301
52297
  tablePath: z.string().optional().describe("The path to a table which annotates the points. If available but not specified, the spot identifiers may not be aligned with associated tabular data as expected."),
52302
- coordinateSystem: z.string().optional().describe('The name of a coordinate transformation output used to transform the image. If not provided, the "global" coordinate system is assumed.')
52298
+ coordinateSystem: z.string().optional().describe('The name of a coordinate transformation output used to transform the image. If not provided, the "global" coordinate system is assumed.'),
52299
+ featureIndexColumn: z.string().optional().describe("The name of the column in the table which contains the feature (e.g., gene) indices associated with each point (aligned with the table var.index dataframe column)."),
52300
+ mortonCodeColumn: z.string().optional().describe('The name of the column in the table which contains the Morton codes for each point, used for efficient spatial querying. If not provided, Vitessce will assume the default column name "morton_code_2d".')
52303
52301
  });
52304
52302
  z.object({
52305
52303
  path: z.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitessce/vega",
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,9 +21,9 @@
21
21
  "vega": "^5.21.0",
22
22
  "vega-lite": "^5.1.1",
23
23
  "vega-tooltip": "^0.27.0",
24
- "@vitessce/styles": "3.9.0",
25
- "@vitessce/tooltip": "3.9.0",
26
- "@vitessce/legend": "3.9.0"
24
+ "@vitessce/styles": "3.9.2",
25
+ "@vitessce/tooltip": "3.9.2",
26
+ "@vitessce/legend": "3.9.2"
27
27
  },
28
28
  "devDependencies": {
29
29
  "react": "18.3.1",