-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As adding an edge between 2 children node of group whole layout get disturbed #3327
Comments
@Amanyadav12345, would you post the required points in the issue template? In particular, we need a reproducible demo on Jsbin or similar. |
the issue is related to all the layout that support hierarchy we supposed to appear but all those things are related to the edges for example you make a 3 layer structure in a directed form where you have your major spine on top level then you have 2 levels one leaf level and then port level both will be group nodes and will have 30- 30 nodes within them and if there is some edges of level 3 which are giving signal to level 2 or multidirational transmission is happening then the layout of cytoscape changes this was an example of my custom layout that I worked on with my custom data
this component is was using with my data |
will try to make you another demo for sure but for now I have this much to share |
Look forward to the demo |
Added image is of a layout which is getting changed when we add an edge from backend
look at the first group node you can see the difference
this error is due to directional edges
as I exchanged the source and target of the edge the layout is coming perfect
{
"data": {
"textStyleName": "Link (8pt italic)",
"labels": null,
"overlayNames": null,
"overlays": null,
"currentOverlay": null,
"userEdge": false,
"actions": null,
"edgeStyleName": "Spine To LeafLink",
"isHidden": true,
"isHighlighted": false,
"APoint": "FaxxxxxxxxxxxxxxxxxxxxxxJwbGcpNRfG03",
"ZPoint": "FaxxxxxxxxxxxxxxxFdGcpNRfG03",
"ALabel": "Spine-Gxxxxxxxxxxxxxx.3.10",
"ZLabel": "Generated1xxxxxxxxxxxxxxxxxxxxxxxxxxxx1",
"linkType": "SpineToLeafLink",
"edgeStyleId": "Spine To Leaf Link",
"anchorIndexA": -1,
"anchorIndexZ": -1,
"linkSpeed": 0,
"notManaged": false,
"controlPoints": null,
"childCount": 0,
"edgeCollapsed": false,
"entityType": null,
"tooltips": [
{
"label": "Edge Type",
"value": "Logical Spine to Leaf Connection"
},
{
"label": "Spine",
"value": "Spxxxxxxxxxxxxxxxxxx3.10"
},
{
"label": "Leaf",
"value": "GXXXXXXXXXXXXXXX-----11.3.11"
}
],
"tableOverlays": null,
"id": "Fabricxxxxxxxxxxxxxxxxxx----------------------------dFdGcpNRfG11103",
"name": null,
"severity": 0,
"isGroup": false,
"target": "Port::rrrrrrrrrrrrrrrttttttttzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzttttttrryyyyyyyyyrrruussssssssuuuuuur",
"source": "---------------sdaff-----------------------------------------------cpNRfG03",
"default": {
"font-size": 10,
"color": 0,
"font-bold": "false",
"font-bolder": "false",
"font-lighter": "false",
"font-italic": "false",
"font-family": "SansSerif",
"line-style-dashed": false,
"line-dash-pattern": [
1,
1
],
"curve-style": "straight",
"width": 2,
"source-arrow-shape": "none",
"target-arrow-shape": "none",
"line-color": 0,
"text-wrap": "none",
"text-rotation": 0
}
},
"group": "edges"
},
this is the edge json
The text was updated successfully, but these errors were encountered: