复制粘贴节点实现问题
#666
Replies: 1 comment 1 reply
-
目前没有提供这个功能。你可以看看好不好搞。
如果只是想避免重绘导致的性能问题,可以修改mind map这个对象,把所有的节点加进去之后再重新绘制完整的脑图。
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
目前做法是递归提取节点的数据结构,使用uuid重置节点id,然后序列化保存在sessionstorage,粘贴时反序列化然后递归调用add_node方法增加节点,节点多的时候每次add_node一次就触发一次重绘重排,会有性能问题,add_node又没有传入children字段的入参,当前库有批量更新用以辅助完成复制粘贴功能的API吗
Beta Was this translation helpful? Give feedback.
All reactions