import PictorialBarView from './PictorialBarView.mjs';
import PictorialBarSeriesModel from './PictorialBarSeries.mjs';
import { layout, createProgressiveLayout } from '../../layout/barGrid.mjs';
import { curry } from '../../../../../../zrender@6.0.0/node_modules/zrender/lib/core/util.mjs';

function install(registers) {
  registers.registerChartView(PictorialBarView);
  registers.registerSeriesModel(PictorialBarSeriesModel);
  registers.registerLayout(registers.PRIORITY.VISUAL.LAYOUT, curry(layout, 'pictorialBar'));
  // Do layout after other overall layout, which can prepare some information.
  registers.registerLayout(registers.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT, createProgressiveLayout('pictorialBar'));
}

export { install };
