import { TooltipSettings , isTooltipType , SettingsSpec } from '../../specs/settings' ; internal export function getTooltipSettings ( settings , isExternalTooltipVisible ) { if ( ! isExternalTooltipVisible ) { return settings . tooltip ; } if ( isTooltipType ( settings . tooltip ) ) { return { type : settings . tooltip , ... settings . externalPointerEvents . tooltip , } ; } return { ... settings . tooltip , ... settings . externalPointerEvents . tooltip , } ; }