'use strict';

var LegendModel = require('./LegendModel.js');
var LegendView = require('./LegendView.js');
var legendFilter = require('./legendFilter.js');
var legendAction = require('./legendAction.js');

function install(registers) {
  registers.registerComponentModel(LegendModel.default);
  registers.registerComponentView(LegendView.default);
  registers.registerProcessor(registers.PRIORITY.PROCESSOR.SERIES_FILTER, legendFilter.default);
  registers.registerSubTypeDefaulter('legend', function () {
    return 'plain';
  });
  legendAction.installLegendAction(registers);
}

exports.install = install;
