@vitessce/statistical-plots 3.3.1 → 3.3.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 +12 -0
- package/dist-tsc/CellSetExpressionPlotSubscriber.d.ts.map +1 -1
- package/dist-tsc/CellSetExpressionPlotSubscriber.js +2 -2
- package/dist-tsc/CellSetSizesPlotSubscriber.d.ts.map +1 -1
- package/dist-tsc/CellSetSizesPlotSubscriber.js +2 -2
- package/dist-tsc/ExpressionHistogramSubscriber.d.ts.map +1 -1
- package/dist-tsc/ExpressionHistogramSubscriber.js +2 -2
- package/package.json +6 -6
- package/src/CellSetExpressionPlotSubscriber.js +4 -0
- package/src/CellSetSizesPlotSubscriber.js +4 -0
- package/src/ExpressionHistogramSubscriber.js +4 -0
package/dist/index.js
CHANGED
@@ -86157,6 +86157,8 @@ function CellSetExpressionPlotSubscriber(props) {
|
|
86157
86157
|
var _a;
|
86158
86158
|
const {
|
86159
86159
|
coordinationScopes,
|
86160
|
+
closeButtonVisible,
|
86161
|
+
downloadButtonVisible,
|
86160
86162
|
removeGridComponent,
|
86161
86163
|
theme
|
86162
86164
|
} = props;
|
@@ -86242,6 +86244,8 @@ function CellSetExpressionPlotSubscriber(props) {
|
|
86242
86244
|
TitleInfo,
|
86243
86245
|
{
|
86244
86246
|
title: `Expression by ${capitalize$2(obsType)} Set${firstGeneSelected ? ` (${firstGeneSelected})` : ""}`,
|
86247
|
+
closeButtonVisible,
|
86248
|
+
downloadButtonVisible,
|
86245
86249
|
removeGridComponent,
|
86246
86250
|
urls,
|
86247
86251
|
theme,
|
@@ -86415,6 +86419,8 @@ function CellSetSizesPlot(props) {
|
|
86415
86419
|
function CellSetSizesPlotSubscriber(props) {
|
86416
86420
|
const {
|
86417
86421
|
coordinationScopes,
|
86422
|
+
closeButtonVisible,
|
86423
|
+
downloadButtonVisible,
|
86418
86424
|
removeGridComponent,
|
86419
86425
|
theme,
|
86420
86426
|
title: titleOverride
|
@@ -86500,6 +86506,8 @@ function CellSetSizesPlotSubscriber(props) {
|
|
86500
86506
|
TitleInfo,
|
86501
86507
|
{
|
86502
86508
|
title: title2,
|
86509
|
+
closeButtonVisible,
|
86510
|
+
downloadButtonVisible,
|
86503
86511
|
removeGridComponent,
|
86504
86512
|
urls,
|
86505
86513
|
theme,
|
@@ -86592,6 +86600,8 @@ function ExpressionHistogram(props) {
|
|
86592
86600
|
function ExpressionHistogramSubscriber(props) {
|
86593
86601
|
const {
|
86594
86602
|
coordinationScopes,
|
86603
|
+
closeButtonVisible,
|
86604
|
+
downloadButtonVisible,
|
86595
86605
|
removeGridComponent,
|
86596
86606
|
theme
|
86597
86607
|
} = props;
|
@@ -86690,6 +86700,8 @@ function ExpressionHistogramSubscriber(props) {
|
|
86690
86700
|
TitleInfo,
|
86691
86701
|
{
|
86692
86702
|
title: `Expression Histogram${firstGeneSelected ? ` (${firstGeneSelected})` : ""}`,
|
86703
|
+
closeButtonVisible,
|
86704
|
+
downloadButtonVisible,
|
86693
86705
|
removeGridComponent,
|
86694
86706
|
urls,
|
86695
86707
|
theme,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CellSetExpressionPlotSubscriber.d.ts","sourceRoot":"","sources":["../src/CellSetExpressionPlotSubscriber.js"],"names":[],"mappings":"AAiGA;;;;;;;;;GASG;AACH;IAL2B,mBAAmB;IACrB,kBAAkB,EAAhC,MAAM;IAEQ,KAAK,EAAnB,MAAM;
|
1
|
+
{"version":3,"file":"CellSetExpressionPlotSubscriber.d.ts","sourceRoot":"","sources":["../src/CellSetExpressionPlotSubscriber.js"],"names":[],"mappings":"AAiGA;;;;;;;;;GASG;AACH;IAL2B,mBAAmB;IACrB,kBAAkB,EAAhC,MAAM;IAEQ,KAAK,EAAnB,MAAM;gBA0HhB"}
|
@@ -77,7 +77,7 @@ function useExpressionByCellSet(expressionData, obsIndex, cellSets, additionalCe
|
|
77
77
|
* @param {string} props.theme The name of the current Vitessce theme.
|
78
78
|
*/
|
79
79
|
export function CellSetExpressionPlotSubscriber(props) {
|
80
|
-
const { coordinationScopes, removeGridComponent, theme, } = props;
|
80
|
+
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, } = props;
|
81
81
|
const classes = useStyles();
|
82
82
|
const loaders = useLoaders();
|
83
83
|
// Get "props" from the coordination space.
|
@@ -107,5 +107,5 @@ export function CellSetExpressionPlotSubscriber(props) {
|
|
107
107
|
? (featureLabelsMap?.get(geneSelection[0]) || geneSelection[0])
|
108
108
|
: null;
|
109
109
|
const selectedTransformName = transformOptions.find(o => o.value === featureValueTransform)?.name;
|
110
|
-
return (_jsx(TitleInfo, { title: `Expression by ${capitalize(obsType)} Set${(firstGeneSelected ? ` (${firstGeneSelected})` : '')}`, removeGridComponent: removeGridComponent, urls: urls, theme: theme, isReady: isReady, options: (_jsx(CellSetExpressionPlotOptions, { featureValueTransform: featureValueTransform, setFeatureValueTransform: setFeatureValueTransform, featureValueTransformCoefficient: featureValueTransformCoefficient, setFeatureValueTransformCoefficient: setFeatureValueTransformCoefficient, transformOptions: transformOptions })), children: _jsx("div", { ref: containerRef, className: classes.vegaContainer, children: expressionArr ? (_jsx(CellSetExpressionPlot, { domainMax: expressionMax, colors: setArr, data: expressionArr, theme: theme, width: width, height: height, obsType: obsType, featureValueType: featureValueType, featureValueTransformName: selectedTransformName })) : (_jsxs("span", { children: ["Select a ", featureType, "."] })) }) }));
|
110
|
+
return (_jsx(TitleInfo, { title: `Expression by ${capitalize(obsType)} Set${(firstGeneSelected ? ` (${firstGeneSelected})` : '')}`, closeButtonVisible: closeButtonVisible, downloadButtonVisible: downloadButtonVisible, removeGridComponent: removeGridComponent, urls: urls, theme: theme, isReady: isReady, options: (_jsx(CellSetExpressionPlotOptions, { featureValueTransform: featureValueTransform, setFeatureValueTransform: setFeatureValueTransform, featureValueTransformCoefficient: featureValueTransformCoefficient, setFeatureValueTransformCoefficient: setFeatureValueTransformCoefficient, transformOptions: transformOptions })), children: _jsx("div", { ref: containerRef, className: classes.vegaContainer, children: expressionArr ? (_jsx(CellSetExpressionPlot, { domainMax: expressionMax, colors: setArr, data: expressionArr, theme: theme, width: width, height: height, obsType: obsType, featureValueType: featureValueType, featureValueTransformName: selectedTransformName })) : (_jsxs("span", { children: ["Select a ", featureType, "."] })) }) }));
|
111
111
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CellSetSizesPlotSubscriber.d.ts","sourceRoot":"","sources":["../src/CellSetSizesPlotSubscriber.js"],"names":[],"mappings":"AAgBA;;;;;;;;;;GAUG;AACH;IAN2B,mBAAmB;IACnB,OAAO;IAET,KAAK,EAAnB,MAAM;IACQ,KAAK,EAAnB,MAAM;
|
1
|
+
{"version":3,"file":"CellSetSizesPlotSubscriber.d.ts","sourceRoot":"","sources":["../src/CellSetSizesPlotSubscriber.js"],"names":[],"mappings":"AAgBA;;;;;;;;;;GAUG;AACH;IAN2B,mBAAmB;IACnB,OAAO;IAET,KAAK,EAAnB,MAAM;IACQ,KAAK,EAAnB,MAAM;gBA+HhB"}
|
@@ -19,7 +19,7 @@ import { useStyles } from './styles.js';
|
|
19
19
|
* @param {string} props.title The component title.
|
20
20
|
*/
|
21
21
|
export function CellSetSizesPlotSubscriber(props) {
|
22
|
-
const { coordinationScopes, removeGridComponent, theme, title: titleOverride, } = props;
|
22
|
+
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, title: titleOverride, } = props;
|
23
23
|
const classes = useStyles();
|
24
24
|
const loaders = useLoaders();
|
25
25
|
// Get "props" from the coordination space.
|
@@ -71,5 +71,5 @@ export function CellSetSizesPlotSubscriber(props) {
|
|
71
71
|
setCellSetSelection([...cellSetSelection, setNamePath]);
|
72
72
|
}
|
73
73
|
};
|
74
|
-
return (_jsx(TitleInfo, { title: title, removeGridComponent: removeGridComponent, urls: urls, theme: theme, isReady: isReady, children: _jsx("div", { ref: containerRef, className: classes.vegaContainer, children: _jsx(CellSetSizesPlot, { data: data, onBarSelect: onBarSelect, theme: theme, width: width, height: height, obsType: obsType }) }) }));
|
74
|
+
return (_jsx(TitleInfo, { title: title, closeButtonVisible: closeButtonVisible, downloadButtonVisible: downloadButtonVisible, removeGridComponent: removeGridComponent, urls: urls, theme: theme, isReady: isReady, children: _jsx("div", { ref: containerRef, className: classes.vegaContainer, children: _jsx(CellSetSizesPlot, { data: data, onBarSelect: onBarSelect, theme: theme, width: width, height: height, obsType: obsType }) }) }));
|
75
75
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ExpressionHistogramSubscriber.d.ts","sourceRoot":"","sources":["../src/ExpressionHistogramSubscriber.js"],"names":[],"mappings":"AAcA;;;;;;;;;GASG;AACH;IAL2B,mBAAmB;IACrB,kBAAkB,EAAhC,MAAM;IAEQ,KAAK,EAAnB,MAAM;
|
1
|
+
{"version":3,"file":"ExpressionHistogramSubscriber.d.ts","sourceRoot":"","sources":["../src/ExpressionHistogramSubscriber.js"],"names":[],"mappings":"AAcA;;;;;;;;;GASG;AACH;IAL2B,mBAAmB;IACrB,kBAAkB,EAAhC,MAAM;IAEQ,KAAK,EAAnB,MAAM;gBAyHhB"}
|
@@ -17,7 +17,7 @@ import { useStyles } from './styles.js';
|
|
17
17
|
* @param {string} props.theme The name of the current Vitessce theme.
|
18
18
|
*/
|
19
19
|
export function ExpressionHistogramSubscriber(props) {
|
20
|
-
const { coordinationScopes, removeGridComponent, theme, } = props;
|
20
|
+
const { coordinationScopes, closeButtonVisible, downloadButtonVisible, removeGridComponent, theme, } = props;
|
21
21
|
const classes = useStyles();
|
22
22
|
const loaders = useLoaders();
|
23
23
|
// Get "props" from the coordination space.
|
@@ -68,5 +68,5 @@ export function ExpressionHistogramSubscriber(props) {
|
|
68
68
|
}, [additionalCellSets, cellSetColor, data, setAdditionalCellSets,
|
69
69
|
setCellColorEncoding, setCellSetColor, setCellSetSelection, firstGeneSelected,
|
70
70
|
]);
|
71
|
-
return (_jsx(TitleInfo, { title: `Expression Histogram${(firstGeneSelected ? ` (${firstGeneSelected})` : '')}`, removeGridComponent: removeGridComponent, urls: urls, theme: theme, isReady: isReady, children: _jsx("div", { ref: containerRef, className: classes.vegaContainer, children: _jsx(ExpressionHistogram, { geneSelection: geneSelection, onSelect: onSelect, data: data, theme: theme, width: width, height: height }) }) }));
|
71
|
+
return (_jsx(TitleInfo, { title: `Expression Histogram${(firstGeneSelected ? ` (${firstGeneSelected})` : '')}`, closeButtonVisible: closeButtonVisible, downloadButtonVisible: downloadButtonVisible, removeGridComponent: removeGridComponent, urls: urls, theme: theme, isReady: isReady, children: _jsx("div", { ref: containerRef, className: classes.vegaContainer, children: _jsx(ExpressionHistogram, { geneSelection: geneSelection, onSelect: onSelect, data: data, theme: theme, width: width, height: height }) }) }));
|
72
72
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitessce/statistical-plots",
|
3
|
-
"version": "3.3.
|
3
|
+
"version": "3.3.2",
|
4
4
|
"author": "Gehlenborg Lab",
|
5
5
|
"homepage": "http://vitessce.io",
|
6
6
|
"repository": {
|
@@ -20,11 +20,11 @@
|
|
20
20
|
"d3-array": "^2.4.0",
|
21
21
|
"lodash-es": "^4.17.21",
|
22
22
|
"react-aria": "^3.28.0",
|
23
|
-
"@vitessce/constants-internal": "3.3.
|
24
|
-
"@vitessce/
|
25
|
-
"@vitessce/utils": "3.3.
|
26
|
-
"@vitessce/
|
27
|
-
"@vitessce/
|
23
|
+
"@vitessce/constants-internal": "3.3.2",
|
24
|
+
"@vitessce/vega": "3.3.2",
|
25
|
+
"@vitessce/utils": "3.3.2",
|
26
|
+
"@vitessce/vit-s": "3.3.2",
|
27
|
+
"@vitessce/sets-utils": "3.3.2"
|
28
28
|
},
|
29
29
|
"devDependencies": {
|
30
30
|
"react": "^18.0.0",
|
@@ -108,6 +108,8 @@ function useExpressionByCellSet(
|
|
108
108
|
export function CellSetExpressionPlotSubscriber(props) {
|
109
109
|
const {
|
110
110
|
coordinationScopes,
|
111
|
+
closeButtonVisible,
|
112
|
+
downloadButtonVisible,
|
111
113
|
removeGridComponent,
|
112
114
|
theme,
|
113
115
|
} = props;
|
@@ -188,6 +190,8 @@ export function CellSetExpressionPlotSubscriber(props) {
|
|
188
190
|
return (
|
189
191
|
<TitleInfo
|
190
192
|
title={`Expression by ${capitalize(obsType)} Set${(firstGeneSelected ? ` (${firstGeneSelected})` : '')}`}
|
193
|
+
closeButtonVisible={closeButtonVisible}
|
194
|
+
downloadButtonVisible={downloadButtonVisible}
|
191
195
|
removeGridComponent={removeGridComponent}
|
192
196
|
urls={urls}
|
193
197
|
theme={theme}
|
@@ -28,6 +28,8 @@ import { useStyles } from './styles.js';
|
|
28
28
|
export function CellSetSizesPlotSubscriber(props) {
|
29
29
|
const {
|
30
30
|
coordinationScopes,
|
31
|
+
closeButtonVisible,
|
32
|
+
downloadButtonVisible,
|
31
33
|
removeGridComponent,
|
32
34
|
theme,
|
33
35
|
title: titleOverride,
|
@@ -129,6 +131,8 @@ export function CellSetSizesPlotSubscriber(props) {
|
|
129
131
|
return (
|
130
132
|
<TitleInfo
|
131
133
|
title={title}
|
134
|
+
closeButtonVisible={closeButtonVisible}
|
135
|
+
downloadButtonVisible={downloadButtonVisible}
|
132
136
|
removeGridComponent={removeGridComponent}
|
133
137
|
urls={urls}
|
134
138
|
theme={theme}
|
@@ -25,6 +25,8 @@ import { useStyles } from './styles.js';
|
|
25
25
|
export function ExpressionHistogramSubscriber(props) {
|
26
26
|
const {
|
27
27
|
coordinationScopes,
|
28
|
+
closeButtonVisible,
|
29
|
+
downloadButtonVisible,
|
28
30
|
removeGridComponent,
|
29
31
|
theme,
|
30
32
|
} = props;
|
@@ -120,6 +122,8 @@ export function ExpressionHistogramSubscriber(props) {
|
|
120
122
|
return (
|
121
123
|
<TitleInfo
|
122
124
|
title={`Expression Histogram${(firstGeneSelected ? ` (${firstGeneSelected})` : '')}`}
|
125
|
+
closeButtonVisible={closeButtonVisible}
|
126
|
+
downloadButtonVisible={downloadButtonVisible}
|
123
127
|
removeGridComponent={removeGridComponent}
|
124
128
|
urls={urls}
|
125
129
|
theme={theme}
|