Skip to content

Commit

Permalink
edit layouts to have edges in diagram
Browse files Browse the repository at this point in the history
Signed-off-by: pogi7 <[email protected]>
  • Loading branch information
pogi7 committed Jan 12, 2024
1 parent 4ab0fb1 commit 5590991
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 27 deletions.
26 changes: 13 additions & 13 deletions src/vision/layouts/diagramLayouts.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"missions": {
"components": {
"name": "Missions",
"queries": {
"missions": "missions-diagram.sparql",
"edge": "objectives-edge.sparql"
"connections": "components.sparql",
"edge": "components.sparql"
},
"rowMapping": {
"id": "missions",
"name": "Missions",
"labelFormat": "{m_id} {m_name}",
"colorKey": "m_id",
"edgeMatchKey": "m_id"
"id": "connections",
"name": "Components",
"labelFormat": "{c1_id} {c1_name}",
"colorKey": "c1_name",
"edgeMatchKey": "c1_id"
},
"edges": [
{
"id": "edge",
"name": "Objective",
"labelFormat": "{o_name}",
"colorKey": "o_id",
"sourceKey": "o_id",
"targetKey": "m_id"
"name": "Components",
"labelFormat": "contains",
"colorKey": "c1_name",
"sourceKey": "c2_id",
"targetKey": "c1_id"
}
]
}
Expand Down
8 changes: 4 additions & 4 deletions src/vision/layouts/pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
},
{
"title": "Missions",
"treeIcon": "graph-scatter",
"treeIcon": "list-tree",
"path": "missions",
"isDiagram": true
"isTree": true
},
{
"title": "Components",
"treeIcon": "list-tree",
"treeIcon": "graph-scatter",
"path": "components",
"isTree": true
"isDiagram": true
},
{
"title": "Connections",
Expand Down
21 changes: 11 additions & 10 deletions src/vision/layouts/treeLayouts.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,24 @@
]
}
},
"components": {
"name": "Components",
"missions": {
"name": "Missions",
"diagrams": {
"all-rows": "components-diagram"
"all-rows": "missions-diagram"
},
"queries": {
"components": "components.sparql"
"missions": "missions.sparql",
"objectives": "missions.sparql"
},
"rowMapping": {
"id": "components",
"name": "Components",
"labelFormat": "{c1_id} {c1_name}",
"id": "missions",
"name": "Missions",
"labelFormat": "{m_id} {m_name}",
"subRowMappings": [
{
"id": "components",
"name": "Masses",
"labelFormat": "{c1_mass}"
"id": "objectives",
"name": "Objectives",
"labelFormat": "{o_name}"
}
]
}
Expand Down

0 comments on commit 5590991

Please sign in to comment.