Wowoy

Results 9 comments of Wowoy

``` var arr = [ [1, 2, 2], [3, 4, 5, 5], [6, 7, 8, 9, [11, 12, [12, 13, [14] ] ] ], 10]; //数组扁平化 var flatArr = function(arr){...

I have tried, but it didn't work.Could you tell me how you did it ?@dkaufhold

So have you solved this problem?@brianlaw033

Ok,it works.Thank you very much!@dkaufhold

你好,请问后面有思考出该案例如何实现撤销功能吗?@NewByVector

> > 你好,请问后面有思考出该案例如何实现撤销功能吗?@NewByVector > > 官网的demo不支持,这个支持,直接使用 addNode、addEdge 添加节点和边,不再使用resetCells: https://github.com/antvis/X6/blob/master/examples/x6-example-features/src/pages/case/mind.tsx 非常感谢!

> > 你好,请问后面有思考出该案例如何实现撤销功能吗?@NewByVector > > 官网的demo不支持,这个支持,直接使用 addNode、addEdge 添加节点和边,不再使用resetCells: https://github.com/antvis/X6/blob/master/examples/x6-example-features/src/pages/case/mind.tsx 你好,撤销画布上节点添加、删除的时候,还要对画布渲染的数据源 data:MindMapData 也进行撤销处理,不然后续操作是有问题的。请问你这边是怎么处理的呢?

https://github.com/antvis/X6/issues/2555 类似于之前提过的这个issue,但没有人回答,即希望能够在拖拽期间和拖拽完成在目标节点上监听事件