'use strict';

var install$1 = require('../axisPointer/install.js');
var extension = require('../../extension.js');
var TooltipModel = require('./TooltipModel.js');
var TooltipView = require('./TooltipView.js');
var util = require('../../../../../../zrender@6.0.0/node_modules/zrender/lib/core/util.js');

function install(registers) {
  extension.use(install$1.install);
  registers.registerComponentModel(TooltipModel.default);
  registers.registerComponentView(TooltipView.default);
  /**
   * @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'
  }, util.noop);
  registers.registerAction({
    type: 'hideTip',
    event: 'hideTip',
    update: 'tooltip:manuallyHideTip'
  }, util.noop);
}

exports.install = install;
