Browse Source

fix(graph2d): fix #2500 for graph2d; improves #2580

fix2580
Alexander Wunschik 8 years ago
parent
commit
594c1dbfc8
1 changed files with 31 additions and 31 deletions
  1. +31
    -31
      lib/timeline/optionsGraph2d.js

+ 31
- 31
lib/timeline/optionsGraph2d.js View File

@ -18,53 +18,53 @@ let any = 'any';
let allOptions = {
configure: {
enabled: {bool},
filter: {bool,'function': 'function'},
enabled: {'boolean': bool},
filter: {'boolean': bool,'function': 'function'},
container: {dom},
__type__: {object,bool,'function': 'function'}
__type__: {object,'boolean': bool,'function': 'function'}
},
//globals :
yAxisOrientation: {string:['left','right']},
defaultGroup: {string},
sort: {bool},
sampling: {bool},
stack:{bool},
sort: {'boolean': bool},
sampling: {'boolean': bool},
stack:{'boolean': bool},
graphHeight: {string, number},
shaded: {
enabled: {bool},
enabled: {'boolean': bool},
orientation: {string:['bottom','top','zero','group']}, // top, bottom, zero, group
groupId: {object},
__type__: {bool,object}
__type__: {'boolean': bool,object}
},
style: {string:['line','bar','points']}, // line, bar
barChart: {
width: {number},
minWidth: {number},
sideBySide: {bool},
sideBySide: {'boolean': bool},
align: {string:['left','center','right']},
__type__: {object}
},
interpolation: {
enabled: {bool},
enabled: {'boolean': bool},
parametrization: {string:['centripetal', 'chordal','uniform']}, // uniform (alpha = 0.0), chordal (alpha = 1.0), centripetal (alpha = 0.5)
alpha: {number},
__type__: {object,bool}
__type__: {object,'boolean': bool}
},
drawPoints: {
enabled: {bool},
enabled: {'boolean': bool},
onRender: { 'function': 'function' },
size: {number},
style: {string:['square','circle']}, // square, circle
__type__: {object,bool,'function': 'function'}
__type__: {object,'boolean': bool,'function': 'function'}
},
dataAxis: {
showMinorLabels: {bool},
showMajorLabels: {bool},
icons: {bool},
showMinorLabels: {'boolean': bool},
showMajorLabels: {'boolean': bool},
icons: {'boolean': bool},
width: {string, number},
visible: {bool},
alignZeros: {bool},
visible: {'boolean': bool},
alignZeros: {'boolean': bool},
left:{
range: {min:{number},max:{number},__type__: {object}},
format: {'function': 'function'},
@ -80,28 +80,28 @@ let allOptions = {
__type__: {object}
},
legend: {
enabled: {bool},
icons: {bool},
enabled: {'boolean': bool},
icons: {'boolean': bool},
left: {
visible: {bool},
visible: {'boolean': bool},
position: {string:['top-right','bottom-right','top-left','bottom-left']},
__type__: {object}
},
right: {
visible: {bool},
visible: {'boolean': bool},
position: {string:['top-right','bottom-right','top-left','bottom-left']},
__type__: {object}
},
__type__: {object,bool}
__type__: {object,'boolean': bool}
},
groups: {
visibility: {any},
__type__: {object}
},
autoResize: {bool},
autoResize: {'boolean': bool},
throttleRedraw: {number}, // TODO: DEPRICATED see https://github.com/almende/vis/issues/2511
clickToUse: {bool},
clickToUse: {'boolean': bool},
end: {number, date, string, moment},
format: {
minorLabels: {
@ -146,12 +146,12 @@ let allOptions = {
maxMinorChars: {number},
min: {date, number, string, moment},
minHeight: {number, string},
moveable: {bool},
multiselect: {bool},
moveable: {'boolean': bool},
multiselect: {'boolean': bool},
orientation: {string},
showCurrentTime: {bool},
showMajorLabels: {bool},
showMinorLabels: {bool},
showCurrentTime: {'boolean': bool},
showMajorLabels: {'boolean': bool},
showMinorLabels: {'boolean': bool},
start: {date, number, string, moment},
timeAxis: {
scale: {string,'undefined': 'undefined'},
@ -159,7 +159,7 @@ let allOptions = {
__type__: {object}
},
width: {string, number},
zoomable: {bool},
zoomable: {'boolean': bool},
zoomKey: {string: ['ctrlKey', 'altKey', 'metaKey', '']},
zoomMax: {number},
zoomMin: {number},

Loading…
Cancel
Save