@@ -27,10 +27,7 @@ var calcColorscales = require('../scatter/colorscale_calc');
2727var linkTraces = require ( '../scatter/link_traces' ) ;
2828var getTraceColor = require ( '../scatter/get_trace_color' ) ;
2929var fillHoverText = require ( '../scatter/fill_hover_text' ) ;
30-
31- var convertStyle = require ( './convert' ) . convertStyle ;
32- var convertLinePositions = require ( './convert' ) . convertLinePositions ;
33- var convertErrorBarPositions = require ( './convert' ) . convertErrorBarPositions ;
30+ var convert = require ( './convert' ) ;
3431
3532var BADNUM = require ( '../../constants/numerical' ) . BADNUM ;
3633var TOO_MANY_POINTS = require ( './constants' ) . TOO_MANY_POINTS ;
@@ -138,7 +135,7 @@ function calc(gd, trace) {
138135
139136// create scene options
140137function sceneOptions ( gd , subplot , trace , positions , x , y ) {
141- var opts = convertStyle ( gd , trace ) ;
138+ var opts = convert . style ( gd , trace ) ;
142139
143140 if ( opts . marker ) {
144141 opts . marker . positions = positions ;
@@ -147,12 +144,12 @@ function sceneOptions(gd, subplot, trace, positions, x, y) {
147144 if ( opts . line && positions . length > 1 ) {
148145 Lib . extendFlat (
149146 opts . line ,
150- convertLinePositions ( gd , trace , positions )
147+ convert . linePositions ( gd , trace , positions )
151148 ) ;
152149 }
153150
154151 if ( opts . errorX || opts . errorY ) {
155- var errors = convertErrorBarPositions ( gd , trace , positions , x , y ) ;
152+ var errors = convert . errorBarPositions ( gd , trace , positions , x , y ) ;
156153
157154 if ( opts . errorX ) {
158155 Lib . extendFlat ( opts . errorX , errors . x ) ;
@@ -568,10 +565,9 @@ function plot(gd, subplot, cdata) {
568565 stash . xpx = stash . ypx = null ;
569566 }
570567
571- return trace . visible ? {
572- viewport : viewport ,
573- range : range
574- } : null ;
568+ return trace . visible ?
569+ { viewport : viewport , range : range } :
570+ null ;
575571 } ) ;
576572
577573 if ( selectMode ) {
0 commit comments