@ -5,7 +5,7 @@
* A dynamic , browser - based visualization library .
*
* @ version 0.7 .0 - SNAPSHOT
* @ date 2014 - 03 - 05
* @ date 2014 - 03 - 06
*
* @ license
* Copyright ( C ) 2011 - 2014 Almende B . V , http : //almende.com
@ -12507,7 +12507,7 @@ var HierarchicalLayoutMixin = {
}
// stabilize the system after positioning. This function calls zoomExtent.
this . _doS tabilize ( ) ;
this . _s tabilize ( ) ;
} ,
@ -13714,7 +13714,7 @@ var ClusterMixin = {
// this is called here because if clusterin is disabled, the start and stabilize are called in
// the setData function.
if ( this . stabilize ) {
this . _doS tabilize ( ) ;
this . _s tabilize ( ) ;
}
this . start ( ) ;
} ,
@ -15423,6 +15423,9 @@ var NavigationMixin = {
this . navigationDivs [ 'wrapper' ] = document . createElement ( 'div' ) ;
this . navigationDivs [ 'wrapper' ] . id = "graph-navigation_wrapper" ;
this . navigationDivs [ 'wrapper' ] . style . position = "absolute" ;
this . navigationDivs [ 'wrapper' ] . style . width = this . frame . canvas . clientWidth + "px" ;
this . navigationDivs [ 'wrapper' ] . style . height = this . frame . canvas . clientHeight + "px" ;
this . containerElement . insertBefore ( this . navigationDivs [ 'wrapper' ] , this . frame ) ;
for ( var i = 0 ; i < navigationDivs . length ; i ++ ) {
@ -15474,7 +15477,6 @@ var NavigationMixin = {
* @ private
* /
_moveUp : function ( event ) {
console . log ( "here" )
this . yIncrement = this . constants . keyboard . speed . y ;
this . start ( ) ; // if there is no node movement, the calculation wont be done
this . _preventDefault ( event ) ;
@ -15914,7 +15916,7 @@ function Graph (container, data, options) {
smoothCurves : true ,
maxVelocity : 10 ,
minVelocity : 0.1 , // px/s
max Iterations: 1000 // maximum number of iteration to stabilize
stabilization Iterations: 1000 // maximum number of iteration to stabilize
} ;
this . editMode = this . constants . dataManipulation . initiallyVisible ;
@ -16220,7 +16222,7 @@ Graph.prototype.setData = function(data, disableStart) {
if ( ! disableStart ) {
// find a stable position or start animating to a stable position
if ( this . stabilize ) {
this . _doS tabilize ( ) ;
this . _s tabilize ( ) ;
}
this . start ( ) ;
}
@ -16240,6 +16242,7 @@ Graph.prototype.setOptions = function (options) {
if ( options . selectable !== undefined ) { this . selectable = options . selectable ; }
if ( options . smoothCurves !== undefined ) { this . constants . smoothCurves = options . smoothCurves ; }
if ( options . configurePhysics !== undefined ) { this . constants . configurePhysics = options . configurePhysics ; }
if ( options . stabilizationIterations !== undefined ) { this . constants . stabilizationIterations = options . stabilizationIterations ; }
if ( options . onAdd ) {
this . triggerFunctions . add = options . onAdd ;
@ -16943,7 +16946,13 @@ Graph.prototype.setSize = function(width, height) {
this . frame . canvas . height = this . frame . canvas . clientHeight ;
if ( this . manipulationDiv !== undefined ) {
this . manipulationDiv . style . width = this . frame . canvas . clientWidth ;
this . manipulationDiv . style . width = this . frame . canvas . clientWidth + "px" ;
}
if ( this . navigationDivs !== undefined ) {
if ( this . navigationDivs [ 'wrapper' ] !== undefined ) {
this . navigationDivs [ 'wrapper' ] . style . width = this . frame . canvas . clientWidth + "px" ;
this . navigationDivs [ 'wrapper' ] . style . height = this . frame . canvas . clientHeight + "px" ;
}
}
this . emit ( 'resize' , { width : this . frame . canvas . width , height : this . frame . canvas . height } ) ;
@ -17461,10 +17470,10 @@ Graph.prototype._drawEdges = function(ctx) {
* Find a stable position for all nodes
* @ private
* /
Graph . prototype . _doS tabilize = function ( ) {
Graph . prototype . _s tabilize = function ( ) {
// find stable position
var count = 0 ;
while ( this . moving && count < this . constants . max Iterations) {
while ( this . moving && count < this . constants . stabilization Iterations) {
this . _physicsTick ( ) ;
count ++ ;
}