mirror of
https://github.com/apache/superset.git
synced 2026-06-02 22:29:26 +00:00
feat: Add Deck.gl Contour Layer (#24154)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -32,6 +32,7 @@ export interface OptionProps {
|
||||
isExtra?: boolean;
|
||||
datasourceWarningMessage?: string;
|
||||
canDelete?: boolean;
|
||||
tooltipOverlay?: ReactNode;
|
||||
}
|
||||
|
||||
export interface OptionItemInterface {
|
||||
|
||||
Reference in New Issue
Block a user