Skip to content

Commit

Permalink
Remove unnecessary code snippet iVis-at-Bilkent/layout-base#7
Browse files Browse the repository at this point in the history
The removed code snippet is unnecessary after the changes made in layout-base to allow functions for some options
  • Loading branch information
hasanbalci committed Dec 28, 2020
1 parent 57a5fa2 commit 596eb2f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions cose-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -1374,8 +1374,6 @@ CoSELayout.prototype.initParameters = function () {
}

this.useSmartIdealEdgeLengthCalculation = CoSEConstants.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION;
this.springConstant = FDLayoutConstants.DEFAULT_SPRING_STRENGTH;
this.repulsionConstant = FDLayoutConstants.DEFAULT_REPULSION_STRENGTH;
this.gravityConstant = FDLayoutConstants.DEFAULT_GRAVITY_STRENGTH;
this.compoundGravityConstant = FDLayoutConstants.DEFAULT_COMPOUND_GRAVITY_STRENGTH;
this.gravityRangeFactor = FDLayoutConstants.DEFAULT_GRAVITY_RANGE_FACTOR;
Expand Down
6 changes: 1 addition & 5 deletions src/CoSELayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ CoSELayout.prototype.initParameters = function () {

this.useSmartIdealEdgeLengthCalculation =
CoSEConstants.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION;
this.springConstant =
FDLayoutConstants.DEFAULT_SPRING_STRENGTH;
this.repulsionConstant =
FDLayoutConstants.DEFAULT_REPULSION_STRENGTH;
this.gravityConstant =
FDLayoutConstants.DEFAULT_GRAVITY_STRENGTH;
this.compoundGravityConstant =
Expand Down Expand Up @@ -1594,7 +1590,7 @@ CoSELayout.prototype.growTree = function(prunedNodesAll)
var nodeData;
for(var i = 0; i < prunedNodesInStep.length; i++){
nodeData = prunedNodesInStep[i];

this.findPlaceforPrunedNode(nodeData);

nodeData[2].add(nodeData[0]);
Expand Down

0 comments on commit 596eb2f

Please sign in to comment.