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

2nd PR on Interactive Graph 0.0.3 #348

Merged
merged 6 commits into from
Mar 29, 2018
Merged

2nd PR on Interactive Graph 0.0.3 #348

merged 6 commits into from
Mar 29, 2018

Conversation

daming-lu
Copy link
Collaborator

  • switched from cytoscape to dagre+d3 as the latter can build more complex nodes
  • add more info to node

screen shot 2018-03-29 at 10 41 10 am

nickyfantasy
nickyfantasy previously approved these changes Mar 29, 2018
"htmlcs": "^0.4.1",
"lesslint": "^1.0.2",
"lodash": "^4.17.4",
"lodash": "^3.10.0 ",
Copy link
Collaborator

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?

Copy link
Collaborator Author

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 😢

@@ -55,13 +55,13 @@ export default {
overflow scroll
border solid 1px $-left-border-color
background $-left-border-color
min-height 300px
min-height 1300px
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

import cytoscape from 'cytoscape';
import dagre from 'cytoscape-dagre';

// for cytoscape
Copy link
Collaborator

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;
Copy link
Collaborator

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.

Copy link
Collaborator

@jetfuel jetfuel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@daming-lu daming-lu merged commit 39a95f5 into PaddlePaddle:develop Mar 29, 2018
@varunarora
Copy link

❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants