File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ var DASHES = require('../../constants/gl3d_dashes');
11
11
var MARKER_SYMBOLS = require ( '../../constants/gl3d_markers' ) ;
12
12
var extendFlat = require ( '../../lib/extend' ) . extendFlat ;
13
13
var overrideAll = require ( '../../plot_api/edit_types' ) . overrideAll ;
14
+ var sortedObjectKeys = require ( '../../lib/sorted_object_keys' ) ;
14
15
15
16
var scatterLineAttrs = scatterAttrs . line ;
16
17
var scatterMarkerAttrs = scatterAttrs . marker ;
@@ -20,7 +21,7 @@ var lineAttrs = extendFlat({
20
21
width : scatterLineAttrs . width ,
21
22
dash : {
22
23
valType : 'enumerated' ,
23
- values : Object . keys ( DASHES ) ,
24
+ values : sortedObjectKeys ( DASHES ) ,
24
25
dflt : 'solid' ,
25
26
description : 'Sets the dash style of the lines.'
26
27
}
@@ -122,7 +123,7 @@ var attrs = module.exports = overrideAll({
122
123
marker : extendFlat ( { // Parity with scatter.js?
123
124
symbol : {
124
125
valType : 'enumerated' ,
125
- values : Object . keys ( MARKER_SYMBOLS ) ,
126
+ values : sortedObjectKeys ( MARKER_SYMBOLS ) ,
126
127
dflt : 'circle' ,
127
128
arrayOk : true ,
128
129
description : 'Sets the marker symbol type.'
Original file line number Diff line number Diff line change @@ -44079,12 +44079,12 @@
44079
44079
"editType": "calc",
44080
44080
"valType": "enumerated",
44081
44081
"values": [
44082
- "solid",
44083
- "dot",
44084
44082
"dash",
44085
- "longdash",
44086
44083
"dashdot",
44087
- "longdashdot"
44084
+ "dot",
44085
+ "longdash",
44086
+ "longdashdot",
44087
+ "solid"
44088
44088
]
44089
44089
},
44090
44090
"editType": "calc",
@@ -44796,11 +44796,11 @@
44796
44796
"values": [
44797
44797
"circle",
44798
44798
"circle-open",
44799
- "square",
44800
- "square-open",
44799
+ "cross",
44801
44800
"diamond",
44802
44801
"diamond-open",
44803
- "cross",
44802
+ "square",
44803
+ "square-open",
44804
44804
"x"
44805
44805
]
44806
44806
},
You can’t perform that action at this time.
0 commit comments