'use strict';

var extension = require('../../extension.js');
var ScatterSeries = require('./ScatterSeries.js');
var ScatterView = require('./ScatterView.js');
var installSimple = require('../../component/grid/installSimple.js');
var points = require('../../layout/points.js');
var jitterLayout = require('./jitterLayout.js');

function install(registers) {
  // In case developer forget to include grid component
  extension.use(installSimple.install);
  registers.registerSeriesModel(ScatterSeries.default);
  registers.registerChartView(ScatterView.default);
  registers.registerLayout(points.default('scatter'));
}
function installScatterJitter(registers) {
  registers.registerLayout(registers.PRIORITY.VISUAL.POST_CHART_LAYOUT, jitterLayout.default);
}

exports.install = install;
exports.installScatterJitter = installScatterJitter;
