11
11
12
12
/* global PlotlyGeoAssets:false */
13
13
14
- var Plotly = require ( '../../plotly' ) ;
15
14
var d3 = require ( 'd3' ) ;
16
15
16
+ var Color = require ( '../../components/color' ) ;
17
+ var Drawing = require ( '../../components/drawing' ) ;
18
+
17
19
var Plots = require ( '../../plots/plots' ) ;
20
+ var Axes = require ( '../../plots/cartesian/axes' ) ;
18
21
19
22
var addProjectionsToD3 = require ( './projections' ) ;
20
23
var createGeoScale = require ( './set_scale' ) ;
@@ -350,7 +353,7 @@ function styleFillLayer(selection, layerName, geoLayout) {
350
353
selection . select ( '.' + layerName )
351
354
. selectAll ( 'path' )
352
355
. attr ( 'stroke' , 'none' )
353
- . call ( Plotly . Color . fill , geoLayout [ layerAdj + 'color' ] ) ;
356
+ . call ( Color . fill , geoLayout [ layerAdj + 'color' ] ) ;
354
357
}
355
358
356
359
function styleLineLayer ( selection , layerName , geoLayout ) {
@@ -359,16 +362,16 @@ function styleLineLayer(selection, layerName, geoLayout) {
359
362
selection . select ( '.' + layerName )
360
363
. selectAll ( 'path' )
361
364
. 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' ] ) ;
364
367
}
365
368
366
369
function styleGraticule ( selection , axisName , geoLayout ) {
367
370
selection . select ( '.' + axisName + 'graticule' )
368
371
. selectAll ( 'path' )
369
372
. 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 ) ;
372
375
}
373
376
374
377
proto . styleLayer = function ( selection , layerName , geoLayout ) {
@@ -451,10 +454,10 @@ function createMockAxis(fullLayout) {
451
454
var mockAxis = {
452
455
type : 'linear' ,
453
456
showexponent : 'all' ,
454
- exponentformat : Plotly . Axes . layoutAttributes . exponentformat . dflt ,
457
+ exponentformat : Axes . layoutAttributes . exponentformat . dflt ,
455
458
_td : { _fullLayout : fullLayout }
456
459
} ;
457
460
458
- Plotly . Axes . setConvert ( mockAxis ) ;
461
+ Axes . setConvert ( mockAxis ) ;
459
462
return mockAxis ;
460
463
}
0 commit comments