-
-
Notifications
You must be signed in to change notification settings - Fork 125
[MRG] Initial Release #3
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
Conversation
Need to improve prop typing in react component file
…ency, added more description
Example in Usage-2.py
|
Notable Problems Noticed: Can't select "preset" Layout inside callbacks. Please refer to #6 |
TODO: testing background, multiple bugs seem to exist
|
@Bachibouzouk Please feel free to review too :) |
|
@matthewchan15 Updated as per your recommendations. Thank you for reviewing! |
shammamah-zz
left a comment
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.
Awesome job, Xing! Just a few things I noticed. Let me know if anything is unclear.
| parentData = parent.data(); | ||
| } else { | ||
| parentData = null; | ||
| } |
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.
| } | |
| let parentData = null; | |
| if (parent) { | |
| parentData = parent.data(); | |
| } |
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.
Why are we setting it to null?
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.
It's just a way of rewriting the code that you already have. Not a super big deal, but this way you have a "default" value :)
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.
@shammamah It makes sense! In this particular case i believe it doesn't affect how the app work since the subsequent if/else statement forces the variable to be assigned to a defined value. However I'd love to read more about the differences between null and undefined; feel free to share me an article/blog post about it :)
| with open('demos/data/sample_network.txt', 'r') as f: | ||
| data = f.read().split('\n') | ||
|
|
||
| edges = data[:750] |
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.
Why only 750 lines? Is the dataset too big to render?
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.
Yes, above 750 edges it's harder to visualize the graph
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.
You may want to make a note of this (like in a comment) so that your users can understand - otherwise they might be confused about why 750
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.
Ok will do
Edit: Just committed proposed comments
|
Thank you @matthewchan15 @shammamah for the review! Really helped making the source code better :) |
|
Thank you all for the great reviews! I will be merging now. next milestone: dash cytoscape v0.1.0: a stable, well-documented, community-aware version |
Autodeploy on: https://dash-cytoscape.herokuapp.com/
Please review:
Cytoscape.react.jsusage-elements.pyusage-events.pyusage-stylesheet.pyThanks!