Skip to content

Commit

Permalink
improve cytoscape term view
Browse files Browse the repository at this point in the history
  • Loading branch information
Freymaurer committed Mar 30, 2023
1 parent 6e1beb8 commit 6310db2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/Client/Pages/Cytoscape/CytoscapeGraph.fs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ module Graph =

let updateLayout() =
let layout = cy.Value.layout({|
directed = true
name = "breadthfirst"
padding = 20
name = "cose"
nodeOverlap = 20
nodeDimensionsIncludeLabels = true
boundingBox = {|
x1 = 0
y1 = 0
w = 600 // set the width
h = 300 // set the height
|}
|})
layout.run()

Expand Down

0 comments on commit 6310db2

Please sign in to comment.