feat: Add Deck.gl Contour Layer (#24154)

This commit is contained in:
Matthew Chiang
2023-10-10 04:20:37 -05:00
committed by GitHub
parent 42d0474cc2
commit 512fb9a0bd
18 changed files with 1092 additions and 3 deletions

View File

@@ -59,6 +59,7 @@ export default function OptionWrapper(
isExtra,
datasourceWarningMessage,
canDelete = true,
tooltipOverlay,
...rest
} = props;
const ref = useRef<HTMLDivElement>(null);
@@ -123,12 +124,20 @@ export default function OptionWrapper(
(!isDragging &&
labelRef &&
labelRef.current &&
labelRef.current.scrollWidth > labelRef.current.clientWidth);
labelRef.current.scrollWidth > labelRef.current.clientWidth) ||
(!isDragging && tooltipOverlay);
const LabelContent = () => {
if (!shouldShowTooltip) {
return <span>{label}</span>;
}
if (tooltipOverlay) {
return (
<Tooltip overlay={tooltipOverlay}>
<span>{label}</span>
</Tooltip>
);
}
return (
<Tooltip title={tooltipTitle || label}>
<span>{label}</span>

View File

@@ -32,6 +32,7 @@ export interface OptionProps {
isExtra?: boolean;
datasourceWarningMessage?: string;
canDelete?: boolean;
tooltipOverlay?: ReactNode;
}
export interface OptionItemInterface {