Skip to content

Commit

Permalink
Merge pull request #549 from KrishnaRao-Juvvadi/patch-2
Browse files Browse the repository at this point in the history
Update pathwayviz.js to reduce Steps Gap
  • Loading branch information
NikoAnderson authored Sep 6, 2024
2 parents 5e2e72a + 63421a0 commit 310fb07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/core/assets/pathway/pathwayviz.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ schemeUtil.showProcessNames=true;
schemeUtil.reactionWidth=96;
schemeUtil.reactionHeight=64;
schemeUtil.nodeSpacing=250;
schemeUtil.BREAK_GAP=100; //TODO MAKE DYNAMIC
schemeUtil.BREAK_GAP=50; //TODO MAKE DYNAMIC
schemeUtil.PLUS_GAP=30; //TODO MAKE DYNAMIC
schemeUtil.titleFontSize="1.6em";
schemeUtil.highlightColor="#429ecc";
Expand Down Expand Up @@ -355,7 +355,7 @@ schemeUtil.makeDisplayGraph = function(g4, maxSteps, showReagents) {
var gapPer= schemeUtil.defaultImgSize+schemeUtil.expectedImgPadding;


var gapDist = gapPer*mR1*0.5 + gapPer*mR2*0.5 +schemeUtil.BREAK_GAP ;
var gapDist = gapPer*mR1*0.3 + gapPer*mR2*0.3 +schemeUtil.BREAK_GAP ;
for(var ll=0;ll<nlist1.length;ll++){
for(var mm=0;mm<nlist2.length;mm++){
var con={"axis":lax, "left":nlist1[ll], "right":nlist2[mm], "gap":gapDist};
Expand Down

0 comments on commit 310fb07

Please sign in to comment.