Skip to content

Commit 482cca1

Browse files
committed
merge geo axis attrs module into 'main' layout attr module
- no need for separate files.
1 parent 4c1ddb8 commit 482cca1

File tree

2 files changed

+50
-62
lines changed

2 files changed

+50
-62
lines changed

src/plots/geo/layout/axis_attributes.js

-61
This file was deleted.

src/plots/geo/layout/layout_attributes.js

+50-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,58 @@
1010

1111
var colorAttrs = require('../../../components/color/attributes');
1212
var constants = require('../constants');
13-
var geoAxesAttrs = require('./axis_attributes');
1413
var overrideAll = require('../../../plot_api/edit_types').overrideAll;
1514

15+
var geoAxesAttrs = {
16+
range: {
17+
valType: 'info_array',
18+
role: 'info',
19+
items: [
20+
{valType: 'number'},
21+
{valType: 'number'}
22+
],
23+
description: [
24+
'Sets the range of this axis (in degrees),',
25+
].join(' ')
26+
},
27+
showgrid: {
28+
valType: 'boolean',
29+
role: 'info',
30+
dflt: false,
31+
description: 'Sets whether or not graticule are shown on the map.'
32+
},
33+
tick0: {
34+
valType: 'number',
35+
role: 'info',
36+
description: [
37+
'Sets the graticule\'s starting tick longitude/latitude.'
38+
].join(' ')
39+
},
40+
dtick: {
41+
valType: 'number',
42+
role: 'info',
43+
description: [
44+
'Sets the graticule\'s longitude/latitude tick step.'
45+
].join(' ')
46+
},
47+
gridcolor: {
48+
valType: 'color',
49+
role: 'style',
50+
dflt: colorAttrs.lightLine,
51+
description: [
52+
'Sets the graticule\'s stroke color.'
53+
].join(' ')
54+
},
55+
gridwidth: {
56+
valType: 'number',
57+
role: 'style',
58+
min: 0,
59+
dflt: 1,
60+
description: [
61+
'Sets the graticule\'s stroke width (in px).'
62+
].join(' ')
63+
}
64+
};
1665

1766
module.exports = overrideAll({
1867
domain: {

0 commit comments

Comments
 (0)