@vitessce/layer-controller 2.0.3 → 3.0.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.b44720d0.mjs → deflate-75511377.js} +2 -2
- package/dist/{index.ca9e70ae.mjs → index-841a1af6.js} +137252 -126353
- package/dist/{index.mjs → index.js} +2 -3
- package/dist/{jpeg.edb20ff0.mjs → jpeg-6023316d.js} +1 -1
- package/dist/{lerc.df2f1733.mjs → lerc-82182c45.js} +76 -5
- package/dist/{lzw.2a639594.mjs → lzw-2ab01db2.js} +1 -1
- package/dist/{packbits.958f7a40.mjs → packbits-2633f360.js} +1 -1
- package/dist/{pako.esm.4b234125.mjs → pako.esm-68f84e2a.js} +97 -15
- package/dist/{raw.4239192e.mjs → raw-51e455c7.js} +1 -1
- package/dist/{webimage.de21cf13.mjs → webimage-bbb56d18.js} +1 -1
- package/dist-tsc/BitmaskChannelController.d.ts +21 -0
- package/dist-tsc/BitmaskChannelController.d.ts.map +1 -0
- package/dist-tsc/BitmaskChannelController.js +30 -0
- package/dist-tsc/ChannelOptions.d.ts +13 -0
- package/dist-tsc/ChannelOptions.d.ts.map +1 -0
- package/dist-tsc/ChannelOptions.js +38 -0
- package/dist-tsc/ColorPalette.d.ts +5 -0
- package/dist-tsc/ColorPalette.d.ts.map +1 -0
- package/dist-tsc/ColorPalette.js +30 -0
- package/dist-tsc/ImageAddButton.d.ts +6 -0
- package/dist-tsc/ImageAddButton.d.ts.map +1 -0
- package/dist-tsc/ImageAddButton.js +27 -0
- package/dist-tsc/LayerController.d.ts +10 -0
- package/dist-tsc/LayerController.d.ts.map +1 -0
- package/dist-tsc/LayerController.js +303 -0
- package/dist-tsc/LayerControllerSubscriber.d.ts +27 -0
- package/dist-tsc/LayerControllerSubscriber.d.ts.map +1 -0
- package/dist-tsc/LayerControllerSubscriber.js +194 -0
- package/dist-tsc/LayerOptions.d.ts +46 -0
- package/dist-tsc/LayerOptions.d.ts.map +1 -0
- package/dist-tsc/LayerOptions.js +207 -0
- package/dist-tsc/RasterChannelController.d.ts +35 -0
- package/dist-tsc/RasterChannelController.d.ts.map +1 -0
- package/dist-tsc/RasterChannelController.js +150 -0
- package/dist-tsc/RasterChannelController.test.d.ts +2 -0
- package/dist-tsc/RasterChannelController.test.d.ts.map +1 -0
- package/dist-tsc/RasterChannelController.test.js +21 -0
- package/dist-tsc/VectorLayerController.d.ts +2 -0
- package/dist-tsc/VectorLayerController.d.ts.map +1 -0
- package/dist-tsc/VectorLayerController.js +26 -0
- package/dist-tsc/VolumeOptions.d.ts +16 -0
- package/dist-tsc/VolumeOptions.d.ts.map +1 -0
- package/dist-tsc/VolumeOptions.js +71 -0
- package/dist-tsc/constants.d.ts +2 -0
- package/dist-tsc/constants.d.ts.map +1 -0
- package/dist-tsc/constants.js +12 -0
- package/dist-tsc/index.d.ts +4 -0
- package/dist-tsc/index.d.ts.map +1 -0
- package/dist-tsc/index.js +3 -3
- package/dist-tsc/shared-channel-controls.d.ts +27 -0
- package/dist-tsc/shared-channel-controls.d.ts.map +1 -0
- package/dist-tsc/shared-channel-controls.js +25 -0
- package/dist-tsc/styles.d.ts +76 -0
- package/dist-tsc/styles.d.ts.map +1 -0
- package/dist-tsc/styles.js +98 -0
- package/dist-tsc/utils.d.ts +24 -0
- package/dist-tsc/utils.d.ts.map +1 -0
- package/dist-tsc/utils.js +117 -0
- package/package.json +19 -10
- package/src/BitmaskChannelController.js +3 -4
- package/src/ChannelOptions.js +4 -5
- package/src/ColorPalette.js +2 -3
- package/src/ImageAddButton.js +2 -3
- package/src/LayerController.js +13 -16
- package/src/LayerControllerSubscriber.js +6 -15
- package/src/LayerOptions.js +4 -8
- package/src/RasterChannelController.js +7 -18
- package/src/RasterChannelController.test.js +1 -1
- package/src/VectorLayerController.js +2 -6
- package/src/VolumeOptions.js +13 -10
- package/src/index.js +3 -3
- package/src/shared-channel-controls.js +2 -3
- package/src/styles.js +9 -6
- package/src/utils.js +9 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Checkbox, Select } from '@material-ui/core';
|
|
4
|
+
import { useSelectStyles } from './styles.js';
|
|
5
|
+
/**
|
|
6
|
+
* Dropdown for selecting a channel.
|
|
7
|
+
* @prop {function} handleChange Callback for each new selection.
|
|
8
|
+
* @prop {array} channelOptions List of available selections, like ['DAPI', 'FITC', ...].
|
|
9
|
+
* @prop {boolean} disabled Whether or not the component is disabled.
|
|
10
|
+
* @prop {number} selectionIndex Current numeric index of a selection.
|
|
11
|
+
*/
|
|
12
|
+
export function ChannelSelectionDropdown({ handleChange, disabled, channelOptions, selectionIndex, }) {
|
|
13
|
+
const classes = useSelectStyles();
|
|
14
|
+
return (_jsx(Select, { classes: { root: classes.selectRoot }, native: true, value: selectionIndex, onChange: e => handleChange(Number(e.target.value)), children: channelOptions.map((opt, i) => (_jsx("option", { disabled: disabled, value: i, children: opt }, opt))) }));
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Checkbox for toggling on/off of a channel.
|
|
18
|
+
* @prop {string} color Current color for this channel.
|
|
19
|
+
* @prop {boolean} checked Whether or not this channel is "on".
|
|
20
|
+
* @prop {boolean} disabled Whether or not the component is disabled.
|
|
21
|
+
* @prop {function} toggle Callback for toggling on/off.
|
|
22
|
+
*/
|
|
23
|
+
export function ChannelVisibilityCheckbox({ color, checked, toggle, disabled, }) {
|
|
24
|
+
return (_jsx(Checkbox, { onChange: toggle, checked: checked, disabled: disabled, style: { color, '&$checked': { color } } }));
|
|
25
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export function MuiSpan(props: any): import(".pnpm/@types+react@18.2.7/node_modules/@types/react").JSX.Element;
|
|
2
|
+
export const useSelectStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"selectRoot">;
|
|
3
|
+
export const useOptionStyles: import(".pnpm/@material-ui+types@5.1.0/node_modules/@material-ui/types").PropInjector<{
|
|
4
|
+
classes: import("@material-ui/core/styles/withStyles").ClassNameMap<"span" | "paper" | "colors" | "popper">;
|
|
5
|
+
}, import("@material-ui/core").StyledComponentProps<"span" | "paper" | "colors" | "popper">>;
|
|
6
|
+
export const useControllerSectionStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"root">;
|
|
7
|
+
export const StyledAccordionDetails: import(".pnpm/@types+react@18.2.7/node_modules/@types/react").ComponentType<Pick<import("@material-ui/core").AccordionDetailsProps, "color" | "content" | "translate" | "hidden" | "style" | "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"> & import("@material-ui/core").StyledComponentProps<"root">>;
|
|
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">>;
|
|
76
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../src/styles.js"],"names":[],"mappings":"AAmBA,+GAIC;AAED,wHAMI;AAEJ;;6FAoBI;AAOJ,6HAKI;AAEJ,6zJAKsB;AAEtB;;;;;;;;;;;;;;;;;;;87SAiBsB;AAEtB,g8JAIgB;AAEhB;;;;;;;;;;;;;;;;;;;23SAOU;AAEV;;;;;;;;;;;;;;;;;;;;;;;;;;q4SAOY"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { makeStyles, withStyles, AccordionSummary, AccordionDetails, InputLabel, Slider, Grid, } from '@material-ui/core';
|
|
3
|
+
const useSpanStyles = makeStyles(() => ({
|
|
4
|
+
span: {
|
|
5
|
+
width: '70px',
|
|
6
|
+
textAlign: 'center',
|
|
7
|
+
paddingLeft: '2px',
|
|
8
|
+
paddingRight: '2px',
|
|
9
|
+
},
|
|
10
|
+
}));
|
|
11
|
+
export function MuiSpan(props) {
|
|
12
|
+
const { children } = props;
|
|
13
|
+
const classes = useSpanStyles();
|
|
14
|
+
return _jsx("span", { className: classes.span, children: children });
|
|
15
|
+
}
|
|
16
|
+
export const useSelectStyles = makeStyles(() => ({
|
|
17
|
+
selectRoot: {
|
|
18
|
+
padding: 0,
|
|
19
|
+
height: 'auto',
|
|
20
|
+
margin: '4px 0',
|
|
21
|
+
},
|
|
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
|
+
const sharedControllerStyles = {
|
|
45
|
+
width: '100%',
|
|
46
|
+
flexDirection: 'column',
|
|
47
|
+
};
|
|
48
|
+
export const useControllerSectionStyles = makeStyles(() => ({
|
|
49
|
+
root: {
|
|
50
|
+
...sharedControllerStyles,
|
|
51
|
+
padding: '0px 8px',
|
|
52
|
+
},
|
|
53
|
+
}));
|
|
54
|
+
export const StyledAccordionDetails = withStyles(() => ({
|
|
55
|
+
root: {
|
|
56
|
+
...sharedControllerStyles,
|
|
57
|
+
padding: '8px 8px 24px 8px',
|
|
58
|
+
},
|
|
59
|
+
}))(AccordionDetails);
|
|
60
|
+
export const StyledAccordionSummary = withStyles(theme => ({
|
|
61
|
+
root: {
|
|
62
|
+
padding: '0px 8px',
|
|
63
|
+
},
|
|
64
|
+
content: {
|
|
65
|
+
margin: '4px 0px',
|
|
66
|
+
minWidth: '0px',
|
|
67
|
+
},
|
|
68
|
+
expanded: {
|
|
69
|
+
marginBottom: theme.spacing(-3),
|
|
70
|
+
top: theme.spacing(-1),
|
|
71
|
+
},
|
|
72
|
+
expandIcon: {
|
|
73
|
+
'&$expanded': {
|
|
74
|
+
top: theme.spacing(-1.3),
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
}))(AccordionSummary);
|
|
78
|
+
export const StyledInputLabel = withStyles(() => ({
|
|
79
|
+
root: {
|
|
80
|
+
fontSize: '14px',
|
|
81
|
+
},
|
|
82
|
+
}))(InputLabel);
|
|
83
|
+
export const OverflowEllipsisGrid = withStyles(() => ({
|
|
84
|
+
item: {
|
|
85
|
+
width: '100%',
|
|
86
|
+
overflow: 'hidden',
|
|
87
|
+
whiteSpace: 'nowrap',
|
|
88
|
+
textOverflow: 'ellipsis',
|
|
89
|
+
},
|
|
90
|
+
}))(Grid);
|
|
91
|
+
export const StyledSelectionSlider = withStyles(() => ({
|
|
92
|
+
root: {
|
|
93
|
+
marginTop: '7px',
|
|
94
|
+
},
|
|
95
|
+
markActive: {
|
|
96
|
+
backgroundColor: 'rgba(128, 128, 128, 0.7)',
|
|
97
|
+
},
|
|
98
|
+
}))(Slider);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get physical size scaling Matrix4
|
|
3
|
+
* @param {Object} loader PixelSource
|
|
4
|
+
* @returns {Object} matrix
|
|
5
|
+
*/
|
|
6
|
+
export function getPhysicalSizeScalingMatrix(loader: Object): Object;
|
|
7
|
+
/**
|
|
8
|
+
* Get bounding cube for a given loader
|
|
9
|
+
* @param {Object} loader PixelSource|PixelSource[]
|
|
10
|
+
* @returns {Array} [0, width], [0, height], [0, depth]]
|
|
11
|
+
*/
|
|
12
|
+
export function getBoundingCube(loader: Object): any[];
|
|
13
|
+
export function abbreviateNumber(value: any): any;
|
|
14
|
+
export function toRgbUIString(on: any, arr: any, theme: any): string;
|
|
15
|
+
export function getSingleSelectionStats({ loader, selection, use3d }: Object): Object;
|
|
16
|
+
export function getMultiSelectionStats({ loader, selections, use3d }: {
|
|
17
|
+
loader: any;
|
|
18
|
+
selections: any;
|
|
19
|
+
use3d: any;
|
|
20
|
+
}): Promise<{
|
|
21
|
+
domains: any[];
|
|
22
|
+
sliders: any[];
|
|
23
|
+
}>;
|
|
24
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.js"],"names":[],"mappings":"AAgFA;;;;GAIG;AACH,qDAHW,MAAM,GACJ,MAAM,CAUlB;AAED;;;;GAIG;AACH,wCAHW,MAAM,SAchB;AAED,kDAwBC;AApIM,qEAKN;AAsDM,sEALI,MAAM,GAGJ,MAAM,CAOlB;AAEM;;;;;;;GAON"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { viv } from '@vitessce/gl';
|
|
2
|
+
import { Matrix4 } from 'math.gl';
|
|
3
|
+
// Returns an rgb string for display, and changes the color (arr)
|
|
4
|
+
// to use a grey for light theme + white color or if the colormap is on.
|
|
5
|
+
export const toRgbUIString = (on, arr, theme) => {
|
|
6
|
+
const color = on || (theme === 'light' && arr.every(i => i === 255))
|
|
7
|
+
? [220, 220, 220]
|
|
8
|
+
: arr;
|
|
9
|
+
return `rgb(${color})`;
|
|
10
|
+
};
|
|
11
|
+
async function getSingleSelectionStats2D({ loader, selection }) {
|
|
12
|
+
const data = Array.isArray(loader) ? loader[loader.length - 1] : loader;
|
|
13
|
+
const raster = await data.getRaster({ selection });
|
|
14
|
+
const selectionStats = viv.getChannelStats(raster.data);
|
|
15
|
+
const { domain, contrastLimits: slider } = selectionStats;
|
|
16
|
+
return { domain, slider };
|
|
17
|
+
}
|
|
18
|
+
async function getSingleSelectionStats3D({ loader, selection }) {
|
|
19
|
+
const lowResSource = loader[loader.length - 1];
|
|
20
|
+
const { shape, labels } = lowResSource;
|
|
21
|
+
// eslint-disable-next-line no-bitwise
|
|
22
|
+
const sizeZ = shape[labels.indexOf('z')] >> (loader.length - 1);
|
|
23
|
+
const raster0 = await lowResSource.getRaster({
|
|
24
|
+
selection: { ...selection, z: 0 },
|
|
25
|
+
});
|
|
26
|
+
const rasterMid = await lowResSource.getRaster({
|
|
27
|
+
selection: { ...selection, z: Math.floor(sizeZ / 2) },
|
|
28
|
+
});
|
|
29
|
+
const rasterTop = await lowResSource.getRaster({
|
|
30
|
+
selection: { ...selection, z: Math.max(0, sizeZ - 1) },
|
|
31
|
+
});
|
|
32
|
+
const stats0 = viv.getChannelStats(raster0.data);
|
|
33
|
+
const statsMid = viv.getChannelStats(rasterMid.data);
|
|
34
|
+
const statsTop = viv.getChannelStats(rasterTop.data);
|
|
35
|
+
return {
|
|
36
|
+
domain: [
|
|
37
|
+
Math.min(stats0.domain[0], statsMid.domain[0], statsTop.domain[0]),
|
|
38
|
+
Math.max(stats0.domain[1], statsMid.domain[1], statsTop.domain[1]),
|
|
39
|
+
],
|
|
40
|
+
slider: [
|
|
41
|
+
Math.min(stats0.contrastLimits[0], statsMid.contrastLimits[0], statsTop.contrastLimits[0]),
|
|
42
|
+
Math.max(stats0.contrastLimits[1], statsMid.contrastLimits[1], statsTop.contrastLimits[1]),
|
|
43
|
+
],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Get bounding cube for a given loader i.e [[0, width], [0, height], [0, depth]]
|
|
48
|
+
* @param {Object} loader PixelSource|PixelSource[]
|
|
49
|
+
* @param {[]} selection Selection for stats.
|
|
50
|
+
* @param {boolean} use3d Whether or not to get 3d stats.
|
|
51
|
+
* @returns {Object} { domains, sliders }
|
|
52
|
+
*/
|
|
53
|
+
export const getSingleSelectionStats = async ({ loader, selection, use3d }) => {
|
|
54
|
+
const getStats = use3d
|
|
55
|
+
? getSingleSelectionStats3D
|
|
56
|
+
: getSingleSelectionStats2D;
|
|
57
|
+
return getStats({ loader, selection });
|
|
58
|
+
};
|
|
59
|
+
export const getMultiSelectionStats = async ({ loader, selections, use3d }) => {
|
|
60
|
+
const stats = await Promise.all(selections.map(selection => getSingleSelectionStats({ loader, selection, use3d })));
|
|
61
|
+
const domains = stats.map(stat => stat.domain);
|
|
62
|
+
const sliders = stats.map(stat => stat.slider);
|
|
63
|
+
return { domains, sliders };
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Get physical size scaling Matrix4
|
|
67
|
+
* @param {Object} loader PixelSource
|
|
68
|
+
* @returns {Object} matrix
|
|
69
|
+
*/
|
|
70
|
+
export function getPhysicalSizeScalingMatrix(loader) {
|
|
71
|
+
const { x, y, z } = loader?.meta?.physicalSizes ?? {};
|
|
72
|
+
if (x?.size && y?.size && z?.size) {
|
|
73
|
+
const min = Math.min(z.size, x.size, y.size);
|
|
74
|
+
const ratio = [x.size / min, y.size / min, z.size / min];
|
|
75
|
+
return new Matrix4().scale(ratio);
|
|
76
|
+
}
|
|
77
|
+
return new Matrix4().identity();
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Get bounding cube for a given loader
|
|
81
|
+
* @param {Object} loader PixelSource|PixelSource[]
|
|
82
|
+
* @returns {Array} [0, width], [0, height], [0, depth]]
|
|
83
|
+
*/
|
|
84
|
+
export function getBoundingCube(loader) {
|
|
85
|
+
const source = Array.isArray(loader) ? loader[0] : loader;
|
|
86
|
+
const { shape, labels } = source;
|
|
87
|
+
const physicalSizeScalingMatrix = getPhysicalSizeScalingMatrix(source);
|
|
88
|
+
const xSlice = [0, physicalSizeScalingMatrix[0] * shape[labels.indexOf('x')]];
|
|
89
|
+
const ySlice = [0, physicalSizeScalingMatrix[5] * shape[labels.indexOf('y')]];
|
|
90
|
+
const zSlice = [
|
|
91
|
+
0,
|
|
92
|
+
physicalSizeScalingMatrix[10] * shape[labels.indexOf('z')],
|
|
93
|
+
];
|
|
94
|
+
return [xSlice, ySlice, zSlice];
|
|
95
|
+
}
|
|
96
|
+
export function abbreviateNumber(value) {
|
|
97
|
+
// Return an abbreviated representation of value, in 5 characters or less.
|
|
98
|
+
const maxLength = 5;
|
|
99
|
+
let maxNaiveDigits = maxLength;
|
|
100
|
+
/* eslint-disable no-plusplus */
|
|
101
|
+
if (!Number.isInteger(value)) {
|
|
102
|
+
--maxNaiveDigits;
|
|
103
|
+
} // Wasted on "."
|
|
104
|
+
if (value < 1) {
|
|
105
|
+
--maxNaiveDigits;
|
|
106
|
+
} // Wasted on "0."
|
|
107
|
+
/* eslint-disable no-plusplus */
|
|
108
|
+
const naive = Intl.NumberFormat('en-US', {
|
|
109
|
+
maximumSignificantDigits: maxNaiveDigits,
|
|
110
|
+
useGrouping: false,
|
|
111
|
+
}).format(value);
|
|
112
|
+
if (naive.length <= maxLength)
|
|
113
|
+
return naive;
|
|
114
|
+
// "e+9" consumes 3 characters, so if we even had two significant digits,
|
|
115
|
+
// it would take take us to six characters, including the decimal point.
|
|
116
|
+
return value.toExponential(0);
|
|
117
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/layer-controller",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -8,25 +8,27 @@
|
|
|
8
8
|
"url": "git+https://github.com/vitessce/vitessce.git"
|
|
9
9
|
},
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"
|
|
11
|
+
"type": "module",
|
|
12
|
+
"main": "dist/index.js",
|
|
12
13
|
"files": [
|
|
14
|
+
"src",
|
|
13
15
|
"dist",
|
|
14
|
-
"
|
|
16
|
+
"dist-tsc"
|
|
15
17
|
],
|
|
16
18
|
"dependencies": {
|
|
17
19
|
"@material-ui/core": "~4.12.3",
|
|
18
20
|
"@material-ui/icons": "~4.11.2",
|
|
19
|
-
"lodash": "^4.17.21",
|
|
21
|
+
"lodash-es": "^4.17.21",
|
|
20
22
|
"math.gl": "^3.5.6",
|
|
21
|
-
"@vitessce/constants-internal": "
|
|
22
|
-
"@vitessce/gl": "
|
|
23
|
-
"@vitessce/spatial-utils": "
|
|
24
|
-
"@vitessce/utils": "
|
|
25
|
-
"@vitessce/vit-s": "
|
|
23
|
+
"@vitessce/constants-internal": "3.0.0",
|
|
24
|
+
"@vitessce/gl": "3.0.0",
|
|
25
|
+
"@vitessce/spatial-utils": "3.0.0",
|
|
26
|
+
"@vitessce/utils": "3.0.0",
|
|
27
|
+
"@vitessce/vit-s": "3.0.0"
|
|
26
28
|
},
|
|
27
29
|
"devDependencies": {
|
|
28
30
|
"react": "^18.0.0",
|
|
29
|
-
"vite": "^3.0
|
|
31
|
+
"vite": "^4.3.0",
|
|
30
32
|
"vitest": "^0.23.4"
|
|
31
33
|
},
|
|
32
34
|
"peerDependencies": {
|
|
@@ -35,5 +37,12 @@
|
|
|
35
37
|
"scripts": {
|
|
36
38
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
|
|
37
39
|
"test": "pnpm exec vitest --run -r ../../../ --dir ."
|
|
40
|
+
},
|
|
41
|
+
"module": "dist/index.js",
|
|
42
|
+
"exports": {
|
|
43
|
+
".": {
|
|
44
|
+
"types": "./dist-tsc/index.d.ts",
|
|
45
|
+
"import": "./dist/index.js"
|
|
46
|
+
}
|
|
38
47
|
}
|
|
39
48
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import RemoveCircleIcon from '@material-ui/icons
|
|
3
|
-
import IconButton from '@material-ui/core
|
|
4
|
-
import
|
|
5
|
-
import { ChannelSelectionDropdown, ChannelVisibilityCheckbox } from './shared-channel-controls';
|
|
2
|
+
import { RemoveCircle as RemoveCircleIcon } from '@material-ui/icons';
|
|
3
|
+
import { IconButton, Grid } from '@material-ui/core';
|
|
4
|
+
import { ChannelSelectionDropdown, ChannelVisibilityCheckbox } from './shared-channel-controls.js';
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* Controller for the handling the bitmask channels.
|
package/src/ChannelOptions.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { makeStyles } from '@material-ui/core
|
|
3
|
-
import MoreVertIcon from '@material-ui/icons
|
|
4
|
-
import MenuItem from '@material-ui/core/MenuItem';
|
|
2
|
+
import { makeStyles, MenuItem } from '@material-ui/core';
|
|
3
|
+
import { MoreVert as MoreVertIcon } from '@material-ui/icons';
|
|
5
4
|
import { PopperMenu } from '@vitessce/vit-s';
|
|
6
|
-
import { MuiSpan } from './styles';
|
|
7
|
-
import ColorPalette from './ColorPalette';
|
|
5
|
+
import { MuiSpan } from './styles.js';
|
|
6
|
+
import ColorPalette from './ColorPalette.js';
|
|
8
7
|
|
|
9
8
|
const useStyles = makeStyles(() => ({
|
|
10
9
|
menuButton: {
|
package/src/ColorPalette.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import IconButton from '@material-ui/core
|
|
3
|
-
import LensIcon from '@material-ui/icons
|
|
4
|
-
import { makeStyles } from '@material-ui/core/styles';
|
|
2
|
+
import { IconButton, makeStyles } from '@material-ui/core';
|
|
3
|
+
import { Lens as LensIcon } from '@material-ui/icons';
|
|
5
4
|
import { VIEWER_PALETTE } from '@vitessce/utils';
|
|
6
5
|
|
|
7
6
|
const useStyles = makeStyles(theme => ({
|
package/src/ImageAddButton.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { makeStyles } from '@material-ui/core
|
|
3
|
-
import AddIcon from '@material-ui/icons
|
|
4
|
-
import MenuItem from '@material-ui/core/MenuItem';
|
|
2
|
+
import { makeStyles, MenuItem } from '@material-ui/core';
|
|
3
|
+
import { Add as AddIcon } from '@material-ui/icons';
|
|
5
4
|
import { PopperMenu } from '@vitessce/vit-s';
|
|
6
5
|
|
|
7
6
|
const useStyles = makeStyles(() => ({
|