Commit 71efdb3a by Your Name

fitview

parent 5b5dc228
......@@ -37,6 +37,7 @@ class Relation extends React.Component {
}
parentData.children = childData;
this.graph?.changeData();
this.graph?.fitView();
} else if (this.props.data) {
this.graph?.destroy();
this.graph = init(this)(this.elem, this.props.data)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment