You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---原始邮件---
发件人: ***@***.***>
发送时间: 2025年1月9日(周四) 下午2:49
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [didi/LogicFlow] [Bug Report]: 使用lf.getGraphData获取的数据,再用lf,render渲染时,图案前后不一致,其中,节点没有问题,边的渲染有问题 (Issue #2037)
老哥,升级到2.0.10的版本就没这个问题了
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
发生了什么?
使用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
The text was updated successfully, but these errors were encountered: