@vitessce/layer-controller 3.5.11 → 3.6.0
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/deflate-DcFBP_ON.js +10 -0
- package/dist/{index-9f5d422b.js → index-BYqNjxB4.js} +68409 -65627
- package/dist/index.js +1 -4
- package/dist/{jpeg-de2a446b.js → jpeg-BRMnDFy7.js} +20 -4
- package/dist/lerc-edG1hf7C.js +2020 -0
- package/dist/{lzw-fcb90a13.js → lzw-ByU_vDUr.js} +1 -4
- package/dist/{packbits-37339fac.js → packbits-6stor0im.js} +1 -4
- package/dist/{pako.esm-68f84e2a.js → pako.esm-SxljTded.js} +33 -1839
- package/dist/{raw-043cf610.js → raw-CTEIV_TP.js} +1 -4
- package/dist/{webimage-22a3672d.js → webimage-BPClhqkm.js} +1 -4
- package/dist-tsc/BitmaskChannelController.d.ts.map +1 -1
- package/dist-tsc/BitmaskChannelController.js +2 -3
- package/dist-tsc/ChannelOptions.d.ts.map +1 -1
- package/dist-tsc/ChannelOptions.js +4 -5
- package/dist-tsc/ColorPalette.d.ts.map +1 -1
- package/dist-tsc/ColorPalette.js +4 -5
- package/dist-tsc/ImageAddButton.d.ts.map +1 -1
- package/dist-tsc/ImageAddButton.js +3 -4
- package/dist-tsc/LayerController.d.ts.map +1 -1
- package/dist-tsc/LayerController.js +16 -23
- package/dist-tsc/LayerControllerSubscriber.d.ts.map +1 -1
- package/dist-tsc/LayerControllerSubscriber.js +11 -9
- package/dist-tsc/LayerOptions.d.ts.map +1 -1
- package/dist-tsc/LayerOptions.js +15 -15
- package/dist-tsc/RasterChannelController.js +4 -4
- package/dist-tsc/VectorLayerController.js +4 -4
- package/dist-tsc/VolumeOptions.d.ts.map +1 -1
- package/dist-tsc/VolumeOptions.js +7 -7
- package/dist-tsc/shared-channel-controls.d.ts.map +1 -1
- package/dist-tsc/shared-channel-controls.js +6 -4
- package/dist-tsc/styles.d.ts +72 -8
- package/dist-tsc/styles.d.ts.map +1 -1
- package/dist-tsc/styles.js +31 -16
- package/package.json +10 -11
- package/src/BitmaskChannelController.js +4 -5
- package/src/ChannelOptions.js +4 -5
- package/src/ColorPalette.js +4 -5
- package/src/ImageAddButton.js +3 -4
- package/src/LayerController.js +34 -37
- package/src/LayerControllerSubscriber.js +13 -7
- package/src/LayerOptions.js +21 -24
- package/src/RasterChannelController.js +8 -8
- package/src/VectorLayerController.js +7 -7
- package/src/VolumeOptions.js +12 -14
- package/src/shared-channel-controls.js +8 -6
- package/src/styles.js +31 -16
- package/dist/deflate-8a6ed1b8.js +0 -13
- package/dist/lerc-e50baa38.js +0 -2014
package/src/LayerOptions.js
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { useId } from 'react-aria';
|
|
3
3
|
import { range } from 'lodash-es';
|
|
4
4
|
import { Matrix4 } from 'math.gl';
|
|
5
|
-
import { Grid, Slider, InputLabel,
|
|
5
|
+
import { Grid, Slider, InputLabel, NativeSelect, Checkbox } from '@vitessce/styles';
|
|
6
6
|
import { viv } from '@vitessce/gl';
|
|
7
7
|
import {
|
|
8
8
|
getBoundingCube,
|
|
@@ -52,7 +52,7 @@ function VolumeDropdown({
|
|
|
52
52
|
use3d,
|
|
53
53
|
modelMatrix,
|
|
54
54
|
}) {
|
|
55
|
-
const classes = useSelectStyles();
|
|
55
|
+
const { classes } = useSelectStyles();
|
|
56
56
|
const selections = channels.map(i => i.selection);
|
|
57
57
|
const { data: loader } = loaderWithMeta;
|
|
58
58
|
const handleChange = async (val) => {
|
|
@@ -124,8 +124,7 @@ function VolumeDropdown({
|
|
|
124
124
|
const hasZStack = shape[labels.indexOf('z')] > 1;
|
|
125
125
|
return (
|
|
126
126
|
<>
|
|
127
|
-
<
|
|
128
|
-
native
|
|
127
|
+
<NativeSelect
|
|
129
128
|
value={currResolution}
|
|
130
129
|
onChange={e => handleChange(
|
|
131
130
|
e.target.value === '2D' ? e.target.value : Number(e.target.value),
|
|
@@ -167,7 +166,7 @@ function VolumeDropdown({
|
|
|
167
166
|
}
|
|
168
167
|
return null;
|
|
169
168
|
})}
|
|
170
|
-
</
|
|
169
|
+
</NativeSelect>
|
|
171
170
|
</>
|
|
172
171
|
);
|
|
173
172
|
}
|
|
@@ -180,10 +179,9 @@ function VolumeDropdown({
|
|
|
180
179
|
* @prop {function} handleChange Callback for every change in colormap.
|
|
181
180
|
*/
|
|
182
181
|
function ColormapSelect({ value, inputId, handleChange }) {
|
|
183
|
-
const classes = useSelectStyles();
|
|
182
|
+
const { classes } = useSelectStyles();
|
|
184
183
|
return (
|
|
185
|
-
<
|
|
186
|
-
native
|
|
184
|
+
<NativeSelect
|
|
187
185
|
onChange={e => handleChange(e.target.value === '' ? null : e.target.value)}
|
|
188
186
|
value={value}
|
|
189
187
|
inputProps={{ name: 'colormap', id: inputId, 'aria-label': 'Colormap selector' }}
|
|
@@ -196,7 +194,7 @@ function ColormapSelect({ value, inputId, handleChange }) {
|
|
|
196
194
|
{name}
|
|
197
195
|
</option>
|
|
198
196
|
))}
|
|
199
|
-
</
|
|
197
|
+
</NativeSelect>
|
|
200
198
|
);
|
|
201
199
|
}
|
|
202
200
|
|
|
@@ -214,7 +212,7 @@ function TransparentColorCheckbox({ value, inputId, handleChange }) {
|
|
|
214
212
|
}}
|
|
215
213
|
checked={Boolean(value)}
|
|
216
214
|
id={inputId}
|
|
217
|
-
|
|
215
|
+
slotProps={{ input: { 'aria-label': 'Enable or disable color transparency' } }}
|
|
218
216
|
/>
|
|
219
217
|
);
|
|
220
218
|
}
|
|
@@ -225,11 +223,11 @@ function TransparentColorCheckbox({ value, inputId, handleChange }) {
|
|
|
225
223
|
* @prop {function} handleChange Callback for every change in opacity.
|
|
226
224
|
*/
|
|
227
225
|
function OpacitySlider({ value, inputId, handleChange }) {
|
|
228
|
-
const classes = useChannelSliderStyles();
|
|
226
|
+
const { classes } = useChannelSliderStyles();
|
|
229
227
|
|
|
230
228
|
return (
|
|
231
229
|
<Slider
|
|
232
|
-
|
|
230
|
+
slotProps={{ valueLabel: { className: classes.sliderValueLabel } }}
|
|
233
231
|
value={value}
|
|
234
232
|
onChange={(e, v) => handleChange(v)}
|
|
235
233
|
valueLabelDisplay="auto"
|
|
@@ -250,10 +248,9 @@ function OpacitySlider({ value, inputId, handleChange }) {
|
|
|
250
248
|
* @prop {function} handleChange Callback for every change in domain.
|
|
251
249
|
*/
|
|
252
250
|
function SliderDomainSelector({ value, inputId, handleChange }) {
|
|
253
|
-
const classes = useSelectStyles();
|
|
251
|
+
const { classes } = useSelectStyles();
|
|
254
252
|
return (
|
|
255
|
-
<
|
|
256
|
-
native
|
|
253
|
+
<NativeSelect
|
|
257
254
|
onChange={e => handleChange(e.target.value)}
|
|
258
255
|
value={value}
|
|
259
256
|
id={inputId}
|
|
@@ -266,7 +263,7 @@ function SliderDomainSelector({ value, inputId, handleChange }) {
|
|
|
266
263
|
{name}
|
|
267
264
|
</option>
|
|
268
265
|
))}
|
|
269
|
-
</
|
|
266
|
+
</NativeSelect>
|
|
270
267
|
);
|
|
271
268
|
}
|
|
272
269
|
|
|
@@ -284,7 +281,7 @@ function GlobalSelectionSlider({
|
|
|
284
281
|
handleChange,
|
|
285
282
|
possibleValues,
|
|
286
283
|
}) {
|
|
287
|
-
const classes = useSelectionSliderStyles();
|
|
284
|
+
const { classes } = useSelectionSliderStyles();
|
|
288
285
|
return (
|
|
289
286
|
<Slider
|
|
290
287
|
classes={{ root: classes.selectionSliderRoot, markActive: classes.markActive }}
|
|
@@ -323,10 +320,10 @@ function GlobalSelectionSlider({
|
|
|
323
320
|
function LayerOption({ name, inputId, children }) {
|
|
324
321
|
return (
|
|
325
322
|
<Grid container direction="row" alignItems="center" justifyContent="center">
|
|
326
|
-
<Grid
|
|
323
|
+
<Grid size={6}>
|
|
327
324
|
<InputLabel htmlFor={inputId}>{name}:</InputLabel>
|
|
328
325
|
</Grid>
|
|
329
|
-
<Grid
|
|
326
|
+
<Grid size={6}>
|
|
330
327
|
{children}
|
|
331
328
|
</Grid>
|
|
332
329
|
</Grid>
|
|
@@ -391,7 +388,7 @@ function LayerOptions({
|
|
|
391
388
|
const opacitySliderId = useId();
|
|
392
389
|
const zeroTransparentId = useId();
|
|
393
390
|
return (
|
|
394
|
-
<Grid container direction="column"
|
|
391
|
+
<Grid container direction="column" sx={{ width: '100%' }}>
|
|
395
392
|
{hasZStack
|
|
396
393
|
&& !disable3d
|
|
397
394
|
&& hasViewableResolutions
|
|
@@ -432,7 +429,7 @@ function LayerOptions({
|
|
|
432
429
|
{!disableChannelsIfRgbDetected ? (
|
|
433
430
|
<>
|
|
434
431
|
{shouldShowColormap && (
|
|
435
|
-
<Grid
|
|
432
|
+
<Grid>
|
|
436
433
|
<LayerOption name="Colormap" inputId={colormapSelectId}>
|
|
437
434
|
<ColormapSelect
|
|
438
435
|
value={colormap || ''}
|
|
@@ -443,7 +440,7 @@ function LayerOptions({
|
|
|
443
440
|
</Grid>
|
|
444
441
|
)}
|
|
445
442
|
{shouldShowDomain && (
|
|
446
|
-
<Grid
|
|
443
|
+
<Grid>
|
|
447
444
|
<LayerOption name="Domain" inputId={domainSelectorId}>
|
|
448
445
|
<SliderDomainSelector
|
|
449
446
|
value={domainType || DEFAULT_RASTER_DOMAIN_TYPE}
|
|
@@ -458,7 +455,7 @@ function LayerOptions({
|
|
|
458
455
|
</>
|
|
459
456
|
) : null}
|
|
460
457
|
{!use3d && (
|
|
461
|
-
<Grid
|
|
458
|
+
<Grid>
|
|
462
459
|
<LayerOption name="Opacity" inputId={opacitySliderId}>
|
|
463
460
|
<OpacitySlider
|
|
464
461
|
value={opacity}
|
|
@@ -469,7 +466,7 @@ function LayerOptions({
|
|
|
469
466
|
</Grid>
|
|
470
467
|
)}
|
|
471
468
|
{shouldShowTransparentColor && !use3d && (
|
|
472
|
-
<Grid
|
|
469
|
+
<Grid>
|
|
473
470
|
<LayerOption
|
|
474
471
|
name="Zero Transparent"
|
|
475
472
|
inputId={zeroTransparentId}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useState, useEffect } from 'react';
|
|
2
2
|
|
|
3
|
-
import { Grid, Slider } from '@
|
|
3
|
+
import { Grid, Slider } from '@vitessce/styles';
|
|
4
4
|
import { debounce, isEqual } from 'lodash-es';
|
|
5
5
|
|
|
6
6
|
import {
|
|
@@ -45,12 +45,12 @@ function ChannelSlider({
|
|
|
45
45
|
[handleChange],
|
|
46
46
|
);
|
|
47
47
|
|
|
48
|
-
const classes = useChannelSliderStyles();
|
|
48
|
+
const { classes } = useChannelSliderStyles();
|
|
49
49
|
|
|
50
50
|
const step = max - min < 500 && dtype.startsWith('Float') ? (max - min) / 500 : 1;
|
|
51
51
|
return (
|
|
52
52
|
<Slider
|
|
53
|
-
|
|
53
|
+
slotProps={{ valueLabel: { className: classes.valueLabel } }}
|
|
54
54
|
value={slider}
|
|
55
55
|
valueLabelFormat={abbreviateNumber}
|
|
56
56
|
onChange={(e, v) => handleChangeDebounced(v)}
|
|
@@ -186,9 +186,9 @@ function RasterChannelController({
|
|
|
186
186
|
*/
|
|
187
187
|
const createSelection = index => ({ [dimName]: index });
|
|
188
188
|
return (
|
|
189
|
-
<Grid container direction="column"
|
|
189
|
+
<Grid container direction="column" justifyContent="center">
|
|
190
190
|
<Grid container direction="row" justifyContent="space-between">
|
|
191
|
-
<Grid
|
|
191
|
+
<Grid size={10}>
|
|
192
192
|
<ChannelSelectionDropdown
|
|
193
193
|
handleChange={v => handlePropertyChange('selection', createSelection(v))
|
|
194
194
|
}
|
|
@@ -197,7 +197,7 @@ function RasterChannelController({
|
|
|
197
197
|
disabled={isLoading}
|
|
198
198
|
/>
|
|
199
199
|
</Grid>
|
|
200
|
-
<Grid
|
|
200
|
+
<Grid size={1} sx={{ marginTop: '4px' }}>
|
|
201
201
|
<ChannelOptions
|
|
202
202
|
handlePropertyChange={handlePropertyChange}
|
|
203
203
|
handleChannelRemove={handleChannelRemove}
|
|
@@ -207,7 +207,7 @@ function RasterChannelController({
|
|
|
207
207
|
</Grid>
|
|
208
208
|
</Grid>
|
|
209
209
|
<Grid container direction="row" justifyContent="space-between">
|
|
210
|
-
<Grid
|
|
210
|
+
<Grid size={2}>
|
|
211
211
|
<ChannelVisibilityCheckbox
|
|
212
212
|
color={rgbColor}
|
|
213
213
|
checked={visibility}
|
|
@@ -215,7 +215,7 @@ function RasterChannelController({
|
|
|
215
215
|
disabled={isLoading}
|
|
216
216
|
/>
|
|
217
217
|
</Grid>
|
|
218
|
-
<Grid
|
|
218
|
+
<Grid size={9}>
|
|
219
219
|
<ChannelSlider
|
|
220
220
|
color={rgbColor}
|
|
221
221
|
slider={slider}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { Grid, Checkbox, Paper, Typography, Slider } from '@
|
|
3
|
+
import { Grid, Checkbox, Paper, Typography, Slider } from '@vitessce/styles';
|
|
4
4
|
import { useControllerSectionStyles } from './styles.js';
|
|
5
5
|
|
|
6
6
|
export default function VectorLayerController(props) {
|
|
@@ -27,10 +27,10 @@ export default function VectorLayerController(props) {
|
|
|
27
27
|
handleLayerChange({ ...layer, visible: v });
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
const classes = useControllerSectionStyles();
|
|
30
|
+
const { classes } = useControllerSectionStyles();
|
|
31
31
|
return (
|
|
32
|
-
<Grid
|
|
33
|
-
<Paper className={classes.layerControllerRoot}>
|
|
32
|
+
<Grid sx={{ marginTop: '10px' }}>
|
|
33
|
+
<Paper elevation={4} className={classes.layerControllerRoot}>
|
|
34
34
|
<Typography
|
|
35
35
|
style={{
|
|
36
36
|
padding: '15px 8px 0px 8px',
|
|
@@ -40,15 +40,15 @@ export default function VectorLayerController(props) {
|
|
|
40
40
|
{label}
|
|
41
41
|
</Typography>
|
|
42
42
|
<Grid container direction="row" justifyContent="space-between">
|
|
43
|
-
<Grid
|
|
43
|
+
<Grid size={2}>
|
|
44
44
|
<Checkbox
|
|
45
45
|
color="primary"
|
|
46
46
|
checked={isOn}
|
|
47
47
|
onChange={(e, v) => handleCheckBoxChange(v)}
|
|
48
|
-
|
|
48
|
+
slotProps={{ input: { 'aria-label': 'Show or hide vector layer' } }}
|
|
49
49
|
/>
|
|
50
50
|
</Grid>
|
|
51
|
-
<Grid
|
|
51
|
+
<Grid size={9} sx={{ paddingRight: '16px' }}>
|
|
52
52
|
<Slider
|
|
53
53
|
value={slider}
|
|
54
54
|
min={0}
|
package/src/VolumeOptions.js
CHANGED
|
@@ -5,17 +5,16 @@ import {
|
|
|
5
5
|
Typography,
|
|
6
6
|
Button,
|
|
7
7
|
makeStyles,
|
|
8
|
-
createStyles,
|
|
9
8
|
FormControl,
|
|
10
|
-
|
|
9
|
+
NativeSelect,
|
|
11
10
|
InputLabel,
|
|
12
11
|
Slider,
|
|
13
|
-
} from '@
|
|
12
|
+
} from '@vitessce/styles';
|
|
14
13
|
import { viv } from '@vitessce/gl';
|
|
15
14
|
import { abbreviateNumber, getBoundingCube } from '@vitessce/spatial-utils';
|
|
16
15
|
import { useSelectStyles } from './styles.js';
|
|
17
16
|
|
|
18
|
-
const useSlicerStyles = makeStyles(theme =>
|
|
17
|
+
const useSlicerStyles = makeStyles()(theme => ({
|
|
19
18
|
enabled: {},
|
|
20
19
|
disabled: {
|
|
21
20
|
color: theme.palette.text.disabled,
|
|
@@ -61,7 +60,7 @@ const Slicer = ({
|
|
|
61
60
|
],
|
|
62
61
|
];
|
|
63
62
|
|
|
64
|
-
const classes = useSlicerStyles();
|
|
63
|
+
const { classes } = useSlicerStyles();
|
|
65
64
|
const Slicers = sliceValuesAndSetSliceFunctions.map(
|
|
66
65
|
([val, setVal, label, [min, max]]) => (
|
|
67
66
|
<Grid
|
|
@@ -71,7 +70,7 @@ const Slicer = ({
|
|
|
71
70
|
alignItems="center"
|
|
72
71
|
key={label}
|
|
73
72
|
>
|
|
74
|
-
<Grid
|
|
73
|
+
<Grid size={1}>
|
|
75
74
|
<Typography
|
|
76
75
|
className={!use3d ? classes.disabled : classes.enabled}
|
|
77
76
|
style={{ marginBottom: 0 }}
|
|
@@ -79,7 +78,7 @@ const Slicer = ({
|
|
|
79
78
|
{label}:
|
|
80
79
|
</Typography>
|
|
81
80
|
</Grid>
|
|
82
|
-
<Grid
|
|
81
|
+
<Grid size={11}>
|
|
83
82
|
<Slider
|
|
84
83
|
disabled={!use3d}
|
|
85
84
|
className={!use3d ? classes.disabled : classes.enabled}
|
|
@@ -87,7 +86,7 @@ const Slicer = ({
|
|
|
87
86
|
onChange={(e, v) => setVal(v)}
|
|
88
87
|
valueLabelDisplay="auto"
|
|
89
88
|
valueLabelFormat={v => abbreviateNumber(v)}
|
|
90
|
-
|
|
89
|
+
getAriaLabel={index => `Clipping plane ${label} slider ${index === 0 ? 'min' : 'max'}`}
|
|
91
90
|
min={min}
|
|
92
91
|
max={max}
|
|
93
92
|
step={0.005}
|
|
@@ -117,14 +116,13 @@ function RenderingModeSelect({
|
|
|
117
116
|
renderingMode,
|
|
118
117
|
use3d,
|
|
119
118
|
}) {
|
|
120
|
-
const classes = useSelectStyles();
|
|
119
|
+
const { classes } = useSelectStyles();
|
|
121
120
|
// Empty option allows for displaying the title of the dropdown fully in the UI.
|
|
122
121
|
const options = !use3d ? [...renderingOptions, ''] : renderingOptions;
|
|
123
122
|
return (
|
|
124
123
|
<FormControl fullWidth>
|
|
125
|
-
<InputLabel htmlFor="rendering-mode-select">Rendering Mode</InputLabel>
|
|
126
|
-
<
|
|
127
|
-
native
|
|
124
|
+
<InputLabel htmlFor="rendering-mode-select" variant="standard">Rendering Mode</InputLabel>
|
|
125
|
+
<NativeSelect
|
|
128
126
|
onChange={e => handleRenderingModeChange(e.target.value)}
|
|
129
127
|
value={use3d ? renderingMode : ''}
|
|
130
128
|
inputProps={{
|
|
@@ -140,7 +138,7 @@ function RenderingModeSelect({
|
|
|
140
138
|
{name}
|
|
141
139
|
</option>
|
|
142
140
|
))}
|
|
143
|
-
</
|
|
141
|
+
</NativeSelect>
|
|
144
142
|
</FormControl>
|
|
145
143
|
);
|
|
146
144
|
}
|
|
@@ -153,7 +151,7 @@ const ReCenterButton = ({
|
|
|
153
151
|
loader,
|
|
154
152
|
modelMatrix,
|
|
155
153
|
}) => (
|
|
156
|
-
<Grid
|
|
154
|
+
<Grid size="auto" key="recenter">
|
|
157
155
|
<Button
|
|
158
156
|
onClick={() => {
|
|
159
157
|
const defaultViewState = viv.getDefaultInitialViewState(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { Checkbox,
|
|
3
|
+
import { Checkbox, NativeSelect } from '@vitessce/styles';
|
|
4
4
|
import { useSelectStyles } from './styles.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -16,11 +16,10 @@ export function ChannelSelectionDropdown({
|
|
|
16
16
|
channelOptions,
|
|
17
17
|
selectionIndex,
|
|
18
18
|
}) {
|
|
19
|
-
const classes = useSelectStyles();
|
|
19
|
+
const { classes } = useSelectStyles();
|
|
20
20
|
return (
|
|
21
|
-
<
|
|
21
|
+
<NativeSelect
|
|
22
22
|
classes={{ root: classes.selectRoot }}
|
|
23
|
-
native
|
|
24
23
|
value={selectionIndex}
|
|
25
24
|
onChange={e => handleChange(Number(e.target.value))}
|
|
26
25
|
inputProps={{ 'aria-label': 'Select a channel' }}
|
|
@@ -30,7 +29,7 @@ export function ChannelSelectionDropdown({
|
|
|
30
29
|
{opt}
|
|
31
30
|
</option>
|
|
32
31
|
))}
|
|
33
|
-
</
|
|
32
|
+
</NativeSelect>
|
|
34
33
|
);
|
|
35
34
|
}
|
|
36
35
|
|
|
@@ -49,8 +48,11 @@ export function ChannelVisibilityCheckbox({
|
|
|
49
48
|
onChange={toggle}
|
|
50
49
|
checked={checked}
|
|
51
50
|
disabled={disabled}
|
|
51
|
+
sx={{ paddingLeft: 0 }}
|
|
52
52
|
style={{ color, '&$checked': { color } }}
|
|
53
|
-
|
|
53
|
+
slotProps={{
|
|
54
|
+
input: { 'aria-label': 'Toggle on or off a channel' },
|
|
55
|
+
}}
|
|
54
56
|
/>
|
|
55
57
|
);
|
|
56
58
|
}
|
package/src/styles.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { makeStyles } from '@
|
|
1
|
+
import { makeStyles } from '@vitessce/styles';
|
|
2
2
|
|
|
3
|
-
export const useSpanStyles = makeStyles(() => ({
|
|
3
|
+
export const useSpanStyles = makeStyles()(() => ({
|
|
4
4
|
span: {
|
|
5
5
|
width: '70px',
|
|
6
6
|
textAlign: 'center',
|
|
@@ -9,38 +9,53 @@ export const useSpanStyles = makeStyles(() => ({
|
|
|
9
9
|
},
|
|
10
10
|
}));
|
|
11
11
|
|
|
12
|
-
export const useChannelSliderStyles = makeStyles(
|
|
12
|
+
export const useChannelSliderStyles = makeStyles()(() => ({
|
|
13
13
|
valueLabel: {
|
|
14
14
|
marginTop: '7px',
|
|
15
|
-
'& span': {
|
|
16
|
-
color: theme.palette.secondaryForeground, // Change color here
|
|
17
|
-
backgroundColor: theme.palette.secondaryBackgroundDim, // Change color here
|
|
18
|
-
},
|
|
19
15
|
},
|
|
20
16
|
}));
|
|
21
17
|
|
|
22
|
-
export const useSelectStyles = makeStyles(() => ({
|
|
18
|
+
export const useSelectStyles = makeStyles()(() => ({
|
|
23
19
|
selectRoot: {
|
|
24
20
|
padding: 0,
|
|
25
21
|
height: 'auto',
|
|
26
|
-
margin:
|
|
27
|
-
fontSize: '14px',
|
|
22
|
+
margin: 0,
|
|
23
|
+
fontSize: '14px !important',
|
|
28
24
|
width: '100%',
|
|
29
25
|
},
|
|
30
26
|
}));
|
|
31
27
|
|
|
32
|
-
export const useControllerSectionStyles = makeStyles((
|
|
28
|
+
export const useControllerSectionStyles = makeStyles()(theme => ({
|
|
33
29
|
layerControllerRoot: {
|
|
34
30
|
width: '100%',
|
|
35
31
|
flexDirection: 'column',
|
|
36
32
|
padding: '0px 8px',
|
|
33
|
+
backgroundColor: theme.palette.paperBackground,
|
|
34
|
+
},
|
|
35
|
+
accordionRoot: {
|
|
36
|
+
backgroundColor: theme.palette.paperBackground,
|
|
37
37
|
},
|
|
38
38
|
layerControllerGrid: {
|
|
39
39
|
marginTop: '10px',
|
|
40
40
|
},
|
|
41
41
|
}));
|
|
42
42
|
|
|
43
|
-
export const useAccordionStyles = makeStyles(theme => ({
|
|
43
|
+
export const useAccordionStyles = makeStyles()(theme => ({
|
|
44
|
+
accordionVisibilityIconBox: {
|
|
45
|
+
margin: 0,
|
|
46
|
+
padding: 0,
|
|
47
|
+
minWidth: 0,
|
|
48
|
+
cursor: 'pointer',
|
|
49
|
+
display: 'inline-flex',
|
|
50
|
+
'&:hover': {
|
|
51
|
+
opacity: 0.8,
|
|
52
|
+
},
|
|
53
|
+
color: theme.palette.primary[500],
|
|
54
|
+
},
|
|
55
|
+
accordionNameBox: {
|
|
56
|
+
marginLeft: '10px',
|
|
57
|
+
fontSize: '14px !important',
|
|
58
|
+
},
|
|
44
59
|
accordionDetailsRoot: {
|
|
45
60
|
width: '100%',
|
|
46
61
|
flexDirection: 'column',
|
|
@@ -50,7 +65,7 @@ export const useAccordionStyles = makeStyles(theme => ({
|
|
|
50
65
|
padding: '0px 8px',
|
|
51
66
|
},
|
|
52
67
|
content: {
|
|
53
|
-
margin: '4px 0px',
|
|
68
|
+
margin: '4px 0px !important',
|
|
54
69
|
minWidth: '0px',
|
|
55
70
|
},
|
|
56
71
|
expanded: {
|
|
@@ -64,13 +79,13 @@ export const useAccordionStyles = makeStyles(theme => ({
|
|
|
64
79
|
},
|
|
65
80
|
}));
|
|
66
81
|
|
|
67
|
-
export const useInputLabelStyles = makeStyles(() => ({
|
|
82
|
+
export const useInputLabelStyles = makeStyles()(() => ({
|
|
68
83
|
inputLabelRoot: {
|
|
69
84
|
fontSize: '14px',
|
|
70
85
|
},
|
|
71
86
|
}));
|
|
72
87
|
|
|
73
|
-
export const useOverflowEllipsisGridStyles = makeStyles(() => ({
|
|
88
|
+
export const useOverflowEllipsisGridStyles = makeStyles()(() => ({
|
|
74
89
|
item: {
|
|
75
90
|
width: '100%',
|
|
76
91
|
overflow: 'hidden',
|
|
@@ -79,7 +94,7 @@ export const useOverflowEllipsisGridStyles = makeStyles(() => ({
|
|
|
79
94
|
},
|
|
80
95
|
}));
|
|
81
96
|
|
|
82
|
-
export const useSelectionSliderStyles = makeStyles(() => ({
|
|
97
|
+
export const useSelectionSliderStyles = makeStyles()(() => ({
|
|
83
98
|
selectionSliderRoot: {
|
|
84
99
|
marginTop: '7px',
|
|
85
100
|
},
|
package/dist/deflate-8a6ed1b8.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
|
|
2
|
-
import { B as BaseDecoder } from "./index-9f5d422b.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import "@vitessce/vit-s";
|
|
5
|
-
import "react-dom";
|
|
6
|
-
class DeflateDecoder extends BaseDecoder {
|
|
7
|
-
decodeBlock(buffer) {
|
|
8
|
-
return inflate_1(new Uint8Array(buffer)).buffer;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
DeflateDecoder as default
|
|
13
|
-
};
|