Description
发生了什么?
使用lf.getGraphData获取的数据,再用lf,render渲染时,图案前后不一致,其中,节点没有问题,边的渲染有问题。
本人初步发现lf.getGraphData获取的数据中,边的起止坐标和实际图案展示的不一致。
初始使用以下代码渲染,保存this.storeData = this.lf.getGraphData()的数据后,又用this.lf.render(this.storeData)渲染,两次坐标不一致。
this.lf.render({
nodes: [
{
id: "1",
type: "rect",
x: 100,
y: 100,
},
{
id: "2",
type: "circle",
x: 300,
y: 200,
},
],
edges: [
{
id: "edge1",
type: "polyline",
sourceNodeId: "1",
targetNodeId: "2",
startPoint: { x: 150, y: 100 },
endPoint: { x: 250, y: 200 },
pointList: [
{ x: 150, y: 100 },
{ x: 200, y: 100 },
{ x: 200, y: 200 },
{ x: 250, y: 200 },
],
},
{
id: "edge2",
type: "polyline",
sourceNodeId: "2",
targetNodeId: "1",
startPoint: { x: 50, y: 150 },
endPoint: { x: 200, y: 300 },
},
],
所有项目代码也发了过去
logicflow-demo.zip
logicflow/core版本
2.0.9
logicflow/extension版本
2.0.13
logicflow/engine版本
No response
浏览器&环境
Chrome