@vitessce/vit-s 3.9.1 → 3.9.3
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 +906 -144
- package/dist-tsc/DebugWindow.d.ts +1 -1
- package/dist-tsc/DebugWindow.d.ts.map +1 -1
- package/dist-tsc/TitleInfo.d.ts.map +1 -1
- package/dist-tsc/TitleInfo.js +4 -2
- package/dist-tsc/Warning.d.ts +1 -1
- package/dist-tsc/Warning.d.ts.map +1 -1
- package/dist-tsc/shared-mui/container.js +1 -1
- package/dist-tsc/shared-mui/styles.js +4 -1
- package/dist-tsc/title-styles.d.ts.map +1 -1
- package/dist-tsc/title-styles.js +19 -9
- package/package.json +15 -15
- package/src/TitleInfo.js +7 -3
- package/src/shared-mui/container.js +1 -1
- package/src/shared-mui/styles.js +4 -1
- package/src/title-styles.js +19 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DebugWindow.d.ts","sourceRoot":"","sources":["../src/DebugWindow.js"],"names":[],"mappings":"AAIA;;
|
|
1
|
+
{"version":3,"file":"DebugWindow.d.ts","sourceRoot":"","sources":["../src/DebugWindow.js"],"names":[],"mappings":"AAIA;;gCA8BC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TitleInfo.d.ts","sourceRoot":"","sources":["../src/TitleInfo.js"],"names":[],"mappings":"AAmNA,
|
|
1
|
+
{"version":3,"file":"TitleInfo.d.ts","sourceRoot":"","sources":["../src/TitleInfo.js"],"names":[],"mappings":"AAmNA,mDAwEC"}
|
package/dist-tsc/TitleInfo.js
CHANGED
|
@@ -102,15 +102,17 @@ export function TitleInfo(props) {
|
|
|
102
102
|
const { title, info, children, isScroll, isSpatial, removeGridComponent, urls, isReady, options, closeButtonVisible = true, downloadButtonVisible = true, helpText, withPadding = true, errors: errorsProp, } = props;
|
|
103
103
|
const errors = errorsProp?.filter(Boolean);
|
|
104
104
|
const { classes } = useTitleStyles();
|
|
105
|
+
const hasInfoText = Boolean(info);
|
|
105
106
|
return (
|
|
106
107
|
// d-flex without wrapping div is not always full height; I don't understand the root cause.
|
|
107
|
-
_jsxs(_Fragment, { children: [_jsxs("div", { className: classes.title, role: "banner", children: [_jsx("div", { className: classes.titleLeft, role: "heading", "aria-level": "1", children: title }),
|
|
108
|
+
_jsxs(_Fragment, { children: [_jsxs("div", { className: classes.title, role: "banner", children: [_jsx("div", { className: classes.titleLeft, role: "heading", "aria-level": "1", children: title }), _jsxs("div", { className: classes.titleButtons, role: "toolbar", "aria-label": "Plot options and controls", children: [_jsx(PlotOptions, { options: options }), downloadButtonVisible ? (_jsx(DownloadOptions, { urls: urls })) : null, Array.isArray(errors) && errors.length > 0 ? (_jsx(ErrorInfo, { errors: errors })) : null, helpText ? (_jsx(HelpButton, { helpText: helpText })) : null, closeButtonVisible && removeGridComponent ? (_jsx(ClosePaneButton, { removeGridComponent: removeGridComponent })) : null] })] }), _jsxs("div", { className: clsx(TOOLTIP_ANCESTOR, classes.card, {
|
|
108
109
|
[classes.scrollCard]: isScroll,
|
|
109
110
|
[classes.spatialCard]: isSpatial,
|
|
110
111
|
[classes.noScrollCard]: !isScroll && !isSpatial,
|
|
111
112
|
[classes.noPaddingCard]: !withPadding,
|
|
112
113
|
[classes.paddingCard]: withPadding,
|
|
113
|
-
|
|
114
|
+
[classes.cardWithoutInfoText]: !hasInfoText,
|
|
115
|
+
}), "aria-busy": !isReady, role: "main", children: [!isReady ? _jsx(LoadingIndicator, {}) : null, children] }), hasInfoText ? (_jsx("div", { className: classes.infoText, title: info, role: "note", children: info })) : null] })
|
|
114
116
|
// "pl-2" only matters when the window is very narrow.
|
|
115
117
|
);
|
|
116
118
|
}
|
package/dist-tsc/Warning.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function Warning(props: any): import("
|
|
1
|
+
export function Warning(props: any): import("react").JSX.Element;
|
|
2
2
|
//# sourceMappingURL=Warning.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Warning.d.ts","sourceRoot":"","sources":["../src/Warning.js"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"Warning.d.ts","sourceRoot":"","sources":["../src/Warning.js"],"names":[],"mappings":"AAIA,iEAoBC"}
|
|
@@ -96,7 +96,7 @@ const gridLayoutStyles = {
|
|
|
96
96
|
},
|
|
97
97
|
'.react-grid-item > .react-resizable-handle.react-resizable-handle-se': {
|
|
98
98
|
bottom: '0',
|
|
99
|
-
right: '
|
|
99
|
+
right: '10px',
|
|
100
100
|
cursor: 'se-resize',
|
|
101
101
|
},
|
|
102
102
|
'.react-grid-item > .react-resizable-handle.react-resizable-handle-nw': {
|
|
@@ -75,6 +75,7 @@ const lightPalette = {
|
|
|
75
75
|
gridLayoutBackground: '#FFFFFF',
|
|
76
76
|
paperBackground: '#FFFFFF',
|
|
77
77
|
cardBorder: 'rgba(241, 241, 241, 0.125)',
|
|
78
|
+
cardInfoBorder: '#ccc',
|
|
78
79
|
tooltipText: 'rgba(0, 0, 0, 0.87)',
|
|
79
80
|
};
|
|
80
81
|
export const muiTheme = {
|
|
@@ -100,6 +101,7 @@ export const muiTheme = {
|
|
|
100
101
|
gridLayoutBackground: '#333333',
|
|
101
102
|
paperBackground: '#2b2b2b',
|
|
102
103
|
cardBorder: 'rgba(0, 0, 0, 0.125)',
|
|
104
|
+
cardInfoBorder: '#222222',
|
|
103
105
|
tooltipText: '#FFFFFF',
|
|
104
106
|
...globalColors,
|
|
105
107
|
},
|
|
@@ -109,6 +111,7 @@ export const muiTheme = {
|
|
|
109
111
|
light: createTheme({
|
|
110
112
|
palette: {
|
|
111
113
|
...lightPalette,
|
|
114
|
+
cardInfoBorder: '#F1F1F1',
|
|
112
115
|
...globalColors,
|
|
113
116
|
},
|
|
114
117
|
...sharedThemeOptions,
|
|
@@ -126,6 +129,6 @@ export const muiTheme = {
|
|
|
126
129
|
...globalColors,
|
|
127
130
|
},
|
|
128
131
|
...sharedThemeOptions,
|
|
129
|
-
cardBorderSize: '
|
|
132
|
+
cardBorderSize: '1px',
|
|
130
133
|
}),
|
|
131
134
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title-styles.d.ts","sourceRoot":"","sources":["../src/title-styles.js"],"names":[],"mappings":"AAEA;;
|
|
1
|
+
{"version":3,"file":"title-styles.d.ts","sourceRoot":"","sources":["../src/title-styles.js"],"names":[],"mappings":"AAEA;;cAyBO,CAAC;;;kBAE+B,eACvC;gBAAyB,WAAU;eAAsB,WACpD;EAyDD"}
|
package/dist-tsc/title-styles.js
CHANGED
|
@@ -13,18 +13,23 @@ export const useTitleStyles = makeStyles()(theme => ({
|
|
|
13
13
|
textOverflow: 'ellipsis',
|
|
14
14
|
whiteSpace: 'nowrap',
|
|
15
15
|
},
|
|
16
|
-
|
|
16
|
+
infoText: {
|
|
17
|
+
color: theme.palette.primaryForeground,
|
|
17
18
|
width: '100%',
|
|
18
19
|
textOverflow: 'ellipsis',
|
|
19
20
|
whiteSpace: 'nowrap',
|
|
20
21
|
overflow: 'hidden',
|
|
21
|
-
fontSize: '
|
|
22
|
+
fontSize: '60% !important',
|
|
22
23
|
opacity: '.8',
|
|
23
|
-
padding: '0
|
|
24
|
+
padding: '0',
|
|
24
25
|
justifyContent: 'center',
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
textAlign: 'center !important',
|
|
27
|
+
borderTop: '0px',
|
|
28
|
+
borderBottom: `1px solid ${theme.palette.cardInfoBorder}`,
|
|
29
|
+
borderLeft: `1px solid ${theme.palette.cardInfoBorder}`,
|
|
30
|
+
borderRight: `1px solid ${theme.palette.cardInfoBorder}`,
|
|
31
|
+
borderBottomLeftRadius: '4px',
|
|
32
|
+
borderBottomRightRadius: '4px',
|
|
28
33
|
},
|
|
29
34
|
titleButtons: {
|
|
30
35
|
display: 'flex',
|
|
@@ -40,15 +45,20 @@ export const useTitleStyles = makeStyles()(theme => ({
|
|
|
40
45
|
border: `${theme.cardBorderSize} solid ${theme.palette.cardBorder}`,
|
|
41
46
|
flex: '1 1 auto',
|
|
42
47
|
minHeight: '1px',
|
|
43
|
-
marginTop: '
|
|
44
|
-
marginBottom: '
|
|
48
|
+
marginTop: '0',
|
|
49
|
+
marginBottom: '0',
|
|
45
50
|
position: 'relative',
|
|
46
51
|
display: 'flex',
|
|
47
52
|
flexDirection: 'column',
|
|
48
53
|
minWidth: '0',
|
|
49
54
|
wordWrap: 'break-word',
|
|
50
55
|
backgroundClip: 'border-box',
|
|
51
|
-
|
|
56
|
+
borderTopLeftRadius: '4px',
|
|
57
|
+
borderTopRightRadius: '4px',
|
|
58
|
+
},
|
|
59
|
+
cardWithoutInfoText: {
|
|
60
|
+
borderBottomLeftRadius: '4px',
|
|
61
|
+
borderBottomRightRadius: '4px',
|
|
52
62
|
},
|
|
53
63
|
paddingCard: {
|
|
54
64
|
padding: '12px',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/vit-s",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.3",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@tanstack/react-query": "^5.80.2",
|
|
20
|
-
"@zarrita/storage": "0.1.
|
|
20
|
+
"@zarrita/storage": "0.1.4",
|
|
21
21
|
"clsx": "^1.1.1",
|
|
22
22
|
"d3-array": "^2.4.0",
|
|
23
23
|
"fast-deep-equal": "^3.1.3",
|
|
@@ -30,18 +30,18 @@
|
|
|
30
30
|
"react-aria": "^3.28.0",
|
|
31
31
|
"react-error-boundary": "^5.0.0",
|
|
32
32
|
"@placemarkio/flat-drop-files": "^1.0.2",
|
|
33
|
-
"zarrita": "0.
|
|
34
|
-
"@vitessce/styles": "3.9.
|
|
35
|
-
"@vitessce/
|
|
36
|
-
"@vitessce/
|
|
37
|
-
"@vitessce/
|
|
38
|
-
"@vitessce/
|
|
39
|
-
"@vitessce/
|
|
40
|
-
"@vitessce/
|
|
41
|
-
"@vitessce/
|
|
42
|
-
"@vitessce/config": "3.9.
|
|
43
|
-
"@vitessce/
|
|
44
|
-
"@vitessce/
|
|
33
|
+
"zarrita": "0.6.1",
|
|
34
|
+
"@vitessce/styles": "3.9.3",
|
|
35
|
+
"@vitessce/abstract": "3.9.3",
|
|
36
|
+
"@vitessce/plugins": "3.9.3",
|
|
37
|
+
"@vitessce/error": "3.9.3",
|
|
38
|
+
"@vitessce/constants-internal": "3.9.3",
|
|
39
|
+
"@vitessce/schemas": "3.9.3",
|
|
40
|
+
"@vitessce/utils": "3.9.3",
|
|
41
|
+
"@vitessce/zarr-utils": "3.9.3",
|
|
42
|
+
"@vitessce/config": "3.9.3",
|
|
43
|
+
"@vitessce/globals": "3.9.3",
|
|
44
|
+
"@vitessce/sets-utils": "3.9.3"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@testing-library/jest-dom": "^6.6.3",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"react-dom": "18.3.1",
|
|
51
51
|
"vite": "^7.0.0",
|
|
52
52
|
"vitest": "^3.1.4",
|
|
53
|
-
"@vitessce/types": "3.9.
|
|
53
|
+
"@vitessce/types": "3.9.3"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
package/src/TitleInfo.js
CHANGED
|
@@ -219,6 +219,7 @@ export function TitleInfo(props) {
|
|
|
219
219
|
const errors = errorsProp?.filter(Boolean);
|
|
220
220
|
|
|
221
221
|
const { classes } = useTitleStyles();
|
|
222
|
+
const hasInfoText = Boolean(info);
|
|
222
223
|
|
|
223
224
|
return (
|
|
224
225
|
// d-flex without wrapping div is not always full height; I don't understand the root cause.
|
|
@@ -227,9 +228,6 @@ export function TitleInfo(props) {
|
|
|
227
228
|
<div className={classes.titleLeft} role="heading" aria-level="1">
|
|
228
229
|
{title}
|
|
229
230
|
</div>
|
|
230
|
-
<div className={classes.titleInfo} title={info} role="note">
|
|
231
|
-
{info}
|
|
232
|
-
</div>
|
|
233
231
|
<div className={classes.titleButtons} role="toolbar" aria-label="Plot options and controls">
|
|
234
232
|
<PlotOptions
|
|
235
233
|
options={options}
|
|
@@ -266,6 +264,7 @@ export function TitleInfo(props) {
|
|
|
266
264
|
[classes.noScrollCard]: !isScroll && !isSpatial,
|
|
267
265
|
[classes.noPaddingCard]: !withPadding,
|
|
268
266
|
[classes.paddingCard]: withPadding,
|
|
267
|
+
[classes.cardWithoutInfoText]: !hasInfoText,
|
|
269
268
|
},
|
|
270
269
|
)}
|
|
271
270
|
aria-busy={!isReady}
|
|
@@ -274,6 +273,11 @@ export function TitleInfo(props) {
|
|
|
274
273
|
{ !isReady ? <LoadingIndicator /> : null }
|
|
275
274
|
{children}
|
|
276
275
|
</div>
|
|
276
|
+
{hasInfoText ? (
|
|
277
|
+
<div className={classes.infoText} title={info} role="note">
|
|
278
|
+
{info}
|
|
279
|
+
</div>
|
|
280
|
+
) : null}
|
|
277
281
|
</>
|
|
278
282
|
// "pl-2" only matters when the window is very narrow.
|
|
279
283
|
);
|
|
@@ -97,7 +97,7 @@ const gridLayoutStyles = {
|
|
|
97
97
|
},
|
|
98
98
|
'.react-grid-item > .react-resizable-handle.react-resizable-handle-se': {
|
|
99
99
|
bottom: '0',
|
|
100
|
-
right: '
|
|
100
|
+
right: '10px',
|
|
101
101
|
cursor: 'se-resize',
|
|
102
102
|
},
|
|
103
103
|
'.react-grid-item > .react-resizable-handle.react-resizable-handle-nw': {
|
package/src/shared-mui/styles.js
CHANGED
|
@@ -78,6 +78,7 @@ const lightPalette = {
|
|
|
78
78
|
gridLayoutBackground: '#FFFFFF',
|
|
79
79
|
paperBackground: '#FFFFFF',
|
|
80
80
|
cardBorder: 'rgba(241, 241, 241, 0.125)',
|
|
81
|
+
cardInfoBorder: '#ccc',
|
|
81
82
|
tooltipText: 'rgba(0, 0, 0, 0.87)',
|
|
82
83
|
};
|
|
83
84
|
|
|
@@ -104,6 +105,7 @@ export const muiTheme = {
|
|
|
104
105
|
gridLayoutBackground: '#333333',
|
|
105
106
|
paperBackground: '#2b2b2b',
|
|
106
107
|
cardBorder: 'rgba(0, 0, 0, 0.125)',
|
|
108
|
+
cardInfoBorder: '#222222',
|
|
107
109
|
tooltipText: '#FFFFFF',
|
|
108
110
|
...globalColors,
|
|
109
111
|
},
|
|
@@ -113,6 +115,7 @@ export const muiTheme = {
|
|
|
113
115
|
light: createTheme({
|
|
114
116
|
palette: {
|
|
115
117
|
...lightPalette,
|
|
118
|
+
cardInfoBorder: '#F1F1F1',
|
|
116
119
|
...globalColors,
|
|
117
120
|
},
|
|
118
121
|
...sharedThemeOptions,
|
|
@@ -130,6 +133,6 @@ export const muiTheme = {
|
|
|
130
133
|
...globalColors,
|
|
131
134
|
},
|
|
132
135
|
...sharedThemeOptions,
|
|
133
|
-
cardBorderSize: '
|
|
136
|
+
cardBorderSize: '1px',
|
|
134
137
|
}),
|
|
135
138
|
};
|
package/src/title-styles.js
CHANGED
|
@@ -14,18 +14,23 @@ export const useTitleStyles = makeStyles()(theme => ({
|
|
|
14
14
|
textOverflow: 'ellipsis',
|
|
15
15
|
whiteSpace: 'nowrap',
|
|
16
16
|
},
|
|
17
|
-
|
|
17
|
+
infoText: {
|
|
18
|
+
color: theme.palette.primaryForeground,
|
|
18
19
|
width: '100%',
|
|
19
20
|
textOverflow: 'ellipsis',
|
|
20
21
|
whiteSpace: 'nowrap',
|
|
21
22
|
overflow: 'hidden',
|
|
22
|
-
fontSize: '
|
|
23
|
+
fontSize: '60% !important',
|
|
23
24
|
opacity: '.8',
|
|
24
|
-
padding: '0
|
|
25
|
+
padding: '0',
|
|
25
26
|
justifyContent: 'center',
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
textAlign: 'center !important',
|
|
28
|
+
borderTop: '0px',
|
|
29
|
+
borderBottom: `1px solid ${theme.palette.cardInfoBorder}`,
|
|
30
|
+
borderLeft: `1px solid ${theme.palette.cardInfoBorder}`,
|
|
31
|
+
borderRight: `1px solid ${theme.palette.cardInfoBorder}`,
|
|
32
|
+
borderBottomLeftRadius: '4px',
|
|
33
|
+
borderBottomRightRadius: '4px',
|
|
29
34
|
},
|
|
30
35
|
titleButtons: {
|
|
31
36
|
display: 'flex',
|
|
@@ -41,15 +46,20 @@ export const useTitleStyles = makeStyles()(theme => ({
|
|
|
41
46
|
border: `${theme.cardBorderSize} solid ${theme.palette.cardBorder}`,
|
|
42
47
|
flex: '1 1 auto',
|
|
43
48
|
minHeight: '1px',
|
|
44
|
-
marginTop: '
|
|
45
|
-
marginBottom: '
|
|
49
|
+
marginTop: '0',
|
|
50
|
+
marginBottom: '0',
|
|
46
51
|
position: 'relative',
|
|
47
52
|
display: 'flex',
|
|
48
53
|
flexDirection: 'column',
|
|
49
54
|
minWidth: '0',
|
|
50
55
|
wordWrap: 'break-word',
|
|
51
56
|
backgroundClip: 'border-box',
|
|
52
|
-
|
|
57
|
+
borderTopLeftRadius: '4px',
|
|
58
|
+
borderTopRightRadius: '4px',
|
|
59
|
+
},
|
|
60
|
+
cardWithoutInfoText: {
|
|
61
|
+
borderBottomLeftRadius: '4px',
|
|
62
|
+
borderBottomRightRadius: '4px',
|
|
53
63
|
},
|
|
54
64
|
paddingCard: {
|
|
55
65
|
padding: '12px',
|