import { install as install$1 } from '../axisPointer/install.mjs';
import { use } from '../../extension.mjs';
import TooltipModel from './TooltipModel.mjs';
import TooltipView from './TooltipView.mjs';
import { noop } from '../../../../../../zrender@6.0.0/node_modules/zrender/lib/core/util.mjs';

function install(registers) {
  use(install$1);
  registers.registerComponentModel(TooltipModel);
  registers.registerComponentView(TooltipView);
  /**
   * @action
   * @property {string} type
   * @property {number} seriesIndex
   * @property {number} dataIndex
   * @property {number} [x]
   * @property {number} [y]
   */
  registers.registerAction({
    type: 'showTip',
    event: 'showTip',
    update: 'tooltip:manuallyShowTip'
  }, noop);
  registers.registerAction({
    type: 'hideTip',
    event: 'hideTip',
    update: 'tooltip:manuallyHideTip'
  }, noop);
}

export { install };
