反序列化流程图数据渲染的边指向位置都变成了节点左上角 #2174
-
"@antv/x6": "^1.32.3", VUE2 创建两个容器画布,一个用于画图,一个用于读取画图的json数据用于本地预览,发现反序列化流程图数据渲染的边指向位置都变成了节点左上角; |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
解决掉了,我在第2个画布加一个setTimeout就正常了 |
Beta Was this translation helpful? Give feedback.
解决掉了,我在第2个画布加一个setTimeout就正常了
setTimeout(() => {
that.previewGraph = new Graph({
container: document.getElementById("previewContainer"),
width: "100%",
height: "1000",
});
that.previewGraph.fromJSON(this.graph.toJSON());
}, 0);