import LegendModel from './LegendModel.mjs';
import LegendView from './LegendView.mjs';
import legendFilter from './legendFilter.mjs';
import { installLegendAction } from './legendAction.mjs';

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

export { install };
