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

添加节点后的撤销重做问题 #3982

Closed
GuangZ96 opened this issue Oct 20, 2023 · 3 comments
Closed

添加节点后的撤销重做问题 #3982

GuangZ96 opened this issue Oct 20, 2023 · 3 comments
Labels
resolution: needs demos 需要复现 Issues that need minimal demos to reproduce any problems

Comments

@GuangZ96
Copy link

问题描述

从Stencil侧边栏拖拽三个不同的节点(A、B、C)并按从左到右放置到画布中,调用graph.addEdge方法从左到右添加edge。调用撤销方法到画布只剩下A节点时再调用重做方法,只能恢复B节点,C节点不能恢复。此时graph.canRedo()为false,graph.getRedoStackSize()返回值为0

重现链接

.

重现步骤

从Stencil侧边栏拖拽三个不同的节点(A、B、C)并按从左到右放置到画布中,调用graph.addEdge方法从左到右添加edge。调用撤销方法到画布只剩下A节点时再调用重做方法,只能恢复B节点,C节点不能恢复。此时graph.canRedo()为false,graph.getRedoStackSize()返回值为0

预期行为

重做时能恢复三个节点到画布里

平台

操作系统: [macOS, Windows, Linux]
网页浏览器: [Google Chrome, Safari, Firefox ...]
X6 版本: 2.15.2

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Oct 20, 2023

👋 @GuangZ96

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@NewByVector
Copy link
Contributor

能否提供一个可以复现的 codesanbox 链接?

@NewByVector NewByVector added the resolution: needs demos 需要复现 Issues that need minimal demos to reproduce any problems label Nov 7, 2023
@GuangZ96
Copy link
Author

GuangZ96 commented Feb 8, 2024

能否提供一个可以复现的 codesanbox 链接?

问题已经解决了~

@GuangZ96 GuangZ96 closed this as completed Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution: needs demos 需要复现 Issues that need minimal demos to reproduce any problems
Projects
None yet
Development

No branches or pull requests

2 participants