Skip to content

Commit 9246fda

Browse files
committed
grab Grid module method using Registry.getComponentMethod
1 parent 011443e commit 9246fda

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: src/plots/plots.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ var axisIDs = require('../plots/cartesian/axis_ids');
1818
var Lib = require('../lib');
1919
var _ = Lib._;
2020
var Color = require('../components/color');
21-
var Grid = require('../components/grid');
2221
var BADNUM = require('../constants/numerical').BADNUM;
2322

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

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

1251-
Grid.sizeDefaults(layoutIn, layoutOut);
1250+
Registry.getComponentMethod('grid', 'sizeDefaults')(layoutIn, layoutOut);
12521251

12531252
coerce('paper_bgcolor');
12541253

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

13881387
// ensure all cartesian axes have at least one subplot
13891388
if(layoutOut._has('cartesian')) {
1390-
Grid.contentDefaults(layoutIn, layoutOut);
1389+
Registry.getComponentMethod('grid', 'contentDefaults')(layoutIn, layoutOut);
13911390
Cartesian.finalizeSubplots(layoutIn, layoutOut);
13921391
}
13931392

0 commit comments

Comments
 (0)