@vitessce/layer-controller 3.0.0 → 3.0.1
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-75511377.js → deflate-0d7cf47d.js} +1 -1
- package/dist/{index-841a1af6.js → index-01dc75e1.js} +48 -59
- package/dist/index.js +1 -1
- package/dist/{jpeg-6023316d.js → jpeg-cad5557d.js} +1 -1
- package/dist/{lerc-82182c45.js → lerc-1fa75ba5.js} +1 -1
- package/dist/{lzw-2ab01db2.js → lzw-487634db.js} +1 -1
- package/dist/{packbits-2633f360.js → packbits-55abe2f6.js} +1 -1
- package/dist/{raw-51e455c7.js → raw-68f1e99a.js} +1 -1
- package/dist/{webimage-bbb56d18.js → webimage-afaf2669.js} +1 -1
- package/dist-tsc/ColorPalette.js +2 -2
- package/dist-tsc/LayerController.d.ts.map +1 -1
- package/dist-tsc/LayerController.js +13 -5
- package/dist-tsc/LayerControllerSubscriber.js +3 -3
- package/dist-tsc/LayerOptions.d.ts.map +1 -1
- package/dist-tsc/LayerOptions.js +3 -2
- package/dist-tsc/RasterChannelController.test.js +1 -0
- package/dist-tsc/VectorLayerController.js +1 -1
- package/dist-tsc/styles.d.ts +5 -73
- package/dist-tsc/styles.d.ts.map +1 -1
- package/dist-tsc/styles.js +14 -37
- package/package.json +8 -8
- package/src/ColorPalette.js +2 -2
- package/src/LayerController.js +28 -14
- package/src/LayerControllerSubscriber.js +3 -3
- package/src/LayerOptions.js +4 -2
- package/src/RasterChannelController.test.js +1 -0
- package/src/VectorLayerController.js +1 -1
- package/src/styles.js +14 -47
|
@@ -135348,16 +135348,16 @@ function addDecoder(cases, importFn) {
|
|
|
135348
135348
|
}
|
|
135349
135349
|
cases.forEach((c) => registry$1.set(c, importFn));
|
|
135350
135350
|
}
|
|
135351
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
135352
|
-
addDecoder(5, () => import("./lzw-
|
|
135351
|
+
addDecoder([void 0, 1], () => import("./raw-68f1e99a.js").then((m) => m.default));
|
|
135352
|
+
addDecoder(5, () => import("./lzw-487634db.js").then((m) => m.default));
|
|
135353
135353
|
addDecoder(6, () => {
|
|
135354
135354
|
throw new Error("old style JPEG compression is not supported.");
|
|
135355
135355
|
});
|
|
135356
|
-
addDecoder(7, () => import("./jpeg-
|
|
135357
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
135358
|
-
addDecoder(32773, () => import("./packbits-
|
|
135359
|
-
addDecoder(34887, () => import("./lerc-
|
|
135360
|
-
addDecoder(50001, () => import("./webimage-
|
|
135356
|
+
addDecoder(7, () => import("./jpeg-cad5557d.js").then((m) => m.default));
|
|
135357
|
+
addDecoder([8, 32946], () => import("./deflate-0d7cf47d.js").then((m) => m.default));
|
|
135358
|
+
addDecoder(32773, () => import("./packbits-55abe2f6.js").then((m) => m.default));
|
|
135359
|
+
addDecoder(34887, () => import("./lerc-1fa75ba5.js").then((m) => m.default));
|
|
135360
|
+
addDecoder(50001, () => import("./webimage-afaf2669.js").then((m) => m.default));
|
|
135361
135361
|
function decodeRowAcc(row, stride) {
|
|
135362
135362
|
let length2 = row.length - stride;
|
|
135363
135363
|
let offset4 = 0;
|
|
@@ -146373,45 +146373,22 @@ const useSelectStyles = makeStyles(() => ({
|
|
|
146373
146373
|
margin: "4px 0"
|
|
146374
146374
|
}
|
|
146375
146375
|
}));
|
|
146376
|
-
withStyles2((theme) => ({
|
|
146377
|
-
paper: {
|
|
146378
|
-
backgroundColor: theme.palette.background.paper
|
|
146379
|
-
},
|
|
146380
|
-
span: {
|
|
146381
|
-
width: "70px",
|
|
146382
|
-
textAlign: "center",
|
|
146383
|
-
paddingLeft: "2px",
|
|
146384
|
-
paddingRight: "2px"
|
|
146385
|
-
},
|
|
146386
|
-
colors: {
|
|
146387
|
-
"&:hover": {
|
|
146388
|
-
backgroundColor: "transparent"
|
|
146389
|
-
},
|
|
146390
|
-
paddingLeft: "2px",
|
|
146391
|
-
paddingRight: "2px"
|
|
146392
|
-
},
|
|
146393
|
-
popper: {
|
|
146394
|
-
zIndex: 4
|
|
146395
|
-
}
|
|
146396
|
-
}));
|
|
146397
146376
|
const sharedControllerStyles = {
|
|
146398
146377
|
width: "100%",
|
|
146399
146378
|
flexDirection: "column"
|
|
146400
146379
|
};
|
|
146401
146380
|
const useControllerSectionStyles = makeStyles(() => ({
|
|
146402
|
-
|
|
146381
|
+
layerControllerRoot: {
|
|
146403
146382
|
...sharedControllerStyles,
|
|
146404
146383
|
padding: "0px 8px"
|
|
146405
146384
|
}
|
|
146406
146385
|
}));
|
|
146407
|
-
const
|
|
146408
|
-
|
|
146386
|
+
const useAccordionStyles = makeStyles((theme) => ({
|
|
146387
|
+
accordionDetailsRoot: {
|
|
146409
146388
|
...sharedControllerStyles,
|
|
146410
146389
|
padding: "8px 8px 24px 8px"
|
|
146411
|
-
}
|
|
146412
|
-
|
|
146413
|
-
const StyledAccordionSummary = withStyles2((theme) => ({
|
|
146414
|
-
root: {
|
|
146390
|
+
},
|
|
146391
|
+
accordionSummaryRoot: {
|
|
146415
146392
|
padding: "0px 8px"
|
|
146416
146393
|
},
|
|
146417
146394
|
content: {
|
|
@@ -146427,30 +146404,30 @@ const StyledAccordionSummary = withStyles2((theme) => ({
|
|
|
146427
146404
|
top: theme.spacing(-1.3)
|
|
146428
146405
|
}
|
|
146429
146406
|
}
|
|
146430
|
-
}))
|
|
146431
|
-
const
|
|
146432
|
-
|
|
146407
|
+
}));
|
|
146408
|
+
const useInputLabelStyles = makeStyles(() => ({
|
|
146409
|
+
inputLabelRoot: {
|
|
146433
146410
|
fontSize: "14px"
|
|
146434
146411
|
}
|
|
146435
|
-
}))
|
|
146436
|
-
const
|
|
146412
|
+
}));
|
|
146413
|
+
const useOverflowEllipsisGridStyles = makeStyles(() => ({
|
|
146437
146414
|
item: {
|
|
146438
146415
|
width: "100%",
|
|
146439
146416
|
overflow: "hidden",
|
|
146440
146417
|
whiteSpace: "nowrap",
|
|
146441
146418
|
textOverflow: "ellipsis"
|
|
146442
146419
|
}
|
|
146443
|
-
}))
|
|
146444
|
-
const
|
|
146445
|
-
|
|
146420
|
+
}));
|
|
146421
|
+
const useSelectionSliderStyles = makeStyles(() => ({
|
|
146422
|
+
selectionSliderRoot: {
|
|
146446
146423
|
marginTop: "7px"
|
|
146447
146424
|
},
|
|
146448
146425
|
markActive: {
|
|
146449
146426
|
backgroundColor: "rgba(128, 128, 128, 0.7)"
|
|
146450
146427
|
}
|
|
146451
|
-
}))
|
|
146428
|
+
}));
|
|
146452
146429
|
const useStyles$2 = makeStyles((theme) => ({
|
|
146453
|
-
|
|
146430
|
+
paletteContainer: {
|
|
146454
146431
|
width: "70px",
|
|
146455
146432
|
height: "40px",
|
|
146456
146433
|
display: "flex",
|
|
@@ -146471,7 +146448,7 @@ const useStyles$2 = makeStyles((theme) => ({
|
|
|
146471
146448
|
}));
|
|
146472
146449
|
const ColorPalette = ({ handleChange }) => {
|
|
146473
146450
|
const classes = useStyles$2();
|
|
146474
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classes.
|
|
146451
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classes.paletteContainer, "aria-label": "color-swatch", children: VIEWER_PALETTE.map((color) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
146475
146452
|
IconButton$1,
|
|
146476
146453
|
{
|
|
146477
146454
|
className: classes.button,
|
|
@@ -146905,7 +146882,7 @@ function VectorLayerController(props2) {
|
|
|
146905
146882
|
handleLayerChange({ ...layer, visible: v });
|
|
146906
146883
|
}
|
|
146907
146884
|
const classes = useControllerSectionStyles();
|
|
146908
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Grid$1, { item: true, style: { marginTop: "10px" }, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Paper$1, { className: classes.
|
|
146885
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Grid$1, { item: true, style: { marginTop: "10px" }, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Paper$1, { className: classes.layerControllerRoot, children: [
|
|
146909
146886
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
146910
146887
|
Typography$1,
|
|
146911
146888
|
{
|
|
@@ -147135,9 +147112,11 @@ function GlobalSelectionSlider({
|
|
|
147135
147112
|
handleChange,
|
|
147136
147113
|
possibleValues
|
|
147137
147114
|
}) {
|
|
147115
|
+
const classes = useSelectionSliderStyles();
|
|
147138
147116
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
147139
|
-
|
|
147117
|
+
Slider$1,
|
|
147140
147118
|
{
|
|
147119
|
+
classes: { root: classes.selectionSliderRoot, markActive: classes.markActive },
|
|
147141
147120
|
value,
|
|
147142
147121
|
onChange: (event, newValue) => {
|
|
147143
147122
|
handleChange({ selection: { [field]: newValue }, event });
|
|
@@ -147782,6 +147761,9 @@ function LayerController(props2) {
|
|
|
147782
147761
|
);
|
|
147783
147762
|
}
|
|
147784
147763
|
const controllerSectionClasses = useControllerSectionStyles();
|
|
147764
|
+
const accordionClasses = useAccordionStyles();
|
|
147765
|
+
const inputLabelClasses = useInputLabelStyles();
|
|
147766
|
+
const overflowEllipsisGridClasses = useOverflowEllipsisGridStyles();
|
|
147785
147767
|
const { visible } = layer;
|
|
147786
147768
|
const visibleSetting = typeof visible === "boolean" ? visible : true;
|
|
147787
147769
|
const Visibility = visibleSetting ? VisibilityIcon : VisibilityOffIcon;
|
|
@@ -147842,7 +147824,7 @@ function LayerController(props2) {
|
|
|
147842
147824
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
147843
147825
|
Accordion$1,
|
|
147844
147826
|
{
|
|
147845
|
-
className: controllerSectionClasses.
|
|
147827
|
+
className: controllerSectionClasses.layerControllerRoot,
|
|
147846
147828
|
onChange: (e2, expanded) => {
|
|
147847
147829
|
var _a3, _b, _c;
|
|
147848
147830
|
return !disabled && setIsExpanded(
|
|
@@ -147853,12 +147835,18 @@ function LayerController(props2) {
|
|
|
147853
147835
|
expanded: !disabled && isExpanded,
|
|
147854
147836
|
children: [
|
|
147855
147837
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
147856
|
-
|
|
147838
|
+
AccordionSummary$1,
|
|
147857
147839
|
{
|
|
147840
|
+
classes: {
|
|
147841
|
+
root: accordionClasses.accordionSummaryRoot,
|
|
147842
|
+
content: accordionClasses.content,
|
|
147843
|
+
expanded: accordionClasses.expanded,
|
|
147844
|
+
expandIcon: accordionClasses.expandIcon
|
|
147845
|
+
},
|
|
147858
147846
|
expandIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(ExpandMoreIcon, { role: "presentation" }),
|
|
147859
147847
|
"aria-controls": `layer-${name2}-controls`,
|
|
147860
147848
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Grid$1, { container: true, direction: "column", m: 1, justifyContent: "center", children: [
|
|
147861
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
147849
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Grid$1, { item: true, classes: { item: overflowEllipsisGridClasses.item }, children: [
|
|
147862
147850
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
147863
147851
|
Button$1,
|
|
147864
147852
|
{
|
|
@@ -147888,7 +147876,14 @@ function LayerController(props2) {
|
|
|
147888
147876
|
alignItems: "center",
|
|
147889
147877
|
justifyContent: "center",
|
|
147890
147878
|
children: [
|
|
147891
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Grid$1, { item: true, xs: 6, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
147879
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Grid$1, { item: true, xs: 6, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
147880
|
+
InputLabel$1,
|
|
147881
|
+
{
|
|
147882
|
+
htmlFor: `layer-${name2}-opacity-closed`,
|
|
147883
|
+
classes: { root: inputLabelClasses.inputLabelRoot },
|
|
147884
|
+
children: "Opacity:"
|
|
147885
|
+
}
|
|
147886
|
+
) }),
|
|
147892
147887
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Grid$1, { item: true, xs: 6, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
147893
147888
|
Slider$1,
|
|
147894
147889
|
{
|
|
@@ -147909,7 +147904,7 @@ function LayerController(props2) {
|
|
|
147909
147904
|
] })
|
|
147910
147905
|
}
|
|
147911
147906
|
),
|
|
147912
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
147907
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionDetails$1, { classes: { root: accordionClasses.accordionDetailsRoot }, children: [
|
|
147913
147908
|
useVolumeTabs ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
147914
147909
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
147915
147910
|
Tabs$1,
|
|
@@ -148301,8 +148296,6 @@ function LayerControllerSubscriber(props2) {
|
|
|
148301
148296
|
const [obsLocationsData, obsLocationsStatus] = useObsLocationsData(
|
|
148302
148297
|
loaders,
|
|
148303
148298
|
dataset,
|
|
148304
|
-
() => {
|
|
148305
|
-
},
|
|
148306
148299
|
false,
|
|
148307
148300
|
{ setSpatialPointLayer: setMoleculesLayer },
|
|
148308
148301
|
{ spatialPointLayer: moleculesLayer },
|
|
@@ -148315,8 +148308,6 @@ function LayerControllerSubscriber(props2) {
|
|
|
148315
148308
|
] = useObsSegmentationsData(
|
|
148316
148309
|
loaders,
|
|
148317
148310
|
dataset,
|
|
148318
|
-
() => {
|
|
148319
|
-
},
|
|
148320
148311
|
false,
|
|
148321
148312
|
{ setSpatialSegmentationLayer: setCellsLayer },
|
|
148322
148313
|
{ spatialSegmentationLayer: cellsLayer },
|
|
@@ -148326,8 +148317,6 @@ function LayerControllerSubscriber(props2) {
|
|
|
148326
148317
|
const [{ image: image2 }, imageStatus] = useImageData(
|
|
148327
148318
|
loaders,
|
|
148328
148319
|
dataset,
|
|
148329
|
-
() => {
|
|
148330
|
-
},
|
|
148331
148320
|
false,
|
|
148332
148321
|
{ setSpatialImageLayer: setRasterLayers },
|
|
148333
148322
|
{ spatialImageLayer: rasterLayers },
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
|
|
2
|
-
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder } from "./index-01dc75e1.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@vitessce/vit-s";
|
|
5
5
|
import "react-dom";
|
package/dist-tsc/ColorPalette.js
CHANGED
|
@@ -4,7 +4,7 @@ import { IconButton, makeStyles } from '@material-ui/core';
|
|
|
4
4
|
import { Lens as LensIcon } from '@material-ui/icons';
|
|
5
5
|
import { VIEWER_PALETTE } from '@vitessce/utils';
|
|
6
6
|
const useStyles = makeStyles(theme => ({
|
|
7
|
-
|
|
7
|
+
paletteContainer: {
|
|
8
8
|
width: '70px',
|
|
9
9
|
height: '40px',
|
|
10
10
|
display: 'flex',
|
|
@@ -25,6 +25,6 @@ const useStyles = makeStyles(theme => ({
|
|
|
25
25
|
}));
|
|
26
26
|
const ColorPalette = ({ handleChange }) => {
|
|
27
27
|
const classes = useStyles();
|
|
28
|
-
return (_jsx("div", { className: classes.
|
|
28
|
+
return (_jsx("div", { className: classes.paletteContainer, "aria-label": "color-swatch", children: VIEWER_PALETTE.map(color => (_jsx(IconButton, { className: classes.button, onClick: () => handleChange(color), children: _jsx(LensIcon, { fontSize: "small", style: { color: `rgb(${color})` }, className: classes.icon }) }, color))) }));
|
|
29
29
|
};
|
|
30
30
|
export default ColorPalette;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayerController.d.ts","sourceRoot":"","sources":["../src/LayerController.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LayerController.d.ts","sourceRoot":"","sources":["../src/LayerController.js"],"names":[],"mappings":"AA2EA;;;;;;;GAOG;AACH,iEA8gBC"}
|
|
@@ -2,12 +2,12 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
import React, { useState, useRef, useEffect } from 'react';
|
|
3
3
|
import { viv } from '@vitessce/gl';
|
|
4
4
|
import { GLOBAL_LABELS, getSourceFromLoader, isRgb, } from '@vitessce/spatial-utils';
|
|
5
|
-
import { Grid, Button, Slider, Tabs, Tab, Accordion } from '@material-ui/core';
|
|
5
|
+
import { Grid, Button, Slider, Tabs, Tab, InputLabel, Accordion, AccordionDetails, AccordionSummary, } from '@material-ui/core';
|
|
6
6
|
import { Add as AddIcon, ExpandMore as ExpandMoreIcon, Visibility as VisibilityIcon, VisibilityOff as VisibilityOffIcon, } from '@material-ui/icons';
|
|
7
7
|
import { canLoadResolution } from '@vitessce/utils';
|
|
8
8
|
import LayerOptions from './LayerOptions.js';
|
|
9
9
|
import VolumeOptions from './VolumeOptions.js';
|
|
10
|
-
import { useControllerSectionStyles,
|
|
10
|
+
import { useControllerSectionStyles, useInputLabelStyles, useOverflowEllipsisGridStyles, useAccordionStyles, } from './styles.js';
|
|
11
11
|
import { getMultiSelectionStats } from './utils.js';
|
|
12
12
|
import { DOMAINS } from './constants.js';
|
|
13
13
|
function TabPanel(props) {
|
|
@@ -262,6 +262,9 @@ export default function LayerController(props) {
|
|
|
262
262
|
});
|
|
263
263
|
}
|
|
264
264
|
const controllerSectionClasses = useControllerSectionStyles();
|
|
265
|
+
const accordionClasses = useAccordionStyles();
|
|
266
|
+
const inputLabelClasses = useInputLabelStyles();
|
|
267
|
+
const overflowEllipsisGridClasses = useOverflowEllipsisGridStyles();
|
|
265
268
|
const { visible } = layer;
|
|
266
269
|
const visibleSetting = typeof visible === 'boolean' ? visible : true;
|
|
267
270
|
const Visibility = visibleSetting ? VisibilityIcon : VisibilityOffIcon;
|
|
@@ -276,8 +279,13 @@ export default function LayerController(props) {
|
|
|
276
279
|
globalControlLabels: labels.filter(label => GLOBAL_LABELS.includes(label)), globalLabelValues: globalLabelValues, handleOpacityChange: setOpacity, handleColormapChange: setColormap, handleGlobalChannelsSelectionChange: handleGlobalChannelsSelectionChange, handleTransparentColorChange: setTransparentColor, disableChannelsIfRgbDetected: isRgb(loader, channels) && disableChannelsIfRgbDetected, handleDomainChange: handleDomainChange, shouldShowTransparentColor: shouldShowTransparentColor, shouldShowDomain: shouldShowDomain, shouldShowColormap: shouldShowColormap, use3d: use3d, loader: loader, handleMultiPropertyChange: handleMultiPropertyChange, resolution: resolution, disable3d: disable3d, setRasterLayerCallback: setImageLayerCallback, setAreAllChannelsLoading: setAreAllChannelsLoading, setViewState: setViewState, spatialHeight: spatialHeight, spatialWidth: spatialWidth, modelMatrix: modelMatrix }), isRgb(loader, channels) && disableChannelsIfRgbDetected
|
|
277
280
|
? null
|
|
278
281
|
: channelControllers, isRgb(loader, channels) && disableChannelsIfRgbDetected ? null : (_jsx(Button, { disabled: channels.length === viv.MAX_CHANNELS, onClick: handleChannelAdd, fullWidth: true, variant: "outlined", style: buttonStyles, startIcon: _jsx(AddIcon, {}), size: "small", children: "Add Channel" }))] }));
|
|
279
|
-
return (_jsxs(Accordion, { className: controllerSectionClasses.
|
|
280
|
-
&& setIsExpanded(expanded && e?.target?.attributes?.role?.value === 'presentation'), TransitionProps: { enter: false }, expanded: !disabled && isExpanded, children: [_jsx(
|
|
282
|
+
return (_jsxs(Accordion, { className: controllerSectionClasses.layerControllerRoot, onChange: (e, expanded) => !disabled
|
|
283
|
+
&& setIsExpanded(expanded && e?.target?.attributes?.role?.value === 'presentation'), TransitionProps: { enter: false }, expanded: !disabled && isExpanded, children: [_jsx(AccordionSummary, { classes: {
|
|
284
|
+
root: accordionClasses.accordionSummaryRoot,
|
|
285
|
+
content: accordionClasses.content,
|
|
286
|
+
expanded: accordionClasses.expanded,
|
|
287
|
+
expandIcon: accordionClasses.expandIcon,
|
|
288
|
+
}, expandIcon: _jsx(ExpandMoreIcon, { role: "presentation" }), "aria-controls": `layer-${name}-controls`, children: _jsxs(Grid, { container: true, direction: "column", m: 1, justifyContent: "center", children: [_jsxs(Grid, { item: true, classes: { item: overflowEllipsisGridClasses.item }, children: [_jsx(Button, { onClick: (e) => {
|
|
281
289
|
if (!disabled) {
|
|
282
290
|
// Needed to prevent affecting the expansion panel from changing
|
|
283
291
|
e.stopPropagation();
|
|
@@ -289,7 +297,7 @@ export default function LayerController(props) {
|
|
|
289
297
|
marginBottom: 2,
|
|
290
298
|
padding: 0,
|
|
291
299
|
minWidth: 0,
|
|
292
|
-
}, children: _jsx(Visibility, {}) }), name] }), !disabled && !isExpanded && !use3d && (_jsxs(Grid, { container: true, direction: "row", alignItems: "center", justifyContent: "center", children: [_jsx(Grid, { item: true, xs: 6, children: _jsx(
|
|
300
|
+
}, children: _jsx(Visibility, {}) }), name] }), !disabled && !isExpanded && !use3d && (_jsxs(Grid, { container: true, direction: "row", alignItems: "center", justifyContent: "center", children: [_jsx(Grid, { item: true, xs: 6, children: _jsx(InputLabel, { htmlFor: `layer-${name}-opacity-closed`, classes: { root: inputLabelClasses.inputLabelRoot }, children: "Opacity:" }) }), _jsx(Grid, { item: true, xs: 6, children: _jsx(Slider, { id: `layer-${name}-opacity-closed`, value: opacity, onChange: (e, v) => setOpacity(v), valueLabelDisplay: "auto", getAriaLabel: () => 'opacity slider', min: 0, max: 1, step: 0.01, orientation: "horizontal" }) })] }))] }) }), _jsxs(AccordionDetails, { classes: { root: accordionClasses.accordionDetailsRoot }, children: [useVolumeTabs ? (_jsxs(_Fragment, { children: [_jsxs(Tabs, { value: tab, onChange: handleTabChange, "aria-label": "simple tabs example", style: { height: '24px', minHeight: '24px' }, children: [_jsx(Tab, { label: "Channels", style: {
|
|
293
301
|
fontSize: '.75rem',
|
|
294
302
|
bottom: 12,
|
|
295
303
|
width: '50%',
|
|
@@ -139,9 +139,9 @@ export function LayerControllerSubscriber(props) {
|
|
|
139
139
|
const { height: windowHeight, width: windowWidth } = useWindowDimensions();
|
|
140
140
|
// Get data from loaders using the data hooks.
|
|
141
141
|
// eslint-disable-next-line no-unused-vars
|
|
142
|
-
const [obsLocationsData, obsLocationsStatus] = useObsLocationsData(loaders, dataset,
|
|
143
|
-
const [{ obsSegmentations, obsSegmentationsType }, obsSegmentationsStatus,] = useObsSegmentationsData(loaders, dataset,
|
|
144
|
-
const [{ image }, imageStatus] = useImageData(loaders, dataset,
|
|
142
|
+
const [obsLocationsData, obsLocationsStatus] = useObsLocationsData(loaders, dataset, false, { setSpatialPointLayer: setMoleculesLayer }, { spatialPointLayer: moleculesLayer }, {});
|
|
143
|
+
const [{ obsSegmentations, obsSegmentationsType }, obsSegmentationsStatus,] = useObsSegmentationsData(loaders, dataset, false, { setSpatialSegmentationLayer: setCellsLayer }, { spatialSegmentationLayer: cellsLayer }, {});
|
|
144
|
+
const [{ image }, imageStatus] = useImageData(loaders, dataset, false, { setSpatialImageLayer: setRasterLayers }, { spatialImageLayer: rasterLayers }, {});
|
|
145
145
|
const { loaders: imageLayerLoaders, meta: imageLayerMeta } = image || {};
|
|
146
146
|
const isReady = useReady([
|
|
147
147
|
obsLocationsStatus,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayerOptions.d.ts","sourceRoot":"","sources":["../src/LayerOptions.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"LayerOptions.d.ts","sourceRoot":"","sources":["../src/LayerOptions.js"],"names":[],"mappings":";AAgUA;;;;;;;;;;;;;GAaG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA4HC"}
|
package/dist-tsc/LayerOptions.js
CHANGED
|
@@ -7,7 +7,7 @@ import { viv } from '@vitessce/gl';
|
|
|
7
7
|
import { DEFAULT_RASTER_DOMAIN_TYPE } from '@vitessce/spatial-utils';
|
|
8
8
|
import { COLORMAP_OPTIONS, canLoadResolution, formatBytes, getStatsForResolution, } from '@vitessce/utils';
|
|
9
9
|
import { getBoundingCube, getMultiSelectionStats, } from './utils.js';
|
|
10
|
-
import {
|
|
10
|
+
import { useSelectionSliderStyles, useSelectStyles } from './styles.js';
|
|
11
11
|
const DOMAIN_OPTIONS = ['Full', 'Min/Max'];
|
|
12
12
|
/**
|
|
13
13
|
* Wrapper for the dropdown that selects a colormap (None, viridis, magma, etc.).
|
|
@@ -154,7 +154,8 @@ function SliderDomainSelector({ value, inputId, handleChange }) {
|
|
|
154
154
|
* @prop {function} possibleValues All available values for the field.
|
|
155
155
|
*/
|
|
156
156
|
function GlobalSelectionSlider({ field, value, handleChange, possibleValues, }) {
|
|
157
|
-
|
|
157
|
+
const classes = useSelectionSliderStyles();
|
|
158
|
+
return (_jsx(Slider, { classes: { root: classes.selectionSliderRoot, markActive: classes.markActive }, value: value,
|
|
158
159
|
// See https://github.com/hms-dbmi/viv/issues/176 for why
|
|
159
160
|
// we have the two handlers.
|
|
160
161
|
onChange: (event, newValue) => {
|
|
@@ -19,7 +19,7 @@ export default function VectorLayerController(props) {
|
|
|
19
19
|
handleLayerChange({ ...layer, visible: v });
|
|
20
20
|
}
|
|
21
21
|
const classes = useControllerSectionStyles();
|
|
22
|
-
return (_jsx(Grid, { item: true, style: { marginTop: '10px' }, children: _jsxs(Paper, { className: classes.
|
|
22
|
+
return (_jsx(Grid, { item: true, style: { marginTop: '10px' }, children: _jsxs(Paper, { className: classes.layerControllerRoot, children: [_jsx(Typography, { style: {
|
|
23
23
|
padding: '15px 8px 0px 8px',
|
|
24
24
|
marginBottom: '-5px',
|
|
25
25
|
}, children: label }), _jsxs(Grid, { container: true, direction: "row", justifyContent: "space-between", children: [_jsx(Grid, { item: true, xs: 2, children: _jsx(Checkbox, { color: "primary", checked: isOn, onChange: (e, v) => handleCheckBoxChange(v) }) }), _jsx(Grid, { item: true, xs: 9, style: { paddingRight: '8px' }, children: _jsx(Slider, { value: slider, min: 0, max: 1, step: 0.001, onChange: (e, v) => handleSliderChange(v), style: { marginTop: '7px' }, orientation: "horizontal" }) })] })] }) }));
|
package/dist-tsc/styles.d.ts
CHANGED
|
@@ -1,76 +1,8 @@
|
|
|
1
1
|
export function MuiSpan(props: any): import(".pnpm/@types+react@18.2.7/node_modules/@types/react").JSX.Element;
|
|
2
2
|
export const useSelectStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"selectRoot">;
|
|
3
|
-
export const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export const
|
|
7
|
-
export const
|
|
8
|
-
export const StyledAccordionSummary: import(".pnpm/@types+react@18.2.7/node_modules/@types/react").ComponentType<Pick<{
|
|
9
|
-
children?: import(".pnpm/@types+react@18.2.7/node_modules/@types/react").ReactNode;
|
|
10
|
-
expandIcon?: import(".pnpm/@types+react@18.2.7/node_modules/@types/react").ReactNode;
|
|
11
|
-
IconButtonProps?: Partial<import("@material-ui/core").IconButtonProps<"button", {}>> | undefined;
|
|
12
|
-
} & {
|
|
13
|
-
action?: import(".pnpm/@types+react@18.2.7/node_modules/@types/react").Ref<import("@material-ui/core").ButtonBaseActions> | undefined;
|
|
14
|
-
buttonRef?: import(".pnpm/@types+react@18.2.7/node_modules/@types/react").Ref<unknown> | undefined;
|
|
15
|
-
centerRipple?: boolean | undefined;
|
|
16
|
-
children?: import(".pnpm/@types+react@18.2.7/node_modules/@types/react").ReactNode;
|
|
17
|
-
disabled?: boolean | undefined;
|
|
18
|
-
disableRipple?: boolean | undefined;
|
|
19
|
-
disableTouchRipple?: boolean | undefined;
|
|
20
|
-
focusRipple?: boolean | undefined;
|
|
21
|
-
focusVisibleClassName?: string | undefined;
|
|
22
|
-
onFocusVisible?: import(".pnpm/@types+react@18.2.7/node_modules/@types/react").FocusEventHandler<any> | undefined;
|
|
23
|
-
tabIndex?: string | number | undefined;
|
|
24
|
-
TouchRippleProps?: Partial<import("@material-ui/core/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
25
|
-
} & import("@material-ui/core/OverridableComponent").CommonProps<import("@material-ui/core").ExtendButtonBaseTypeMap<import("@material-ui/core").AccordionSummaryTypeMap<{}, "div">>> & Pick<Omit<import(".pnpm/@types+react@18.2.7/node_modules/@types/react").DetailedHTMLProps<import(".pnpm/@types+react@18.2.7/node_modules/@types/react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
26
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import(".pnpm/@types+react@18.2.7/node_modules/@types/react").RefObject<HTMLDivElement> | null | undefined;
|
|
27
|
-
}, "color" | "content" | "translate" | "hidden" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "ref" | "key">, "color" | "content" | "translate" | "hidden" | "style" | "disabled" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "innerRef" | "ref" | "expandIcon" | "key" | "IconButtonProps" | "action" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps"> & import("@material-ui/core").StyledComponentProps<"content" | "expanded" | "root" | "expandIcon">>;
|
|
28
|
-
export const StyledInputLabel: import(".pnpm/@types+react@18.2.7/node_modules/@types/react").ComponentType<Pick<import("@material-ui/core").InputLabelProps, "color" | "content" | "translate" | "margin" | "hidden" | "style" | "filled" | "disabled" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "innerRef" | "ref" | "form" | "key" | "focused" | "htmlFor" | "error" | "required" | "shrink" | "disableAnimation" | "variant"> & import("@material-ui/core").StyledComponentProps<"root">>;
|
|
29
|
-
export const OverflowEllipsisGrid: import(".pnpm/@types+react@18.2.7/node_modules/@types/react").ComponentType<Pick<{
|
|
30
|
-
alignContent?: import("@material-ui/core").GridContentAlignment | undefined;
|
|
31
|
-
alignItems?: import("@material-ui/core").GridItemsAlignment | undefined;
|
|
32
|
-
children?: import(".pnpm/@types+react@18.2.7/node_modules/@types/react").ReactNode;
|
|
33
|
-
container?: boolean | undefined;
|
|
34
|
-
direction?: import("@material-ui/core").GridDirection | undefined;
|
|
35
|
-
item?: boolean | undefined;
|
|
36
|
-
justify?: import("@material-ui/core").GridJustification | undefined;
|
|
37
|
-
justifyContent?: import("@material-ui/core").GridJustification | undefined;
|
|
38
|
-
lg?: boolean | import("@material-ui/core").GridSize | undefined;
|
|
39
|
-
md?: boolean | import("@material-ui/core").GridSize | undefined;
|
|
40
|
-
sm?: boolean | import("@material-ui/core").GridSize | undefined;
|
|
41
|
-
spacing?: import("@material-ui/core").GridSpacing | undefined;
|
|
42
|
-
wrap?: import("@material-ui/core").GridWrap | undefined;
|
|
43
|
-
xl?: boolean | import("@material-ui/core").GridSize | undefined;
|
|
44
|
-
xs?: boolean | import("@material-ui/core").GridSize | undefined;
|
|
45
|
-
zeroMinWidth?: boolean | undefined;
|
|
46
|
-
} & import("@material-ui/core/OverridableComponent").CommonProps<import("@material-ui/core").GridTypeMap<{}, "div">> & Pick<Omit<import(".pnpm/@types+react@18.2.7/node_modules/@types/react").DetailedHTMLProps<import(".pnpm/@types+react@18.2.7/node_modules/@types/react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
47
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import(".pnpm/@types+react@18.2.7/node_modules/@types/react").RefObject<HTMLDivElement> | null | undefined;
|
|
48
|
-
}, "color" | "content" | "translate" | "hidden" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "ref" | "key">, "alignContent" | "alignItems" | "color" | "content" | "direction" | "justifyContent" | "translate" | "hidden" | "style" | "wrap" | "justify" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "innerRef" | "ref" | "key" | "item" | "container" | "lg" | "md" | "sm" | "spacing" | "xl" | "xs" | "zeroMinWidth"> & import("@material-ui/core").StyledComponentProps<"item">>;
|
|
49
|
-
export const StyledSelectionSlider: import(".pnpm/@types+react@18.2.7/node_modules/@types/react").ComponentType<Pick<{
|
|
50
|
-
'aria-label'?: string | undefined;
|
|
51
|
-
'aria-labelledby'?: string | undefined;
|
|
52
|
-
'aria-valuetext'?: string | undefined;
|
|
53
|
-
color?: "primary" | "secondary" | undefined;
|
|
54
|
-
defaultValue?: number | number[] | undefined;
|
|
55
|
-
disabled?: boolean | undefined;
|
|
56
|
-
getAriaLabel?: ((index: number) => string) | undefined;
|
|
57
|
-
getAriaValueText?: ((value: number, index: number) => string) | undefined;
|
|
58
|
-
marks?: boolean | import("@material-ui/core").Mark[] | undefined;
|
|
59
|
-
max?: number | undefined;
|
|
60
|
-
min?: number | undefined;
|
|
61
|
-
name?: string | undefined;
|
|
62
|
-
onChange?: ((event: import(".pnpm/@types+react@18.2.7/node_modules/@types/react").ChangeEvent<{}>, value: number | number[]) => void) | undefined;
|
|
63
|
-
onChangeCommitted?: ((event: import(".pnpm/@types+react@18.2.7/node_modules/@types/react").ChangeEvent<{}>, value: number | number[]) => void) | undefined;
|
|
64
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
65
|
-
step?: number | null | undefined;
|
|
66
|
-
scale?: ((value: number) => number) | undefined;
|
|
67
|
-
ThumbComponent?: import(".pnpm/@types+react@18.2.7/node_modules/@types/react").ElementType<import(".pnpm/@types+react@18.2.7/node_modules/@types/react").HTMLAttributes<HTMLSpanElement>> | undefined;
|
|
68
|
-
track?: false | "normal" | "inverted" | undefined;
|
|
69
|
-
value?: number | number[] | undefined;
|
|
70
|
-
ValueLabelComponent?: import(".pnpm/@types+react@18.2.7/node_modules/@types/react").ElementType<import("@material-ui/core").ValueLabelProps> | undefined;
|
|
71
|
-
valueLabelDisplay?: "auto" | "on" | "off" | undefined;
|
|
72
|
-
valueLabelFormat?: string | ((value: number, index: number) => import(".pnpm/@types+react@18.2.7/node_modules/@types/react").ReactNode) | undefined;
|
|
73
|
-
} & import("@material-ui/core/OverridableComponent").CommonProps<import("@material-ui/core").SliderTypeMap<{}, "span">> & Pick<Omit<import(".pnpm/@types+react@18.2.7/node_modules/@types/react").DetailedHTMLProps<import(".pnpm/@types+react@18.2.7/node_modules/@types/react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
74
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | import(".pnpm/@types+react@18.2.7/node_modules/@types/react").RefObject<HTMLSpanElement> | null | undefined;
|
|
75
|
-
}, "content" | "translate" | "hidden" | "children" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "ref" | "key">, "color" | "content" | "scale" | "translate" | "hidden" | "style" | "disabled" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "innerRef" | "ref" | "step" | "track" | "key" | "name" | "value" | "getAriaLabel" | "getAriaValueText" | "marks" | "max" | "min" | "onChangeCommitted" | "orientation" | "ThumbComponent" | "ValueLabelComponent" | "valueLabelDisplay" | "valueLabelFormat"> & import("@material-ui/core").StyledComponentProps<"root" | "markActive">>;
|
|
3
|
+
export const useControllerSectionStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"layerControllerRoot">;
|
|
4
|
+
export const useAccordionStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<never>;
|
|
5
|
+
export const useInputLabelStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"inputLabelRoot">;
|
|
6
|
+
export const useOverflowEllipsisGridStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"item">;
|
|
7
|
+
export const useSelectionSliderStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"selectionSliderRoot" | "markActive">;
|
|
76
8
|
//# sourceMappingURL=styles.d.ts.map
|
package/dist-tsc/styles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../src/styles.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../src/styles.js"],"names":[],"mappings":"AAWA,+GAIC;AAED,wHAMI;AAOJ,4IAKI;AAEJ,oHAqBI;AAEJ,gIAII;AAEJ,gIAOI;AAEJ,yJAOI"}
|
package/dist-tsc/styles.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { makeStyles
|
|
2
|
+
import { makeStyles } from '@material-ui/core';
|
|
3
3
|
const useSpanStyles = makeStyles(() => ({
|
|
4
4
|
span: {
|
|
5
5
|
width: '70px',
|
|
@@ -20,45 +20,22 @@ export const useSelectStyles = makeStyles(() => ({
|
|
|
20
20
|
margin: '4px 0',
|
|
21
21
|
},
|
|
22
22
|
}));
|
|
23
|
-
export const useOptionStyles = withStyles(theme => ({
|
|
24
|
-
paper: {
|
|
25
|
-
backgroundColor: theme.palette.background.paper,
|
|
26
|
-
},
|
|
27
|
-
span: {
|
|
28
|
-
width: '70px',
|
|
29
|
-
textAlign: 'center',
|
|
30
|
-
paddingLeft: '2px',
|
|
31
|
-
paddingRight: '2px',
|
|
32
|
-
},
|
|
33
|
-
colors: {
|
|
34
|
-
'&:hover': {
|
|
35
|
-
backgroundColor: 'transparent',
|
|
36
|
-
},
|
|
37
|
-
paddingLeft: '2px',
|
|
38
|
-
paddingRight: '2px',
|
|
39
|
-
},
|
|
40
|
-
popper: {
|
|
41
|
-
zIndex: 4,
|
|
42
|
-
},
|
|
43
|
-
}));
|
|
44
23
|
const sharedControllerStyles = {
|
|
45
24
|
width: '100%',
|
|
46
25
|
flexDirection: 'column',
|
|
47
26
|
};
|
|
48
27
|
export const useControllerSectionStyles = makeStyles(() => ({
|
|
49
|
-
|
|
28
|
+
layerControllerRoot: {
|
|
50
29
|
...sharedControllerStyles,
|
|
51
30
|
padding: '0px 8px',
|
|
52
31
|
},
|
|
53
32
|
}));
|
|
54
|
-
export const
|
|
55
|
-
|
|
33
|
+
export const useAccordionStyles = makeStyles(theme => ({
|
|
34
|
+
accordionDetailsRoot: {
|
|
56
35
|
...sharedControllerStyles,
|
|
57
36
|
padding: '8px 8px 24px 8px',
|
|
58
37
|
},
|
|
59
|
-
|
|
60
|
-
export const StyledAccordionSummary = withStyles(theme => ({
|
|
61
|
-
root: {
|
|
38
|
+
accordionSummaryRoot: {
|
|
62
39
|
padding: '0px 8px',
|
|
63
40
|
},
|
|
64
41
|
content: {
|
|
@@ -74,25 +51,25 @@ export const StyledAccordionSummary = withStyles(theme => ({
|
|
|
74
51
|
top: theme.spacing(-1.3),
|
|
75
52
|
},
|
|
76
53
|
},
|
|
77
|
-
}))
|
|
78
|
-
export const
|
|
79
|
-
|
|
54
|
+
}));
|
|
55
|
+
export const useInputLabelStyles = makeStyles(() => ({
|
|
56
|
+
inputLabelRoot: {
|
|
80
57
|
fontSize: '14px',
|
|
81
58
|
},
|
|
82
|
-
}))
|
|
83
|
-
export const
|
|
59
|
+
}));
|
|
60
|
+
export const useOverflowEllipsisGridStyles = makeStyles(() => ({
|
|
84
61
|
item: {
|
|
85
62
|
width: '100%',
|
|
86
63
|
overflow: 'hidden',
|
|
87
64
|
whiteSpace: 'nowrap',
|
|
88
65
|
textOverflow: 'ellipsis',
|
|
89
66
|
},
|
|
90
|
-
}))
|
|
91
|
-
export const
|
|
92
|
-
|
|
67
|
+
}));
|
|
68
|
+
export const useSelectionSliderStyles = makeStyles(() => ({
|
|
69
|
+
selectionSliderRoot: {
|
|
93
70
|
marginTop: '7px',
|
|
94
71
|
},
|
|
95
72
|
markActive: {
|
|
96
73
|
backgroundColor: 'rgba(128, 128, 128, 0.7)',
|
|
97
74
|
},
|
|
98
|
-
}))
|
|
75
|
+
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/layer-controller",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -20,23 +20,23 @@
|
|
|
20
20
|
"@material-ui/icons": "~4.11.2",
|
|
21
21
|
"lodash-es": "^4.17.21",
|
|
22
22
|
"math.gl": "^3.5.6",
|
|
23
|
-
"@vitessce/constants-internal": "3.0.
|
|
24
|
-
"@vitessce/gl": "3.0.
|
|
25
|
-
"@vitessce/spatial-utils": "3.0.
|
|
26
|
-
"@vitessce/utils": "3.0.
|
|
27
|
-
"@vitessce/vit-s": "3.0.
|
|
23
|
+
"@vitessce/constants-internal": "3.0.1",
|
|
24
|
+
"@vitessce/gl": "3.0.1",
|
|
25
|
+
"@vitessce/spatial-utils": "3.0.1",
|
|
26
|
+
"@vitessce/utils": "3.0.1",
|
|
27
|
+
"@vitessce/vit-s": "3.0.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"react": "^18.0.0",
|
|
31
31
|
"vite": "^4.3.0",
|
|
32
|
-
"vitest": "^0.
|
|
32
|
+
"vitest": "^0.32.2"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
|
|
39
|
-
"test": "pnpm exec vitest --run
|
|
39
|
+
"test": "pnpm exec vitest --run"
|
|
40
40
|
},
|
|
41
41
|
"module": "dist/index.js",
|
|
42
42
|
"exports": {
|
package/src/ColorPalette.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Lens as LensIcon } from '@material-ui/icons';
|
|
|
4
4
|
import { VIEWER_PALETTE } from '@vitessce/utils';
|
|
5
5
|
|
|
6
6
|
const useStyles = makeStyles(theme => ({
|
|
7
|
-
|
|
7
|
+
paletteContainer: {
|
|
8
8
|
width: '70px',
|
|
9
9
|
height: '40px',
|
|
10
10
|
display: 'flex',
|
|
@@ -27,7 +27,7 @@ const useStyles = makeStyles(theme => ({
|
|
|
27
27
|
const ColorPalette = ({ handleChange }) => {
|
|
28
28
|
const classes = useStyles();
|
|
29
29
|
return (
|
|
30
|
-
<div className={classes.
|
|
30
|
+
<div className={classes.paletteContainer} aria-label="color-swatch">
|
|
31
31
|
{VIEWER_PALETTE.map(color => (
|
|
32
32
|
<IconButton
|
|
33
33
|
className={classes.button}
|
package/src/LayerController.js
CHANGED
|
@@ -4,7 +4,10 @@ import {
|
|
|
4
4
|
GLOBAL_LABELS, getSourceFromLoader, isRgb,
|
|
5
5
|
} from '@vitessce/spatial-utils';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
Grid, Button, Slider, Tabs, Tab, InputLabel,
|
|
9
|
+
Accordion, AccordionDetails, AccordionSummary,
|
|
10
|
+
} from '@material-ui/core';
|
|
8
11
|
import {
|
|
9
12
|
Add as AddIcon,
|
|
10
13
|
ExpandMore as ExpandMoreIcon,
|
|
@@ -18,10 +21,9 @@ import LayerOptions from './LayerOptions.js';
|
|
|
18
21
|
import VolumeOptions from './VolumeOptions.js';
|
|
19
22
|
import {
|
|
20
23
|
useControllerSectionStyles,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
OverflowEllipsisGrid,
|
|
24
|
+
useInputLabelStyles,
|
|
25
|
+
useOverflowEllipsisGridStyles,
|
|
26
|
+
useAccordionStyles,
|
|
25
27
|
} from './styles.js';
|
|
26
28
|
import { getMultiSelectionStats } from './utils.js';
|
|
27
29
|
|
|
@@ -395,6 +397,9 @@ export default function LayerController(props) {
|
|
|
395
397
|
}
|
|
396
398
|
|
|
397
399
|
const controllerSectionClasses = useControllerSectionStyles();
|
|
400
|
+
const accordionClasses = useAccordionStyles();
|
|
401
|
+
const inputLabelClasses = useInputLabelStyles();
|
|
402
|
+
const overflowEllipsisGridClasses = useOverflowEllipsisGridStyles();
|
|
398
403
|
|
|
399
404
|
const { visible } = layer;
|
|
400
405
|
const visibleSetting = typeof visible === 'boolean' ? visible : true;
|
|
@@ -463,7 +468,7 @@ export default function LayerController(props) {
|
|
|
463
468
|
);
|
|
464
469
|
return (
|
|
465
470
|
<Accordion
|
|
466
|
-
className={controllerSectionClasses.
|
|
471
|
+
className={controllerSectionClasses.layerControllerRoot}
|
|
467
472
|
onChange={(e, expanded) => !disabled
|
|
468
473
|
&& setIsExpanded(
|
|
469
474
|
expanded && e?.target?.attributes?.role?.value === 'presentation',
|
|
@@ -472,12 +477,18 @@ export default function LayerController(props) {
|
|
|
472
477
|
TransitionProps={{ enter: false }}
|
|
473
478
|
expanded={!disabled && isExpanded}
|
|
474
479
|
>
|
|
475
|
-
<
|
|
480
|
+
<AccordionSummary
|
|
481
|
+
classes={{
|
|
482
|
+
root: accordionClasses.accordionSummaryRoot,
|
|
483
|
+
content: accordionClasses.content,
|
|
484
|
+
expanded: accordionClasses.expanded,
|
|
485
|
+
expandIcon: accordionClasses.expandIcon,
|
|
486
|
+
}}
|
|
476
487
|
expandIcon={<ExpandMoreIcon role="presentation" />}
|
|
477
488
|
aria-controls={`layer-${name}-controls`}
|
|
478
489
|
>
|
|
479
490
|
<Grid container direction="column" m={1} justifyContent="center">
|
|
480
|
-
<
|
|
491
|
+
<Grid item classes={{ item: overflowEllipsisGridClasses.item }}>
|
|
481
492
|
<Button
|
|
482
493
|
onClick={(e) => {
|
|
483
494
|
if (!disabled) {
|
|
@@ -497,7 +508,7 @@ export default function LayerController(props) {
|
|
|
497
508
|
<Visibility />
|
|
498
509
|
</Button>
|
|
499
510
|
{name}
|
|
500
|
-
</
|
|
511
|
+
</Grid>
|
|
501
512
|
{!disabled && !isExpanded && !use3d && (
|
|
502
513
|
<Grid
|
|
503
514
|
container
|
|
@@ -506,9 +517,12 @@ export default function LayerController(props) {
|
|
|
506
517
|
justifyContent="center"
|
|
507
518
|
>
|
|
508
519
|
<Grid item xs={6}>
|
|
509
|
-
<
|
|
520
|
+
<InputLabel
|
|
521
|
+
htmlFor={`layer-${name}-opacity-closed`}
|
|
522
|
+
classes={{ root: inputLabelClasses.inputLabelRoot }}
|
|
523
|
+
>
|
|
510
524
|
Opacity:
|
|
511
|
-
</
|
|
525
|
+
</InputLabel>
|
|
512
526
|
</Grid>
|
|
513
527
|
<Grid item xs={6}>
|
|
514
528
|
<Slider
|
|
@@ -526,8 +540,8 @@ export default function LayerController(props) {
|
|
|
526
540
|
</Grid>
|
|
527
541
|
)}
|
|
528
542
|
</Grid>
|
|
529
|
-
</
|
|
530
|
-
<
|
|
543
|
+
</AccordionSummary>
|
|
544
|
+
<AccordionDetails classes={{ root: accordionClasses.accordionDetailsRoot }}>
|
|
531
545
|
{useVolumeTabs ? (
|
|
532
546
|
<>
|
|
533
547
|
<Tabs
|
|
@@ -590,7 +604,7 @@ export default function LayerController(props) {
|
|
|
590
604
|
Remove Image Layer
|
|
591
605
|
</Button>
|
|
592
606
|
) : null}
|
|
593
|
-
</
|
|
607
|
+
</AccordionDetails>
|
|
594
608
|
</Accordion>
|
|
595
609
|
);
|
|
596
610
|
}
|
|
@@ -370,7 +370,7 @@ export function LayerControllerSubscriber(props) {
|
|
|
370
370
|
// Get data from loaders using the data hooks.
|
|
371
371
|
// eslint-disable-next-line no-unused-vars
|
|
372
372
|
const [obsLocationsData, obsLocationsStatus] = useObsLocationsData(
|
|
373
|
-
loaders, dataset,
|
|
373
|
+
loaders, dataset, false,
|
|
374
374
|
{ setSpatialPointLayer: setMoleculesLayer },
|
|
375
375
|
{ spatialPointLayer: moleculesLayer },
|
|
376
376
|
{}, // TODO: use obsType once #1240 is merged.
|
|
@@ -379,13 +379,13 @@ export function LayerControllerSubscriber(props) {
|
|
|
379
379
|
{ obsSegmentations, obsSegmentationsType },
|
|
380
380
|
obsSegmentationsStatus,
|
|
381
381
|
] = useObsSegmentationsData(
|
|
382
|
-
loaders, dataset,
|
|
382
|
+
loaders, dataset, false,
|
|
383
383
|
{ setSpatialSegmentationLayer: setCellsLayer },
|
|
384
384
|
{ spatialSegmentationLayer: cellsLayer },
|
|
385
385
|
{}, // TODO: use obsType once #1240 is merged.
|
|
386
386
|
);
|
|
387
387
|
const [{ image }, imageStatus] = useImageData(
|
|
388
|
-
loaders, dataset,
|
|
388
|
+
loaders, dataset, false,
|
|
389
389
|
{ setSpatialImageLayer: setRasterLayers },
|
|
390
390
|
{ spatialImageLayer: rasterLayers },
|
|
391
391
|
{}, // TODO: which values to match on
|
package/src/LayerOptions.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
getBoundingCube, getMultiSelectionStats,
|
|
15
15
|
} from './utils.js';
|
|
16
|
-
import {
|
|
16
|
+
import { useSelectionSliderStyles, useSelectStyles } from './styles.js';
|
|
17
17
|
|
|
18
18
|
const DOMAIN_OPTIONS = ['Full', 'Min/Max'];
|
|
19
19
|
|
|
@@ -270,8 +270,10 @@ function GlobalSelectionSlider({
|
|
|
270
270
|
handleChange,
|
|
271
271
|
possibleValues,
|
|
272
272
|
}) {
|
|
273
|
+
const classes = useSelectionSliderStyles();
|
|
273
274
|
return (
|
|
274
|
-
<
|
|
275
|
+
<Slider
|
|
276
|
+
classes={{ root: classes.selectionSliderRoot, markActive: classes.markActive }}
|
|
275
277
|
value={value}
|
|
276
278
|
// See https://github.com/hms-dbmi/viv/issues/176 for why
|
|
277
279
|
// we have the two handlers.
|
|
@@ -30,7 +30,7 @@ export default function VectorLayerController(props) {
|
|
|
30
30
|
const classes = useControllerSectionStyles();
|
|
31
31
|
return (
|
|
32
32
|
<Grid item style={{ marginTop: '10px' }}>
|
|
33
|
-
<Paper className={classes.
|
|
33
|
+
<Paper className={classes.layerControllerRoot}>
|
|
34
34
|
<Typography
|
|
35
35
|
style={{
|
|
36
36
|
padding: '15px 8px 0px 8px',
|
package/src/styles.js
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
makeStyles,
|
|
3
|
-
withStyles,
|
|
4
|
-
AccordionSummary,
|
|
5
|
-
AccordionDetails,
|
|
6
|
-
InputLabel,
|
|
7
|
-
Slider,
|
|
8
|
-
Grid,
|
|
9
|
-
} from '@material-ui/core';
|
|
1
|
+
import { makeStyles } from '@material-ui/core';
|
|
10
2
|
|
|
11
3
|
const useSpanStyles = makeStyles(() => ({
|
|
12
4
|
span: {
|
|
@@ -31,49 +23,24 @@ export const useSelectStyles = makeStyles(() => ({
|
|
|
31
23
|
},
|
|
32
24
|
}));
|
|
33
25
|
|
|
34
|
-
export const useOptionStyles = withStyles(theme => ({
|
|
35
|
-
paper: {
|
|
36
|
-
backgroundColor: theme.palette.background.paper,
|
|
37
|
-
},
|
|
38
|
-
span: {
|
|
39
|
-
width: '70px',
|
|
40
|
-
textAlign: 'center',
|
|
41
|
-
paddingLeft: '2px',
|
|
42
|
-
paddingRight: '2px',
|
|
43
|
-
},
|
|
44
|
-
colors: {
|
|
45
|
-
'&:hover': {
|
|
46
|
-
backgroundColor: 'transparent',
|
|
47
|
-
},
|
|
48
|
-
paddingLeft: '2px',
|
|
49
|
-
paddingRight: '2px',
|
|
50
|
-
},
|
|
51
|
-
popper: {
|
|
52
|
-
zIndex: 4,
|
|
53
|
-
},
|
|
54
|
-
}));
|
|
55
|
-
|
|
56
26
|
const sharedControllerStyles = {
|
|
57
27
|
width: '100%',
|
|
58
28
|
flexDirection: 'column',
|
|
59
29
|
};
|
|
60
30
|
|
|
61
31
|
export const useControllerSectionStyles = makeStyles(() => ({
|
|
62
|
-
|
|
32
|
+
layerControllerRoot: {
|
|
63
33
|
...sharedControllerStyles,
|
|
64
34
|
padding: '0px 8px',
|
|
65
35
|
},
|
|
66
36
|
}));
|
|
67
37
|
|
|
68
|
-
export const
|
|
69
|
-
|
|
38
|
+
export const useAccordionStyles = makeStyles(theme => ({
|
|
39
|
+
accordionDetailsRoot: {
|
|
70
40
|
...sharedControllerStyles,
|
|
71
41
|
padding: '8px 8px 24px 8px',
|
|
72
42
|
},
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
export const StyledAccordionSummary = withStyles(theme => ({
|
|
76
|
-
root: {
|
|
43
|
+
accordionSummaryRoot: {
|
|
77
44
|
padding: '0px 8px',
|
|
78
45
|
},
|
|
79
46
|
content: {
|
|
@@ -89,28 +56,28 @@ export const StyledAccordionSummary = withStyles(theme => ({
|
|
|
89
56
|
top: theme.spacing(-1.3),
|
|
90
57
|
},
|
|
91
58
|
},
|
|
92
|
-
}))
|
|
59
|
+
}));
|
|
93
60
|
|
|
94
|
-
export const
|
|
95
|
-
|
|
61
|
+
export const useInputLabelStyles = makeStyles(() => ({
|
|
62
|
+
inputLabelRoot: {
|
|
96
63
|
fontSize: '14px',
|
|
97
64
|
},
|
|
98
|
-
}))
|
|
65
|
+
}));
|
|
99
66
|
|
|
100
|
-
export const
|
|
67
|
+
export const useOverflowEllipsisGridStyles = makeStyles(() => ({
|
|
101
68
|
item: {
|
|
102
69
|
width: '100%',
|
|
103
70
|
overflow: 'hidden',
|
|
104
71
|
whiteSpace: 'nowrap',
|
|
105
72
|
textOverflow: 'ellipsis',
|
|
106
73
|
},
|
|
107
|
-
}))
|
|
74
|
+
}));
|
|
108
75
|
|
|
109
|
-
export const
|
|
110
|
-
|
|
76
|
+
export const useSelectionSliderStyles = makeStyles(() => ({
|
|
77
|
+
selectionSliderRoot: {
|
|
111
78
|
marginTop: '7px',
|
|
112
79
|
},
|
|
113
80
|
markActive: {
|
|
114
81
|
backgroundColor: 'rgba(128, 128, 128, 0.7)',
|
|
115
82
|
},
|
|
116
|
-
}))
|
|
83
|
+
}));
|