Skip to content

Commit

Permalink
remove quickdraw (no performance effect)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshadfield committed Feb 20, 2018
1 parent f95eac3 commit 85d993c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/tree/phyloTree/phyloTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ const PhyloTree = function PhyloTree(reduxNodes) {
this.zoomNode = this.nodes[0];
addLeafCount(this.nodes[0]);
/* debounced functions (AFAIK you can't define these as normal prototypes as they need "this") */
this.debouncedMapToScreen = _debounce(this.mapToScreen, this.params.mapToScreenDebounceTime,
{leading: false, trailing: true, maxWait: this.params.mapToScreenDebounceTime});
// this.debouncedMapToScreen = _debounce(this.mapToScreen, this.params.mapToScreenDebounceTime,
// {leading: false, trailing: true, maxWait: this.params.mapToScreenDebounceTime});
};

/* C H A N G E */
Expand Down
4 changes: 0 additions & 4 deletions src/components/tree/reactD3Interface/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ export const changePhyloTreeViaPropsComparison = (reactThis, nextProps) => {
args.newLayout = nextProps.layout;
}

if (nextProps.quickdraw === false && props.quickdraw === true) {
console.warn("quickdraw finished. should call rerenderAllElements");
}

/* zoom to a clade / reset zoom to entire tree */
if (props.tree.idxOfInViewRootNode !== nextProps.tree.idxOfInViewRootNode) {
const rootNode = phylotree.nodes[nextProps.tree.idxOfInViewRootNode];
Expand Down

0 comments on commit 85d993c

Please sign in to comment.