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.
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
Post a Comment