Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report]: 折线调整过边的位置后,重新渲染时,边的位置被重置成默认状态 #2001

Closed
ZivvW opened this issue Dec 11, 2024 · 2 comments · Fixed by #2006
Assignees
Labels
bug Something isn't working

Comments

@ZivvW
Copy link
Contributor

ZivvW commented Dec 11, 2024

发生了什么?

折线调整过边的位置后,重新渲染时,边的位置被重置成默认状态。
如图:
chrome-capture-2024-12-11

应该是在 这个提交 里, 增加了在初始化的时候校验起点和终点在不在锚点上的逻辑导致的
另外这里!isEqual(anchor, point) 的判断可能也有问题,point 初始时不含 id,导致哪怕起点和终点的位置没有修改,只改了中间的点也会被重置。

logicflow/core版本

2.0.9

logicflow/extension版本

2.0.13

logicflow/engine版本

No response

浏览器&环境

Chrome

@DymoneLewis
Copy link
Collaborator

提了pr,佬有空可以一起看看
#2006

@lanxiao-fang
Copy link

+1,保存了一份json数据后,拿来做初始化渲染并未按照预期位置渲染,而是默认。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants