cytoscape.js - Setting control points for Cytoscape edges? -


i'm trying build descending graph in cytoscape. i've got majority done quite well, i'm stuck on edge types. i'd use 'segments' curve-style, edges have points.

however, instead of being zig-zags, edges constrained horizontal/vertical lines.

my graph pretty constrained , user cannot manipulate positions. edges start @ 'parent' element, go straight down set amount, hit point, turn, head horizontally same x child, straight down child element.

right now, lines go straight, , can add segments easily, aren't constrained , based on percentages won't have access without doing bunch of math, guess isn't terrible.

current: enter image description here

desired: enter image description here

if want specific absolute positions on segments edges, you'll need convert absolute co-ordinates relative co-ordinates specify segments edges.

if want different type of edges usecase, feel free propose in issue tracker.


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -