disable load animate
This commit is contained in:
1 parent
7d8d077440
commit
98f16a373d
1 file changed
+2
-1
@@ -42,7 +42,7 @@ export default class Editor extends React.Component<EditorProps, EditorState> {
|
|||||||
container: this.ref.current,
|
container: this.ref.current,
|
||||||
width: window.screen.width * 0.66,
|
width: window.screen.width * 0.66,
|
||||||
height: window.screen.height,
|
height: window.screen.height,
|
||||||
animate: true,
|
animate: false,
|
||||||
// fitCenter: true,
|
// fitCenter: true,
|
||||||
modes: {
|
modes: {
|
||||||
default: [
|
default: [
|
||||||
@@ -254,6 +254,7 @@ export default class Editor extends React.Component<EditorProps, EditorState> {
|
|||||||
graph.data(data);
|
graph.data(data);
|
||||||
graph.render();
|
graph.render();
|
||||||
graph.fitCenter();
|
graph.fitCenter();
|
||||||
|
graph.set('animate', true);
|
||||||
|
|
||||||
this.graph = graph;
|
this.graph = graph;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user