1111
1212/* global PlotlyGeoAssets:false */
1313
14- var Plotly = require ( '../../plotly' ) ;
1514var d3 = require ( 'd3' ) ;
1615
16+ var Color = require ( '../../components/color' ) ;
17+ var Drawing = require ( '../../components/drawing' ) ;
18+
1719var Plots = require ( '../../plots/plots' ) ;
20+ var Axes = require ( '../../plots/cartesian/axes' ) ;
1821
1922var addProjectionsToD3 = require ( './projections' ) ;
2023var createGeoScale = require ( './set_scale' ) ;
@@ -350,7 +353,7 @@ function styleFillLayer(selection, layerName, geoLayout) {
350353 selection . select ( '.' + layerName )
351354 . selectAll ( 'path' )
352355 . attr ( 'stroke' , 'none' )
353- . call ( Plotly . Color . fill , geoLayout [ layerAdj + 'color' ] ) ;
356+ . call ( Color . fill , geoLayout [ layerAdj + 'color' ] ) ;
354357}
355358
356359function styleLineLayer ( selection , layerName , geoLayout ) {
@@ -359,16 +362,16 @@ function styleLineLayer(selection, layerName, geoLayout) {
359362 selection . select ( '.' + layerName )
360363 . selectAll ( 'path' )
361364 . attr ( 'fill' , 'none' )
362- . call ( Plotly . Color . stroke , geoLayout [ layerAdj + 'color' ] )
363- . call ( Plotly . Drawing . dashLine , '' , geoLayout [ layerAdj + 'width' ] ) ;
365+ . call ( Color . stroke , geoLayout [ layerAdj + 'color' ] )
366+ . call ( Drawing . dashLine , '' , geoLayout [ layerAdj + 'width' ] ) ;
364367}
365368
366369function styleGraticule ( selection , axisName , geoLayout ) {
367370 selection . select ( '.' + axisName + 'graticule' )
368371 . selectAll ( 'path' )
369372 . attr ( 'fill' , 'none' )
370- . call ( Plotly . Color . stroke , geoLayout [ axisName ] . gridcolor )
371- . call ( Plotly . Drawing . dashLine , '' , geoLayout [ axisName ] . gridwidth ) ;
373+ . call ( Color . stroke , geoLayout [ axisName ] . gridcolor )
374+ . call ( Drawing . dashLine , '' , geoLayout [ axisName ] . gridwidth ) ;
372375}
373376
374377proto . styleLayer = function ( selection , layerName , geoLayout ) {
@@ -451,10 +454,10 @@ function createMockAxis(fullLayout) {
451454 var mockAxis = {
452455 type : 'linear' ,
453456 showexponent : 'all' ,
454- exponentformat : Plotly . Axes . layoutAttributes . exponentformat . dflt ,
457+ exponentformat : Axes . layoutAttributes . exponentformat . dflt ,
455458 _td : { _fullLayout : fullLayout }
456459 } ;
457460
458- Plotly . Axes . setConvert ( mockAxis ) ;
461+ Axes . setConvert ( mockAxis ) ;
459462 return mockAxis ;
460463}
0 commit comments