@vitessce/statistical-plots 3.2.0 → 3.2.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
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as React from "react";
|
2
|
-
import React__default, {
|
2
|
+
import React__default, { useContext, useState, useRef, useCallback, useEffect, useMemo, Suspense } from "react";
|
3
3
|
import { usePlotOptionsStyles, OptionsContainer, OptionSelect, useLoaders, useCoordination, useGridItemSize, useFeatureSelection, useFeatureLabelsData, useObsFeatureMatrixIndices, useObsSetsData, useReady, useUrls, TitleInfo, useObsFeatureMatrixData } from "@vitessce/vit-s";
|
4
4
|
import * as ReactDOM from "react-dom";
|
5
5
|
import ReactDOM__default from "react-dom";
|
@@ -17505,6 +17505,150 @@ function interpolateSequentialMulti(range2) {
|
|
17505
17505
|
}
|
17506
17506
|
interpolateRgbBasis(schemeRdBu);
|
17507
17507
|
interpolateSequentialMulti(schemePlasma);
|
17508
|
+
const $b5e257d569688ac6$var$defaultContext = {
|
17509
|
+
prefix: String(Math.round(Math.random() * 1e10)),
|
17510
|
+
current: 0
|
17511
|
+
};
|
17512
|
+
const $b5e257d569688ac6$var$SSRContext = /* @__PURE__ */ React__default.createContext($b5e257d569688ac6$var$defaultContext);
|
17513
|
+
const $b5e257d569688ac6$var$IsSSRContext = /* @__PURE__ */ React__default.createContext(false);
|
17514
|
+
let $b5e257d569688ac6$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
|
17515
|
+
let $b5e257d569688ac6$var$componentIds = /* @__PURE__ */ new WeakMap();
|
17516
|
+
function $b5e257d569688ac6$var$useCounter(isDisabled = false) {
|
17517
|
+
let ctx = useContext($b5e257d569688ac6$var$SSRContext);
|
17518
|
+
let ref2 = useRef(null);
|
17519
|
+
if (ref2.current === null && !isDisabled) {
|
17520
|
+
var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner;
|
17521
|
+
let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = React__default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === void 0 ? void 0 : (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === void 0 ? void 0 : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;
|
17522
|
+
if (currentOwner) {
|
17523
|
+
let prevComponentValue = $b5e257d569688ac6$var$componentIds.get(currentOwner);
|
17524
|
+
if (prevComponentValue == null)
|
17525
|
+
$b5e257d569688ac6$var$componentIds.set(currentOwner, {
|
17526
|
+
id: ctx.current,
|
17527
|
+
state: currentOwner.memoizedState
|
17528
|
+
});
|
17529
|
+
else if (currentOwner.memoizedState !== prevComponentValue.state) {
|
17530
|
+
ctx.current = prevComponentValue.id;
|
17531
|
+
$b5e257d569688ac6$var$componentIds.delete(currentOwner);
|
17532
|
+
}
|
17533
|
+
}
|
17534
|
+
ref2.current = ++ctx.current;
|
17535
|
+
}
|
17536
|
+
return ref2.current;
|
17537
|
+
}
|
17538
|
+
function $b5e257d569688ac6$var$useLegacySSRSafeId(defaultId2) {
|
17539
|
+
let ctx = useContext($b5e257d569688ac6$var$SSRContext);
|
17540
|
+
if (ctx === $b5e257d569688ac6$var$defaultContext && !$b5e257d569688ac6$var$canUseDOM)
|
17541
|
+
console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
17542
|
+
let counter = $b5e257d569688ac6$var$useCounter(!!defaultId2);
|
17543
|
+
let prefix2 = ctx === $b5e257d569688ac6$var$defaultContext && false ? "react-aria" : `react-aria${ctx.prefix}`;
|
17544
|
+
return defaultId2 || `${prefix2}-${counter}`;
|
17545
|
+
}
|
17546
|
+
function $b5e257d569688ac6$var$useModernSSRSafeId(defaultId2) {
|
17547
|
+
let id2 = React__default.useId();
|
17548
|
+
let [didSSR] = useState($b5e257d569688ac6$export$535bd6ca7f90a273());
|
17549
|
+
let prefix2 = didSSR || false ? "react-aria" : `react-aria${$b5e257d569688ac6$var$defaultContext.prefix}`;
|
17550
|
+
return defaultId2 || `${prefix2}-${id2}`;
|
17551
|
+
}
|
17552
|
+
const $b5e257d569688ac6$export$619500959fc48b26 = typeof React__default["useId"] === "function" ? $b5e257d569688ac6$var$useModernSSRSafeId : $b5e257d569688ac6$var$useLegacySSRSafeId;
|
17553
|
+
function $b5e257d569688ac6$var$getSnapshot() {
|
17554
|
+
return false;
|
17555
|
+
}
|
17556
|
+
function $b5e257d569688ac6$var$getServerSnapshot() {
|
17557
|
+
return true;
|
17558
|
+
}
|
17559
|
+
function $b5e257d569688ac6$var$subscribe(onStoreChange) {
|
17560
|
+
return () => {
|
17561
|
+
};
|
17562
|
+
}
|
17563
|
+
function $b5e257d569688ac6$export$535bd6ca7f90a273() {
|
17564
|
+
if (typeof React__default["useSyncExternalStore"] === "function")
|
17565
|
+
return React__default["useSyncExternalStore"]($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot);
|
17566
|
+
return useContext($b5e257d569688ac6$var$IsSSRContext);
|
17567
|
+
}
|
17568
|
+
function r(e3) {
|
17569
|
+
var t4, f, n = "";
|
17570
|
+
if ("string" == typeof e3 || "number" == typeof e3)
|
17571
|
+
n += e3;
|
17572
|
+
else if ("object" == typeof e3)
|
17573
|
+
if (Array.isArray(e3))
|
17574
|
+
for (t4 = 0; t4 < e3.length; t4++)
|
17575
|
+
e3[t4] && (f = r(e3[t4])) && (n && (n += " "), n += f);
|
17576
|
+
else
|
17577
|
+
for (t4 in e3)
|
17578
|
+
e3[t4] && (n && (n += " "), n += t4);
|
17579
|
+
return n;
|
17580
|
+
}
|
17581
|
+
function clsx() {
|
17582
|
+
for (var e3, t4, f = 0, n = ""; f < arguments.length; )
|
17583
|
+
(e3 = arguments[f++]) && (t4 = r(e3)) && (n && (n += " "), n += t4);
|
17584
|
+
return n;
|
17585
|
+
}
|
17586
|
+
const $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c = typeof document !== "undefined" ? React__default.useLayoutEffect : () => {
|
17587
|
+
};
|
17588
|
+
let $bdb11010cef70236$var$idsUpdaterMap = /* @__PURE__ */ new Map();
|
17589
|
+
function $bdb11010cef70236$export$f680877a34711e37(defaultId2) {
|
17590
|
+
let [value2, setValue] = useState(defaultId2);
|
17591
|
+
let nextId = useRef(null);
|
17592
|
+
let res = $b5e257d569688ac6$export$619500959fc48b26(value2);
|
17593
|
+
let updateValue = useCallback((val) => {
|
17594
|
+
nextId.current = val;
|
17595
|
+
}, []);
|
17596
|
+
$bdb11010cef70236$var$idsUpdaterMap.set(res, updateValue);
|
17597
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
17598
|
+
let r3 = res;
|
17599
|
+
return () => {
|
17600
|
+
$bdb11010cef70236$var$idsUpdaterMap.delete(r3);
|
17601
|
+
};
|
17602
|
+
}, [
|
17603
|
+
res
|
17604
|
+
]);
|
17605
|
+
useEffect(() => {
|
17606
|
+
let newId = nextId.current;
|
17607
|
+
if (newId) {
|
17608
|
+
nextId.current = null;
|
17609
|
+
setValue(newId);
|
17610
|
+
}
|
17611
|
+
});
|
17612
|
+
return res;
|
17613
|
+
}
|
17614
|
+
let $bbed8b41f857bcc0$var$transitionsByElement = /* @__PURE__ */ new Map();
|
17615
|
+
let $bbed8b41f857bcc0$var$transitionCallbacks = /* @__PURE__ */ new Set();
|
17616
|
+
function $bbed8b41f857bcc0$var$setupGlobalEvents() {
|
17617
|
+
if (typeof window === "undefined")
|
17618
|
+
return;
|
17619
|
+
let onTransitionStart = (e3) => {
|
17620
|
+
let transitions2 = $bbed8b41f857bcc0$var$transitionsByElement.get(e3.target);
|
17621
|
+
if (!transitions2) {
|
17622
|
+
transitions2 = /* @__PURE__ */ new Set();
|
17623
|
+
$bbed8b41f857bcc0$var$transitionsByElement.set(e3.target, transitions2);
|
17624
|
+
e3.target.addEventListener("transitioncancel", onTransitionEnd);
|
17625
|
+
}
|
17626
|
+
transitions2.add(e3.propertyName);
|
17627
|
+
};
|
17628
|
+
let onTransitionEnd = (e3) => {
|
17629
|
+
let properties = $bbed8b41f857bcc0$var$transitionsByElement.get(e3.target);
|
17630
|
+
if (!properties)
|
17631
|
+
return;
|
17632
|
+
properties.delete(e3.propertyName);
|
17633
|
+
if (properties.size === 0) {
|
17634
|
+
e3.target.removeEventListener("transitioncancel", onTransitionEnd);
|
17635
|
+
$bbed8b41f857bcc0$var$transitionsByElement.delete(e3.target);
|
17636
|
+
}
|
17637
|
+
if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) {
|
17638
|
+
for (let cb of $bbed8b41f857bcc0$var$transitionCallbacks)
|
17639
|
+
cb();
|
17640
|
+
$bbed8b41f857bcc0$var$transitionCallbacks.clear();
|
17641
|
+
}
|
17642
|
+
};
|
17643
|
+
document.body.addEventListener("transitionrun", onTransitionStart);
|
17644
|
+
document.body.addEventListener("transitionend", onTransitionEnd);
|
17645
|
+
}
|
17646
|
+
if (typeof document !== "undefined") {
|
17647
|
+
if (document.readyState !== "loading")
|
17648
|
+
$bbed8b41f857bcc0$var$setupGlobalEvents();
|
17649
|
+
else
|
17650
|
+
document.addEventListener("DOMContentLoaded", $bbed8b41f857bcc0$var$setupGlobalEvents);
|
17651
|
+
}
|
17508
17652
|
var common = {
|
17509
17653
|
black: "#000",
|
17510
17654
|
white: "#fff"
|
@@ -22553,24 +22697,6 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
22553
22697
|
});
|
22554
22698
|
return Constructor;
|
22555
22699
|
}
|
22556
|
-
function r(e3) {
|
22557
|
-
var t4, f, n = "";
|
22558
|
-
if ("string" == typeof e3 || "number" == typeof e3)
|
22559
|
-
n += e3;
|
22560
|
-
else if ("object" == typeof e3)
|
22561
|
-
if (Array.isArray(e3))
|
22562
|
-
for (t4 = 0; t4 < e3.length; t4++)
|
22563
|
-
e3[t4] && (f = r(e3[t4])) && (n && (n += " "), n += f);
|
22564
|
-
else
|
22565
|
-
for (t4 in e3)
|
22566
|
-
e3[t4] && (n && (n += " "), n += t4);
|
22567
|
-
return n;
|
22568
|
-
}
|
22569
|
-
function clsx() {
|
22570
|
-
for (var e3, t4, f = 0, n = ""; f < arguments.length; )
|
22571
|
-
(e3 = arguments[f++]) && (t4 = r(e3)) && (n && (n += " "), n += t4);
|
22572
|
-
return n;
|
22573
|
-
}
|
22574
22700
|
var reactIs = reactIsExports$1;
|
22575
22701
|
var REACT_STATICS = {
|
22576
22702
|
childContextTypes: true,
|
@@ -28972,7 +29098,7 @@ function CellSetExpressionPlotOptions(props) {
|
|
28972
29098
|
setFeatureValueTransformCoefficient,
|
28973
29099
|
transformOptions
|
28974
29100
|
} = props;
|
28975
|
-
const cellSetExpressionPlotOptionsId =
|
29101
|
+
const cellSetExpressionPlotOptionsId = $bdb11010cef70236$export$f680877a34711e37();
|
28976
29102
|
const classes = usePlotOptionsStyles();
|
28977
29103
|
const handleTransformChange = (event2) => {
|
28978
29104
|
setFeatureValueTransform(event2.target.value === "" ? null : event2.target.value);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CellSetExpressionPlotOptions.d.ts","sourceRoot":"","sources":["../src/CellSetExpressionPlotOptions.js"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"CellSetExpressionPlotOptions.d.ts","sourceRoot":"","sources":["../src/CellSetExpressionPlotOptions.js"],"names":[],"mappings":"AAKA,8EAiFC"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import React
|
2
|
+
import React from 'react';
|
3
|
+
import { useId } from 'react-aria';
|
3
4
|
import { TableCell, TableRow, TextField } from '@material-ui/core';
|
4
5
|
import { usePlotOptionsStyles, OptionsContainer, OptionSelect } from '@vitessce/vit-s';
|
5
6
|
export default function CellSetExpressionPlotOptions(props) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitessce/statistical-plots",
|
3
|
-
"version": "3.2.
|
3
|
+
"version": "3.2.2",
|
4
4
|
"author": "Gehlenborg Lab",
|
5
5
|
"homepage": "http://vitessce.io",
|
6
6
|
"repository": {
|
@@ -19,11 +19,12 @@
|
|
19
19
|
"@material-ui/core": "~4.12.3",
|
20
20
|
"d3-array": "^2.4.0",
|
21
21
|
"lodash-es": "^4.17.21",
|
22
|
-
"
|
23
|
-
"@vitessce/utils": "3.2.
|
24
|
-
"@vitessce/
|
25
|
-
"@vitessce/
|
26
|
-
"@vitessce/
|
22
|
+
"react-aria": "^3.28.0",
|
23
|
+
"@vitessce/sets-utils": "3.2.2",
|
24
|
+
"@vitessce/utils": "3.2.2",
|
25
|
+
"@vitessce/constants-internal": "3.2.2",
|
26
|
+
"@vitessce/vega": "3.2.2",
|
27
|
+
"@vitessce/vit-s": "3.2.2"
|
27
28
|
},
|
28
29
|
"devDependencies": {
|
29
30
|
"react": "^18.0.0",
|