|
@ -64,7 +64,6 @@ function Node(properties, imagelist, grouplist, networkConstants) { |
|
|
this.damping = networkConstants.physics.damping; // written every time gravity is calculated
|
|
|
this.damping = networkConstants.physics.damping; // written every time gravity is calculated
|
|
|
this.fixedData = {x:null,y:null}; |
|
|
this.fixedData = {x:null,y:null}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.setProperties(properties, constants); |
|
|
this.setProperties(properties, constants); |
|
|
|
|
|
|
|
|
// creating the variables for clustering
|
|
|
// creating the variables for clustering
|
|
@ -183,8 +182,14 @@ Node.prototype.setProperties = function(properties, constants) { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.xFixed = this.xFixed || (properties.x !== undefined && !properties.allowedToMoveX); |
|
|
|
|
|
this.yFixed = this.yFixed || (properties.y !== undefined && !properties.allowedToMoveY); |
|
|
|
|
|
|
|
|
if (properties.allowedToMoveX == true) {this.xFixed = false;} |
|
|
|
|
|
else {this.xFixed = this.xFixed || (properties.x !== undefined && !properties.allowedToMoveX);} |
|
|
|
|
|
if (properties.allowedToMoveY == true) {this.yFixed = false;} |
|
|
|
|
|
else {this.yFixed = this.yFixed || (properties.y !== undefined && !properties.allowedToMoveY);} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.radiusFixed = this.radiusFixed || (properties.radius !== undefined); |
|
|
this.radiusFixed = this.radiusFixed || (properties.radius !== undefined); |
|
|
|
|
|
|
|
|
if (this.options.shape == 'image') { |
|
|
if (this.options.shape == 'image') { |
|
|