You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
这是根据antv x6官方文档提供的两种群组的操作方式,然后我想将这两种结合在一起,生成下面这个图
像这种情况json数据只会有三个节点,但是自动扩展/收缩父节点时最外层是一个节点,尝试过使用一个自定义的父节点包裹,但是如果一个父节点下有n个子节点,每一层都会渲染一个自定义的子节点 而且在这个自定义的父节点与真实的父节点(json数据)的联动会存在一些问题,并且这个自定义的父节点只是充当了一个包围框的效果,官方提供的案例中显示 自动扩展/收缩父节点时用到了这个node:change:position进行监听,我尝试后发现,只要我拖动父节点,所有子节点也会进入这个监听方式中,请问有没有更好的方式去解决这个问题
Beta Was this translation helpful? Give feedback.
All reactions