antvis/G6

[v5.0.3] ```history```插件异常,不能撤销第一次添加的图元 #5924

zzjjbbaa posted onGitHub

Describe the bug / 问题描述

添加第一个图元后,通过hsitory.undo()不能撤销添加该图元

https://stackblitz.com/edit/react-tk5nfd?file=index.js

Steps to Reproduce the Bug or Issue / 重现步骤

就第一个添加的图元不能撤销,后面添加的图元都可以撤销

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

macOS, Windows, Linux, Others / 其他

Browser / 浏览器

Edge

Additional context / 补充说明

感觉目前的history使用还不是很方便呢,希望beforeAddCmd回调参数能传入用户自定义参数,参考x6


v5.0.9还是浮现了

posted by zzjjbbaa 9 months ago
posted by zzjjbbaa 9 months ago

Fund this Issue

$0.00
Funded

Pull requests