Skip to content

Commit ce31666

Browse files
committed
lint (rename params -> exports)
1 parent ab05990 commit ce31666

File tree

1 file changed

+16
-19
lines changed

1 file changed

+16
-19
lines changed

src/plots/geo/constants.js

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,10 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9-
109
'use strict';
1110

12-
var params = module.exports = {};
13-
1411
// projection names to d3 function name
15-
params.projNames = {
12+
exports.projNames = {
1613
// d3.geo.projection
1714
'equirectangular': 'equirectangular',
1815
'mercator': 'mercator',
@@ -39,10 +36,10 @@ params.projNames = {
3936
};
4037

4138
// name of the axes
42-
params.axesNames = ['lonaxis', 'lataxis'];
39+
exports.axesNames = ['lonaxis', 'lataxis'];
4340

4441
// max longitudinal angular span (EXPERIMENTAL)
45-
params.lonaxisSpan = {
42+
exports.lonaxisSpan = {
4643
'orthographic': 180,
4744
'azimuthal equal area': 360,
4845
'azimuthal equidistant': 360,
@@ -54,14 +51,14 @@ params.lonaxisSpan = {
5451
};
5552

5653
// max latitudinal angular span (EXPERIMENTAL)
57-
params.lataxisSpan = {
54+
exports.lataxisSpan = {
5855
'conic conformal': 150,
5956
'stereographic': 179.5,
6057
'*': 180
6158
};
6259

6360
// defaults for each scope
64-
params.scopeDefaults = {
61+
exports.scopeDefaults = {
6562
world: {
6663
lonaxisRange: [-180, 180],
6764
lataxisRange: [-90, 90],
@@ -108,34 +105,34 @@ params.scopeDefaults = {
108105
};
109106

110107
// angular pad to avoid rounding error around clip angles
111-
params.clipPad = 1e-3;
108+
exports.clipPad = 1e-3;
112109

113110
// map projection precision
114-
params.precision = 0.1;
111+
exports.precision = 0.1;
115112

116113
// default land and water fill colors
117-
params.landColor = '#F0DC82';
118-
params.waterColor = '#3399FF';
114+
exports.landColor = '#F0DC82';
115+
exports.waterColor = '#3399FF';
119116

120117
// locationmode to layer name
121-
params.locationmodeToLayer = {
118+
exports.locationmodeToLayer = {
122119
'ISO-3': 'countries',
123120
'USA-states': 'subunits',
124121
'country names': 'countries'
125122
};
126123

127124
// SVG element for a sphere (use to frame maps)
128-
params.sphereSVG = {type: 'Sphere'};
125+
exports.sphereSVG = {type: 'Sphere'};
129126

130127
// N.B. base layer names must be the same as in the topojson files
131128

132129
// base layer with a fill color
133-
params.fillLayers = ['ocean', 'land', 'lakes'];
130+
exports.fillLayers = ['ocean', 'land', 'lakes'];
134131

135132
// base layer with a only a line color
136-
params.lineLayers = ['subunits', 'countries', 'coastlines', 'rivers', 'frame'];
133+
exports.lineLayers = ['subunits', 'countries', 'coastlines', 'rivers', 'frame'];
137134

138-
params.layers = [
135+
exports.layers = [
139136
'bg',
140137
'ocean', 'land', 'lakes',
141138
'subunits', 'countries', 'coastlines', 'rivers',
@@ -144,7 +141,7 @@ params.layers = [
144141
'frontplot'
145142
];
146143

147-
params.layersForChoropleth = [
144+
exports.layersForChoropleth = [
148145
'bg',
149146
'ocean', 'land',
150147
'subunits', 'countries', 'coastlines',
@@ -154,7 +151,7 @@ params.layersForChoropleth = [
154151
'frontplot'
155152
];
156153

157-
params.layerNameToAdjective = {
154+
exports.layerNameToAdjective = {
158155
ocean: 'ocean',
159156
land: 'land',
160157
lakes: 'lake',

0 commit comments

Comments
 (0)