Closed jbeard4 closed 8 years ago
a) The node coordinates in the snippet after layout are all 0. Is it possible that you included the wrong json output?
b) To narrow down the issue, can you give it a try with the following option: separateConnComp: false
. No need to include a result of that, just let me know if the issue persists.
Here is the correct JSON after layout has been applied:
{
"id": "root",
"labels": [
{
"text": "root"
}
],
"edges": [
{
"id": "nav-open_nav-open",
"source": "nav-open",
"target": "nav-open",
"labels": [
{
"text": "menu",
"width": 10,
"height": 5,
"x": 12,
"y": 12
}
],
"sourcePoint": {
"x": 63.35937452316284,
"y": 47
},
"targetPoint": {
"x": 41.40624952316284,
"y": 47
},
"bendPoints": [
{
"x": 78.76562428474426,
"y": 47
},
{
"x": 78.76562428474426,
"y": 65.99999976158142
},
{
"x": 12,
"y": 65.99999976158142
},
{
"x": 12,
"y": 47
}
],
"junctionPoints": []
}
],
"width": 90.76562428474426,
"height": 77.99999976158142,
"children": [
{
"id": "nav-closed",
"labels": [
{
"text": "nav-closed"
}
],
"edges": [],
"width": 24.765625,
"height": 10,
"x": 39.99999952316284,
"y": 12
},
{
"id": "nav-open",
"labels": [
{
"text": "nav-open"
}
],
"edges": [],
"width": 21.953125,
"height": 10,
"x": 41.40624952316284,
"y": 42
}
]
}
separateConnComp: false
does not appear to have an effect.
Thank you.
I have the feeling we don't handle the labels of orthogonal self-loops at all. The label stays in it's previous position (by default this is 0,0
).
So I guess your ticket becomes a feature request :).
OK, thank you for letting me know. In the meantime, I have a few ideas to work around this.
Thank you for your help looking into this.
Please consider the following two cases.
Graph contains one node
The edge label is positioned above the last path segment, which appears correct.
Graph contains two nodes
The edge label is not positioned above the last path segment. It appears not toeflect the
nav-open
node's updated coordinate space.Here is the associated JSON, JSON+layout information, and resulting SVG:
Thank you for looking into this.