Skip to content

Commit 21f5525

Browse files
committed
Disable animation and remove svgShape
1 parent 1bf4ed7 commit 21f5525

File tree

1 file changed

+3
-1
lines changed
  • DotNetSyntaxTreeVisualizer/ClientApp/src/components

1 file changed

+3
-1
lines changed

DotNetSyntaxTreeVisualizer/ClientApp/src/components/Home.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ export class Home extends Component {
4747
<React.Fragment>
4848
<textarea defaultValue={helloWorldCode} onChange={this.handleChanged} style={{ height: '230px', width: '100%' }} />
4949
<div id="treeWrapper" style={containerStyles} ref={tc => (this.treeContainer = tc)}>
50-
<Tree data={this.state.treeJson} orientation="vertical" translate={this.state.translate} pathFunc="straight" />
50+
<Tree data={this.state.treeJson} orientation="vertical"
51+
translate={this.state.translate} pathFunc="straight" transitionDuration={0}
52+
nodeSvgShape={{ shape: "none" }} textLayout={{textAnchor: "middle"}}/>
5153
</div>
5254
</React.Fragment>
5355
);

0 commit comments

Comments
 (0)