@vitessce/layer-controller 2.0.3-beta.0 → 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-75511377.js +13 -0
- package/dist/index-841a1af6.js +148439 -0
- package/dist/index.js +9 -3
- package/dist/jpeg-6023316d.js +840 -0
- package/dist/lerc-82182c45.js +2014 -0
- package/dist/lzw-2ab01db2.js +128 -0
- package/dist/packbits-2633f360.js +30 -0
- package/dist/pako.esm-68f84e2a.js +4022 -0
- package/dist/raw-51e455c7.js +12 -0
- package/dist/webimage-bbb56d18.js +32 -0
- package/dist-tsc/BitmaskChannelController.d.ts +21 -0
- package/dist-tsc/BitmaskChannelController.d.ts.map +1 -0
- package/{dist → dist-tsc}/BitmaskChannelController.js +3 -4
- package/dist-tsc/ChannelOptions.d.ts +13 -0
- package/dist-tsc/ChannelOptions.d.ts.map +1 -0
- package/{dist → dist-tsc}/ChannelOptions.js +4 -5
- package/dist-tsc/ColorPalette.d.ts +5 -0
- package/dist-tsc/ColorPalette.d.ts.map +1 -0
- package/{dist → dist-tsc}/ColorPalette.js +2 -3
- package/dist-tsc/ImageAddButton.d.ts +6 -0
- package/dist-tsc/ImageAddButton.d.ts.map +1 -0
- package/{dist → dist-tsc}/ImageAddButton.js +2 -3
- package/dist-tsc/LayerController.d.ts +10 -0
- package/dist-tsc/LayerController.d.ts.map +1 -0
- package/{dist → dist-tsc}/LayerController.js +7 -15
- package/dist-tsc/LayerControllerSubscriber.d.ts +27 -0
- package/dist-tsc/LayerControllerSubscriber.d.ts.map +1 -0
- package/{dist → dist-tsc}/LayerControllerSubscriber.js +7 -10
- package/dist-tsc/LayerOptions.d.ts +46 -0
- package/dist-tsc/LayerOptions.d.ts.map +1 -0
- package/{dist → dist-tsc}/LayerOptions.js +4 -8
- package/dist-tsc/RasterChannelController.d.ts +35 -0
- package/dist-tsc/RasterChannelController.d.ts.map +1 -0
- package/{dist → dist-tsc}/RasterChannelController.js +7 -17
- package/dist-tsc/RasterChannelController.test.d.ts +2 -0
- package/dist-tsc/RasterChannelController.test.d.ts.map +1 -0
- package/{dist → dist-tsc}/RasterChannelController.test.js +1 -1
- package/dist-tsc/VectorLayerController.d.ts +2 -0
- package/dist-tsc/VectorLayerController.d.ts.map +1 -0
- package/{dist → dist-tsc}/VectorLayerController.js +2 -6
- package/dist-tsc/VolumeOptions.d.ts +16 -0
- package/dist-tsc/VolumeOptions.d.ts.map +1 -0
- package/{dist → dist-tsc}/VolumeOptions.js +3 -10
- package/dist-tsc/constants.d.ts +2 -0
- package/dist-tsc/constants.d.ts.map +1 -0
- package/dist-tsc/index.d.ts +4 -0
- package/dist-tsc/index.d.ts.map +1 -0
- package/dist-tsc/index.js +3 -0
- package/dist-tsc/shared-channel-controls.d.ts +27 -0
- package/dist-tsc/shared-channel-controls.d.ts.map +1 -0
- package/{dist → dist-tsc}/shared-channel-controls.js +2 -3
- package/dist-tsc/styles.d.ts +76 -0
- package/dist-tsc/styles.d.ts.map +1 -0
- package/{dist → dist-tsc}/styles.js +1 -6
- package/dist-tsc/utils.d.ts +24 -0
- package/dist-tsc/utils.d.ts.map +1 -0
- package/{dist → dist-tsc}/utils.js +8 -0
- package/package.json +20 -11
- package/src/BitmaskChannelController.js +62 -0
- package/src/ChannelOptions.js +61 -0
- package/src/ColorPalette.js +48 -0
- package/src/ImageAddButton.js +50 -0
- package/src/LayerController.js +596 -0
- package/src/LayerControllerSubscriber.js +501 -0
- package/src/LayerOptions.js +459 -0
- package/src/RasterChannelController.js +245 -0
- package/src/RasterChannelController.test.js +23 -0
- package/src/VectorLayerController.js +61 -0
- package/src/VolumeOptions.js +221 -0
- package/src/constants.js +14 -0
- package/src/index.js +3 -0
- package/src/shared-channel-controls.js +54 -0
- package/src/styles.js +116 -0
- package/src/utils.js +138 -0
- /package/{dist → dist-tsc}/constants.js +0 -0
|
@@ -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"}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { makeStyles, withStyles } from '@material-ui/core
|
|
3
|
-
import AccordionSummary from '@material-ui/core/AccordionSummary';
|
|
4
|
-
import AccordionDetails from '@material-ui/core/AccordionDetails';
|
|
5
|
-
import InputLabel from '@material-ui/core/InputLabel';
|
|
6
|
-
import Slider from '@material-ui/core/Slider';
|
|
7
|
-
import Grid from '@material-ui/core/Grid';
|
|
2
|
+
import { makeStyles, withStyles, AccordionSummary, AccordionDetails, InputLabel, Slider, Grid, } from '@material-ui/core';
|
|
8
3
|
const useSpanStyles = makeStyles(() => ({
|
|
9
4
|
span: {
|
|
10
5
|
width: '70px',
|
|
@@ -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"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { viv } from '@vitessce/gl';
|
|
2
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
|
+
};
|
|
3
11
|
async function getSingleSelectionStats2D({ loader, selection }) {
|
|
4
12
|
const data = Array.isArray(loader) ? loader[loader.length - 1] : loader;
|
|
5
13
|
const raster = await data.getRaster({ selection });
|
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,32 +8,41 @@
|
|
|
8
8
|
"url": "git+https://github.com/vitessce/vitessce.git"
|
|
9
9
|
},
|
|
10
10
|
"license": "MIT",
|
|
11
|
+
"type": "module",
|
|
11
12
|
"main": "dist/index.js",
|
|
12
13
|
"files": [
|
|
13
|
-
"
|
|
14
|
+
"src",
|
|
15
|
+
"dist",
|
|
16
|
+
"dist-tsc"
|
|
14
17
|
],
|
|
15
18
|
"dependencies": {
|
|
16
19
|
"@material-ui/core": "~4.12.3",
|
|
17
20
|
"@material-ui/icons": "~4.11.2",
|
|
18
|
-
"lodash": "^4.17.21",
|
|
21
|
+
"lodash-es": "^4.17.21",
|
|
19
22
|
"math.gl": "^3.5.6",
|
|
20
|
-
"@vitessce/constants-internal": "
|
|
21
|
-
"@vitessce/gl": "
|
|
22
|
-
"@vitessce/utils": "
|
|
23
|
-
"@vitessce/
|
|
24
|
-
"@vitessce/
|
|
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"
|
|
25
28
|
},
|
|
26
29
|
"devDependencies": {
|
|
27
30
|
"react": "^18.0.0",
|
|
28
|
-
"vite": "^3.0
|
|
31
|
+
"vite": "^4.3.0",
|
|
29
32
|
"vitest": "^0.23.4"
|
|
30
33
|
},
|
|
31
34
|
"peerDependencies": {
|
|
32
35
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
33
36
|
},
|
|
34
37
|
"scripts": {
|
|
35
|
-
"
|
|
36
|
-
"build": "tsc",
|
|
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
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React from 'react';
|
|
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';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Controller for the handling the bitmask channels.
|
|
8
|
+
* @prop {boolean} visibility Whether or not this channel is "on"
|
|
9
|
+
* @prop {string} dimName Name of the dimensions this slider controls (usually "channel").
|
|
10
|
+
* @prop {object} channelOptions All available options for this dimension (i.e channel names).
|
|
11
|
+
* @prop {function} handlePropertyChange Callback for when a property (color, slider etc.) changes.
|
|
12
|
+
* @prop {function} handleChannelRemove When a channel is removed, this is called.
|
|
13
|
+
* @prop {number} selectionIndex The current numeric index of the selection.
|
|
14
|
+
* @prop {boolean} disableOptions Whether or not channel options are be disabled (default: false).
|
|
15
|
+
*/
|
|
16
|
+
function BitmaskChannelController({
|
|
17
|
+
visibility = false,
|
|
18
|
+
dimName,
|
|
19
|
+
channelOptions,
|
|
20
|
+
handlePropertyChange,
|
|
21
|
+
handleChannelRemove,
|
|
22
|
+
selectionIndex,
|
|
23
|
+
disableOptions = false,
|
|
24
|
+
}) {
|
|
25
|
+
/* A valid selection is defined by an object where the keys are
|
|
26
|
+
* the name of a dimension of the data, and the values are the
|
|
27
|
+
* index of the image along that particular dimension.
|
|
28
|
+
*
|
|
29
|
+
* Since we currently only support making a selection along one
|
|
30
|
+
* addtional dimension (i.e. the dropdown just has channels or mz)
|
|
31
|
+
* we have a helper function to create the selection.
|
|
32
|
+
*
|
|
33
|
+
* e.g { channel: 2 } // channel dimension, third channel
|
|
34
|
+
*/
|
|
35
|
+
const createSelection = index => ({ [dimName]: index });
|
|
36
|
+
return (
|
|
37
|
+
<Grid container direction="row" justifyContent="space-between">
|
|
38
|
+
<Grid item xs={2}>
|
|
39
|
+
<ChannelVisibilityCheckbox
|
|
40
|
+
color={[220, 220, 220]}
|
|
41
|
+
checked={visibility}
|
|
42
|
+
toggle={() => handlePropertyChange('visible', !visibility)}
|
|
43
|
+
/>
|
|
44
|
+
</Grid>
|
|
45
|
+
<Grid item xs={9}>
|
|
46
|
+
<ChannelSelectionDropdown
|
|
47
|
+
handleChange={v => handlePropertyChange('selection', createSelection(v))}
|
|
48
|
+
selectionIndex={selectionIndex}
|
|
49
|
+
disableOptions={disableOptions}
|
|
50
|
+
channelOptions={channelOptions}
|
|
51
|
+
/>
|
|
52
|
+
</Grid>
|
|
53
|
+
<Grid item xs={1}>
|
|
54
|
+
<IconButton onClick={handleChannelRemove} style={{ padding: '6px 6px 6px 0px' }}>
|
|
55
|
+
<RemoveCircleIcon />
|
|
56
|
+
</IconButton>
|
|
57
|
+
</Grid>
|
|
58
|
+
</Grid>
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export default BitmaskChannelController;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { makeStyles, MenuItem } from '@material-ui/core';
|
|
3
|
+
import { MoreVert as MoreVertIcon } from '@material-ui/icons';
|
|
4
|
+
import { PopperMenu } from '@vitessce/vit-s';
|
|
5
|
+
import { MuiSpan } from './styles.js';
|
|
6
|
+
import ColorPalette from './ColorPalette.js';
|
|
7
|
+
|
|
8
|
+
const useStyles = makeStyles(() => ({
|
|
9
|
+
menuButton: {
|
|
10
|
+
backgroundColor: 'transparent',
|
|
11
|
+
},
|
|
12
|
+
colors: {
|
|
13
|
+
'&:hover': {
|
|
14
|
+
backgroundColor: 'transparent',
|
|
15
|
+
},
|
|
16
|
+
paddingLeft: '2px',
|
|
17
|
+
paddingRight: '2px',
|
|
18
|
+
},
|
|
19
|
+
}));
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Dropdown for options for a channel on the three dots button.
|
|
23
|
+
* @prop {function} handlePropertyChange Callback for changing property (color, IQR of sliders).
|
|
24
|
+
* @prop {function} handleChannelRemove Callback for channel removal.
|
|
25
|
+
* @prop {function} handleIQRUpdate Callback for IQR slider update.
|
|
26
|
+
*/
|
|
27
|
+
function ChannelOptions({ handlePropertyChange, handleChannelRemove, handleIQRUpdate }) {
|
|
28
|
+
const [open, setOpen] = useState(false);
|
|
29
|
+
|
|
30
|
+
const classes = useStyles();
|
|
31
|
+
|
|
32
|
+
const handleColorSelect = (color) => {
|
|
33
|
+
handlePropertyChange('color', color);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
const handleRemove = () => {
|
|
37
|
+
setOpen(false);
|
|
38
|
+
handleChannelRemove();
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
return (
|
|
42
|
+
<PopperMenu
|
|
43
|
+
open={open}
|
|
44
|
+
setOpen={setOpen}
|
|
45
|
+
buttonIcon={<MoreVertIcon fontSize="small" />}
|
|
46
|
+
buttonClassName={classes.menuButton}
|
|
47
|
+
>
|
|
48
|
+
<MenuItem dense disableGutters onClick={handleRemove}>
|
|
49
|
+
<MuiSpan>Remove</MuiSpan>
|
|
50
|
+
</MenuItem>
|
|
51
|
+
<MenuItem dense disableGutters onClick={handleIQRUpdate}>
|
|
52
|
+
<MuiSpan>Use IQR</MuiSpan>
|
|
53
|
+
</MenuItem>
|
|
54
|
+
<MenuItem dense disableGutters className={classes.colors}>
|
|
55
|
+
<ColorPalette handleChange={handleColorSelect} />
|
|
56
|
+
</MenuItem>
|
|
57
|
+
</PopperMenu>
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export default ChannelOptions;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconButton, makeStyles } from '@material-ui/core';
|
|
3
|
+
import { Lens as LensIcon } from '@material-ui/icons';
|
|
4
|
+
import { VIEWER_PALETTE } from '@vitessce/utils';
|
|
5
|
+
|
|
6
|
+
const useStyles = makeStyles(theme => ({
|
|
7
|
+
container: {
|
|
8
|
+
width: '70px',
|
|
9
|
+
height: '40px',
|
|
10
|
+
display: 'flex',
|
|
11
|
+
justifyContent: 'space-between',
|
|
12
|
+
alignItems: 'center',
|
|
13
|
+
flexWrap: 'wrap',
|
|
14
|
+
},
|
|
15
|
+
button: {
|
|
16
|
+
padding: '3px',
|
|
17
|
+
width: '16px',
|
|
18
|
+
},
|
|
19
|
+
icon: {
|
|
20
|
+
width: '17px',
|
|
21
|
+
height: '17px',
|
|
22
|
+
stroke: theme.palette.action.selected,
|
|
23
|
+
'stroke-width': '1px',
|
|
24
|
+
},
|
|
25
|
+
}));
|
|
26
|
+
|
|
27
|
+
const ColorPalette = ({ handleChange }) => {
|
|
28
|
+
const classes = useStyles();
|
|
29
|
+
return (
|
|
30
|
+
<div className={classes.container} aria-label="color-swatch">
|
|
31
|
+
{VIEWER_PALETTE.map(color => (
|
|
32
|
+
<IconButton
|
|
33
|
+
className={classes.button}
|
|
34
|
+
key={color}
|
|
35
|
+
onClick={() => handleChange(color)}
|
|
36
|
+
>
|
|
37
|
+
<LensIcon
|
|
38
|
+
fontSize="small"
|
|
39
|
+
style={{ color: `rgb(${color})` }}
|
|
40
|
+
className={classes.icon}
|
|
41
|
+
/>
|
|
42
|
+
</IconButton>
|
|
43
|
+
))}
|
|
44
|
+
</div>
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export default ColorPalette;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { makeStyles, MenuItem } from '@material-ui/core';
|
|
3
|
+
import { Add as AddIcon } from '@material-ui/icons';
|
|
4
|
+
import { PopperMenu } from '@vitessce/vit-s';
|
|
5
|
+
|
|
6
|
+
const useStyles = makeStyles(() => ({
|
|
7
|
+
addButton: {
|
|
8
|
+
marginTop: '10px',
|
|
9
|
+
marginBottom: '10px',
|
|
10
|
+
fontWeight: 400,
|
|
11
|
+
},
|
|
12
|
+
}));
|
|
13
|
+
|
|
14
|
+
function ImageAddIcon() {
|
|
15
|
+
return (
|
|
16
|
+
<>
|
|
17
|
+
<AddIcon />
|
|
18
|
+
Add Image Layer
|
|
19
|
+
</>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function ImageAddButton({ imageOptions, handleImageAdd }) {
|
|
24
|
+
const [open, setOpen] = useState(false);
|
|
25
|
+
const classes = useStyles();
|
|
26
|
+
|
|
27
|
+
const handleAdd = (imgData) => {
|
|
28
|
+
setOpen(prev => !prev);
|
|
29
|
+
handleImageAdd(imgData);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
if (!imageOptions) return null;
|
|
33
|
+
return (
|
|
34
|
+
<PopperMenu
|
|
35
|
+
open={open}
|
|
36
|
+
setOpen={setOpen}
|
|
37
|
+
buttonIcon={<ImageAddIcon />}
|
|
38
|
+
buttonClassName={classes.addButton}
|
|
39
|
+
placement="bottom-start"
|
|
40
|
+
>
|
|
41
|
+
{imageOptions.map((imgData, i) => (
|
|
42
|
+
<MenuItem dense key={imgData.name} onClick={() => handleAdd(i)}>
|
|
43
|
+
<span>{imgData.name}</span>
|
|
44
|
+
</MenuItem>
|
|
45
|
+
))}
|
|
46
|
+
</PopperMenu>
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export default ImageAddButton;
|