Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9246fda

Browse filesBrowse files
committed
grab Grid module method using Registry.getComponentMethod
1 parent 011443e commit 9246fda
Copy full SHA for 9246fda

File tree

Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed

‎src/plots/plots.js

Copy file name to clipboardExpand all lines: src/plots/plots.js
+2-3Lines changed: 2 additions & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.