File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
frontend/family_tree/src/Components Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,6 @@ function D3Tree(){
77
77
. attr ( "stroke" , "steelblue" )
78
78
. attr ( "stroke-width" , "3px;" )
79
79
. style ( 'font' , '12px sans-serif' )
80
- // .attr("name",d=>d.id)
81
- . on ( 'contextmenu' , right_click ) ;
82
80
83
81
nodeUpdate . transition ( )
84
82
. duration ( duration )
@@ -156,21 +154,11 @@ function D3Tree(){
156
154
}
157
155
update ( node ) ;
158
156
}
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
- } ;
169
157
}
170
158
} )
171
159
172
160
return (
173
161
< div id = "tree" > </ div >
174
162
)
175
163
}
176
- export default D3Tree ;
164
+ export default D3Tree ;
You can’t perform that action at this time.
0 commit comments