File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ export default class Node extends React.Component {
14
14
15
15
this . state = {
16
16
transform : this . setTransformOrientation ( originX , originY ) ,
17
+ initialStyle : {
18
+ opacity : 0 ,
19
+ } ,
17
20
} ;
18
21
19
22
this . handleClick = this . handleClick . bind ( this ) ;
@@ -73,6 +76,7 @@ export default class Node extends React.Component {
73
76
render ( ) {
74
77
const { nodeData, transitionDuration } = this . props ;
75
78
79
+ // FIXME unstable when transitionDuration undefined
76
80
const transform = transitionDuration && transitionDuration > 0 ?
77
81
this . state . transform :
78
82
this . setTransformOrientation ( nodeData . x , nodeData . y ) ;
@@ -81,6 +85,7 @@ export default class Node extends React.Component {
81
85
< g
82
86
id = { nodeData . id }
83
87
ref = { ( n ) => { this . node = n ; } }
88
+ style = { this . state . initialStyle }
84
89
className = { nodeData . _children ? 'nodeBase' : 'leafNodeBase' }
85
90
transform = { transform }
86
91
onClick = { this . handleClick }
You can’t perform that action at this time.
0 commit comments