antvis / XFlow

React component for building interactive diagrams.
https://x6.antv.antgroup.com/xflow/guide/introduction
MIT License
573 stars 235 forks source link

图形的旋转角度,通过graphData属性更新到图层,但图形的角度显示错误 #265

Closed MrMengJ closed 2 years ago

MrMengJ commented 2 years ago

问题描述

手动更新图形的旋转角度,设置了新的graphData,但图层节点图形旋转角度不正确

重现链接

https://codesandbox.io/s/youthful-shtern-964e5p

重现步骤

1、左上角输入框输入想要旋转的角度,点击"调整角度"按钮 2、节点的旋转角度发生变化,且角度正确 3、再次输入一个不同的角度值,点击"调整角度"按钮 4、节点的旋转角度发生变化,但角度不正确。却为上次角度和这次角度的叠加值

预期行为

1、节点的旋转角度如输入框里的值一样

平台

屏幕截图或视频(可选)

update angle

补充说明(可选)

No response

xflow-bot[bot] commented 1 year ago

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.