@@ -56,14 +56,17 @@ axes.setConvert = require('./set_convert');
5656var autoType = require ( './axis_autotype' ) ;
5757
5858var 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.
5963axes . id2name = axisIds . id2name ;
6064axes . name2id = axisIds . name2id ;
6165axes . cleanId = axisIds . cleanId ;
6266axes . list = axisIds . list ;
6367axes . listIds = axisIds . listIds ;
6468axes . getFromId = axisIds . getFromId ;
6569axes . getFromTrace = axisIds . getFromTrace ;
66- axes . isLinked = axisIds . isLinked ;
6770
6871var autorange = require ( './autorange' ) ;
6972axes . getAutoRange = autorange . getAutoRange ;
@@ -2908,7 +2911,7 @@ axes.drawZeroLine = function(gd, ax, opts) {
29082911 // If several zerolines enter at the same time we will sort once per,
29092912 // but generally this should be a minimal overhead.
29102913 opts . layer . selectAll ( 'path' ) . sort ( function ( da , db ) {
2911- return axisIds . idSort ( da . id , db . id ) ;
2914+ return idSort ( da . id , db . id ) ;
29122915 } ) ;
29132916 } ) ;
29142917
@@ -3207,7 +3210,7 @@ axes.drawLabels = function(gd, ax, opts) {
32073210 if (
32083211 anchorAx && anchorAx . autorange &&
32093212 ( ax . ticklabelposition || '' ) . indexOf ( 'inside' ) !== - 1 &&
3210- ! axisIds . isLinked ( fullLayout , ax . _id )
3213+ ! isLinked ( fullLayout , ax . _id )
32113214 ) {
32123215 if ( ! fullLayout . _insideTickLabelsAutorange ) {
32133216 fullLayout . _insideTickLabelsAutorange = { } ;
0 commit comments