@vitessce/vega 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.
- package/dist/index.js +27 -31
- 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(
|
|
41808
|
-
|
|
41809
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
41896
|
-
{
|
|
41897
|
-
|
|
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(
|
|
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
|
|
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
|
|
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" :
|
|
41967
|
+
display: !open && keepMounted && !transition ? "none" : void 0,
|
|
41972
41968
|
...style2
|
|
41973
41969
|
}, children: typeof children2 === "function" ? children2(childProps) : children2 }) });
|
|
41974
41970
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/vega",
|
|
3
|
-
"version": "3.9.
|
|
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.
|
|
25
|
-
"@vitessce/tooltip": "3.9.
|
|
26
|
-
"@vitessce/legend": "3.9.
|
|
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",
|