We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
transitionDuration
1 parent 49d1f41 commit 0ccc8f4Copy full SHA for 0ccc8f4
src/Node/index.js
@@ -74,20 +74,15 @@ export default class Node extends React.Component {
74
}
75
76
render() {
77
- const { nodeData, transitionDuration } = this.props;
78
-
79
- // FIXME unstable when transitionDuration undefined
80
- const transform = transitionDuration && transitionDuration > 0 ?
81
- this.state.transform :
82
- this.setTransformOrientation(nodeData.x, nodeData.y);
+ const { nodeData } = this.props;
83
84
return (
85
<g
86
id={nodeData.id}
87
ref={(n) => { this.node = n; }}
88
style={this.state.initialStyle}
89
className={nodeData._children ? 'nodeBase' : 'leafNodeBase'}
90
- transform={transform}
+ transform={this.state.transform}
91
onClick={this.handleClick}
92
>
93
<text
0 commit comments