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

PhyloTree cleanup #493

Merged
merged 10 commits into from
Feb 5, 2018
Merged

PhyloTree cleanup #493

merged 10 commits into from
Feb 5, 2018

Conversation

jameshadfield
Copy link
Member

This PR has no functional changes, but cleans up the files inside src/components/tree and improves syntax (following eslint rules).

The new structure is as follows:

  • tree/index.js: formerly TreeView.js. Exports the React component <Tree>, inside of which PhyloTree is rendered etc
  • tree/treeHelpers.js: functions which operate on the (redux) nodes structure.
  • tree/infoPanels/*: the tip / branch hover info panel & the tip clicked (selected) info panel components.
  • tree/legend/*: the legend components
  • tree/reactD3Interface/index.js: The logic to compare react props and decide the appropriate PhyloTree prototypes to call. Rather complex!
  • tree/reactD3Interface/callbacks.js: the callbacks supplied to PhyloTree (e.g. onTipHover)
  • tree/phyloTree/phyloTree.js: Exports PhyloTree (the function used to render the tree). Note that all prototypes are set here but defined in other files for clarity.
  • tree/phyloTree/*: files which define the prototypes used by PhyloTree

@jameshadfield jameshadfield merged commit e257955 into master Feb 5, 2018
@jameshadfield jameshadfield deleted the phylotree-cleanup branch February 5, 2018 23:09
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.

1 participant