|
12 | 12 | var d3 = require('d3');
|
13 | 13 | var Lib = require('../../lib');
|
14 | 14 | var Plots = require('../plots');
|
15 |
| -var Axes = require('./axes'); |
| 15 | + |
| 16 | +var axisIds = require('./axis_ids'); |
16 | 17 | var constants = require('./constants');
|
17 | 18 |
|
18 | 19 | exports.name = 'cartesian';
|
@@ -166,7 +167,7 @@ exports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout)
|
166 | 167 |
|
167 | 168 | if(hadCartesian && !hasCartesian) {
|
168 | 169 | var subplotLayers = oldFullLayout._cartesianlayer.selectAll('.subplot');
|
169 |
| - var axIds = Axes.listIds({ _fullLayout: oldFullLayout }); |
| 170 | + var axIds = axisIds.listIds({ _fullLayout: oldFullLayout }); |
170 | 171 |
|
171 | 172 | subplotLayers.call(purgeSubplotLayers, oldFullLayout);
|
172 | 173 | oldFullLayout._defs.selectAll('.axesclip').remove();
|
@@ -241,13 +242,13 @@ function makeSubplotData(gd) {
|
241 | 242 | // dimension that this one overlays to be an overlaid subplot,
|
242 | 243 | // the main plot must exist make sure we're not trying to
|
243 | 244 | // overlay on an axis that's already overlaying another
|
244 |
| - var xa2 = Axes.getFromId(gd, xa.overlaying) || xa; |
| 245 | + var xa2 = axisIds.getFromId(gd, xa.overlaying) || xa; |
245 | 246 | if(xa2 !== xa && xa2.overlaying) {
|
246 | 247 | xa2 = xa;
|
247 | 248 | xa.overlaying = false;
|
248 | 249 | }
|
249 | 250 |
|
250 |
| - var ya2 = Axes.getFromId(gd, ya.overlaying) || ya; |
| 251 | + var ya2 = axisIds.getFromId(gd, ya.overlaying) || ya; |
251 | 252 | if(ya2 !== ya && ya2.overlaying) {
|
252 | 253 | ya2 = ya;
|
253 | 254 | ya.overlaying = false;
|
|
0 commit comments