Skip to content

Commit

Permalink
construct borders
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Wicenec committed Oct 17, 2023
1 parent fab02a7 commit 5657592
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/GraphRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ ko.bindingHandlers.nodeRenderHandler = {

// set size
$(element).css({'height':node.getRadius()*2+'px','width':node.getRadius()*2+'px'});

if(node.isLoop()){
$(element).children().children().children('.body').css({'border-style':'dotted','border-width':'5px'})
}
if(node.isGather()){
$(element).children().children().children('.body').css({'border-style':'double','border-width':'5px'})
}
if(node.isScatter()){
$(element).children().children().children('.body').css({'border-style':'dashed','border-width':'5px'})
}
},
};

Expand Down

0 comments on commit 5657592

Please sign in to comment.