Missing sourcePoint and targetPoint
mgax opened this issue · 3 comments
In some cases, the return value of the layout algorithm is missing sourcePoint
and targetPoint
for an edge. Here is an example input and output: https://gist.github.com/mgax/13c0d1ff02a6c9bcc5ed.
Your specified edge crosses a hierarchy boundary (as B is a child of A and C is on the same level as A). Our algorithm does (by default) not support cross hierarchy edges, they are ignored completely.
We however offer a layout option layoutHierarchy
that supports those edges. You add it to the properties of the root level node like this:
{
"properties": {"layoutHierarchy": true},
"children": {
[...]
}
Let me know if this helps.
I've added "options": {"layoutHierarchy": true}
to the $klay.layout
call, that did the trick, thanks!
For future reference, we changed layoutHierarchy
to be true
by default.