Skip to content

Commit b300362

Browse files
committed
removed extra lines
1 parent 7b31024 commit b300362

File tree

1 file changed

+1
-13
lines changed
  • frontend/family_tree/src/Components

1 file changed

+1
-13
lines changed

frontend/family_tree/src/Components/Tree.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ function D3Tree(){
7777
.attr("stroke", "steelblue")
7878
.attr("stroke-width", "3px;")
7979
.style('font', '12px sans-serif')
80-
// .attr("name",d=>d.id)
81-
.on('contextmenu',right_click);
8280

8381
nodeUpdate.transition()
8482
.duration(duration)
@@ -156,21 +154,11 @@ function D3Tree(){
156154
}
157155
update(node);
158156
}
159-
function right_click(node){
160-
// event.preventDefault();
161-
d3.select(this).style("stroke","black");
162-
const name1 = node.id ;
163-
// const level1 = d3.select(this).select("circle").attr("level") ;
164-
console.log(name1) ;
165-
// <PCard name = {name1} />
166-
// ReactDOM.render(<PCard name = {name1} level={level1} />,
167-
// document.getElementById("root"))
168-
} ;
169157
}
170158
})
171159

172160
return(
173161
<div id="tree"></div>
174162
)
175163
}
176-
export default D3Tree;
164+
export default D3Tree;

0 commit comments

Comments
 (0)