Skip to content

Commit

Permalink
grab Grid module method using Registry.getComponentMethod
Browse files Browse the repository at this point in the history
  • Loading branch information
etpinard committed Mar 2, 2018
1 parent 011443e commit 9246fda
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/plots/plots.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ var axisIDs = require('../plots/cartesian/axis_ids');
var Lib = require('../lib');
var _ = Lib._;
var Color = require('../components/color');
var Grid = require('../components/grid');
var BADNUM = require('../constants/numerical').BADNUM;

var plots = module.exports = {};
Expand Down Expand Up @@ -1248,7 +1247,7 @@ plots.supplyLayoutGlobalDefaults = function(layoutIn, layoutOut, formatObj) {

if(layoutIn.width && layoutIn.height) plots.sanitizeMargins(layoutOut);

Grid.sizeDefaults(layoutIn, layoutOut);
Registry.getComponentMethod('grid', 'sizeDefaults')(layoutIn, layoutOut);

coerce('paper_bgcolor');

Expand Down Expand Up @@ -1387,7 +1386,7 @@ plots.supplyLayoutModuleDefaults = function(layoutIn, layoutOut, fullData, trans

// ensure all cartesian axes have at least one subplot
if(layoutOut._has('cartesian')) {
Grid.contentDefaults(layoutIn, layoutOut);
Registry.getComponentMethod('grid', 'contentDefaults')(layoutIn, layoutOut);
Cartesian.finalizeSubplots(layoutIn, layoutOut);
}

Expand Down

0 comments on commit 9246fda

Please sign in to comment.