Skip to content
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

New graph layout algorithm + ELK layout engine #5

Merged
merged 10 commits into from
Nov 2, 2023
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
# VisualStudio Code
**/.vscode

# Webstorm/Jetbrains
.idea/

# Dependency directories
/node_modules

Expand Down
76 changes: 76 additions & 0 deletions examples/cmd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"columns" : [
[
{
"instanceName" : "deframer",
"inputPorts" : [
{
"name" : "cmdResponseIn",
"portNumbers" : [
0
]
}
],
"outputPorts" : [
{
"name" : "comOut",
"portNumbers" : [
0
]
}
]
}
],
[
{
"instanceName" : "cmdDisp",
"inputPorts" : [
{
"name" : "seqCmdBuff",
"portNumbers" : [
0
]
}
],
"outputPorts" : [
{
"name" : "compCmdStat",
"portNumbers" : [
0
]
}
]
}
]
],
"connections" : [
[
[
0,
0,
0,
0
],
[
1,
0,
0,
0
]
],
[
[
1,
0,
0,
0
],
[
0,
0,
0,
0
]
]
]
}
129 changes: 129 additions & 0 deletions examples/deframer-file.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
{
"columns" : [
[
{
"instanceName" : "deframer",
"inputPorts" : [],
"outputPorts" : [
{
"name" : "bufferOut",
"portNumbers" : [
0
]
},
{
"name" : "bufferDeallocate",
"portNumbers" : [
0
]
},
{
"name" : "bufferAllocate",
"portNumbers" : [
0
]
}
]
}
],
[
{
"instanceName" : "fileUplink",
"inputPorts" : [
{
"name" : "bufferSendIn",
"portNumbers" : [
0
]
}
],
"outputPorts" : [
{
"name" : "bufferSendOut",
"portNumbers" : [
0
]
}
]
}
],
[
{
"instanceName" : "buffMgr",
"inputPorts" : [
{
"name" : "bufferSendIn",
"portNumbers" : [
0
]
},
{
"name" : "bufferGetCallee",
"portNumbers" : [
0
]
}
],
"outputPorts" : []
}
]
],
"connections" : [
[
[
0,
0,
0,
0
],
[
1,
0,
0,
0
]
],
[
[
1,
0,
0,
0
],
[
2,
0,
0,
0
]
],
[
[
0,
0,
2,
0
],
[
2,
0,
1,
0
]
],
[
[
0,
0,
1,
0
],
[
2,
0,
0,
0
]
]
]
}
109 changes: 109 additions & 0 deletions examples/framed-active.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"columns" : [
[
{
"instanceName" : "activeComm",
"inputPorts" : [],
"outputPorts" : [
{
"name" : "recv",
"portNumbers" : [
0
]
},
{
"name" : "allocate",
"portNumbers" : [
0
]
}
]
}
],
[
{
"instanceName" : "deframer",
"inputPorts" : [
{
"name" : "framedIn",
"portNumbers" : [
0
]
}
],
"outputPorts" : [
{
"name" : "framedDeallocate",
"portNumbers" : [
0
]
}
]
}
],
[
{
"instanceName" : "buffMgr",
"inputPorts" : [
{
"name" : "bufferSendIn",
"portNumbers" : [
0
]
},
{
"name" : "bufferGetCallee",
"portNumbers" : [
0
]
}
],
"outputPorts" : []
}
]
],
"connections" : [
[
[
0,
0,
1,
0
],
[
2,
0,
1,
0
]
],
[
[
0,
0,
0,
0
],
[
1,
0,
0,
0
]
],
[
[
1,
0,
0,
0
],
[
2,
0,
0,
0
]
]
]
}
10 changes: 5 additions & 5 deletions src/fprime_visual/flask/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
font-family: "Roboto Mono", monospace;
}

body{
body {
margin: 0;
padding-top: 43px;
padding-top: 53px;
min-height: 100vh;
background: rgba(21, 26, 42, 1.00);
/* display: flex;
Expand Down Expand Up @@ -47,15 +47,15 @@ header .header-button:hover {
}


canvas, #alert {
#canvas-container, #alert {
display: none;
}

canvas {
#canvas-container {
width: 100%;
}

canvas.show {
#canvas-container.show {
display: block;
}

Expand Down
Loading
Loading