@ -187,7 +187,6 @@ function Network (container, data, options) {
type : "continuous" ,
roundness : 0.5
} ,
dynamicSmoothCurves : true ,
maxVelocity : 30 ,
minVelocity : 0.1 , // px/s
stabilize : true , // stabilize before displaying the network
@ -569,9 +568,10 @@ Network.prototype.setOptions = function (options) {
if ( options ) {
var prop ;
var fields = [ 'nodes' , 'edges' , 'smoothCurves' , 'hierarchicalLayout' , 'clustering' , 'navigation' , 'keyboard' , 'dataManipulation' ,
'onAdd' , 'onEdit' , 'onEditEdge' , 'onConnect' , 'onDelete' , 'clickToUse'
var fields = [ 'nodes' , 'edges' , 'smoothCurves' , 'hierarchicalLayout' , 'clustering' , 'navigation' ,
'keyboard' , 'dataManipulation' , ' onAdd' , 'onEdit' , 'onEditEdge' , 'onConnect' , 'onDelete' , 'clickToUse'
] ;
// extend all but the values in fields
util . selectiveNotDeepExtend ( fields , this . constants , options ) ;
util . selectiveNotDeepExtend ( [ 'color' ] , this . constants . nodes , options . nodes ) ;
util . selectiveNotDeepExtend ( [ 'color' , 'length' ] , this . constants . edges , options . edges ) ;