'use strict';

var PictorialBarView = require('./PictorialBarView.js');
var PictorialBarSeries = require('./PictorialBarSeries.js');
var barGrid = require('../../layout/barGrid.js');
var util = require('../../../../../../zrender@6.0.0/node_modules/zrender/lib/core/util.js');

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

exports.install = install;
