-
Notifications
You must be signed in to change notification settings - Fork 627
2nd PR on Interactive Graph 0.0.3 #348
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
2nd PR on Interactive Graph 0.0.3 #348
Conversation
daming-lu
commented
Mar 29, 2018
- switched from cytoscape to dagre+d3 as the latter can build more complex nodes
- add more info to node
frontend/package.json
Outdated
"htmlcs": "^0.4.1", | ||
"lesslint": "^1.0.2", | ||
"lodash": "^4.17.4", | ||
"lodash": "^3.10.0 ", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there is reason for downgrading the version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just tested and the higher version also works. I will work on how to get rid of dagre-d3 and use a combination of dagre and d3. The library dagre-d3 is not well-maintained. Think about the 'require' bug 😢
frontend/src/App.vue
Outdated
@@ -55,13 +55,13 @@ export default { | |||
overflow scroll | |||
border solid 1px $-left-border-color | |||
background $-left-border-color | |||
min-height 300px | |||
min-height 1300px |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to increase the min-height so much?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed it back. As I showed you, I will add scrolling functionality for the long graph.
frontend/src/graph/ui/Chart.vue
Outdated
import cytoscape from 'cytoscape'; | ||
import dagre from 'cytoscape-dagre'; | ||
|
||
// for cytoscape |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we will remove the cytoscape from the package.json, we can also remove this part.
@@ -50,121 +58,73 @@ | |||
} | |||
}, | |||
mounted() { | |||
var that = this; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for getting rid of this.
… into add_more_info_to_node
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
❤️ |