Skip to content

反序列化流程图数据渲染的边指向位置都变成了节点左上角 #2174

Answered by gushenyi123
gushenyi123 asked this question in Q&A
Discussion options

You must be logged in to vote

解决掉了,我在第2个画布加一个setTimeout就正常了
setTimeout(() => {
that.previewGraph = new Graph({
container: document.getElementById("previewContainer"),
width: "100%",
height: "1000",
});
that.previewGraph.fromJSON(this.graph.toJSON());
}, 0);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gushenyi123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant