@@ -56,14 +56,17 @@ axes.setConvert = require('./set_convert');
56
56
var autoType = require ( './axis_autotype' ) ;
57
57
58
58
var axisIds = require ( './axis_ids' ) ;
59
+ var idSort = axisIds . idSort ;
60
+ var isLinked = axisIds . isLinked ;
61
+
62
+ // tight coupling to chart studio so should generally not be expanded.
59
63
axes . id2name = axisIds . id2name ;
60
64
axes . name2id = axisIds . name2id ;
61
65
axes . cleanId = axisIds . cleanId ;
62
66
axes . list = axisIds . list ;
63
67
axes . listIds = axisIds . listIds ;
64
68
axes . getFromId = axisIds . getFromId ;
65
69
axes . getFromTrace = axisIds . getFromTrace ;
66
- axes . isLinked = axisIds . isLinked ;
67
70
68
71
var autorange = require ( './autorange' ) ;
69
72
axes . getAutoRange = autorange . getAutoRange ;
@@ -2908,7 +2911,7 @@ axes.drawZeroLine = function(gd, ax, opts) {
2908
2911
// If several zerolines enter at the same time we will sort once per,
2909
2912
// but generally this should be a minimal overhead.
2910
2913
opts . layer . selectAll ( 'path' ) . sort ( function ( da , db ) {
2911
- return axisIds . idSort ( da . id , db . id ) ;
2914
+ return idSort ( da . id , db . id ) ;
2912
2915
} ) ;
2913
2916
} ) ;
2914
2917
@@ -3207,7 +3210,7 @@ axes.drawLabels = function(gd, ax, opts) {
3207
3210
if (
3208
3211
anchorAx && anchorAx . autorange &&
3209
3212
( ax . ticklabelposition || '' ) . indexOf ( 'inside' ) !== - 1 &&
3210
- ! axisIds . isLinked ( fullLayout , ax . _id )
3213
+ ! isLinked ( fullLayout , ax . _id )
3211
3214
) {
3212
3215
if ( ! fullLayout . _insideTickLabelsAutorange ) {
3213
3216
fullLayout . _insideTickLabelsAutorange = { } ;
0 commit comments