删除/隐藏复合节点而不删除/隐藏后代 [英] Remove/hide compound node without removing/hiding descendants

查看:35
本文介绍了删除/隐藏复合节点而不删除/隐藏后代的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在cytoscape.js中,compoundNode.remove()从图中删除了复合节点及其后代.

In cytoscape.js, compoundNode.remove() removes the compound node and its descendants from the graph.

有没有办法只删除复合节点并保留后代?

Is there a way to only remove the compound node and keep the descendants?

推荐答案

使用 eles.move():然后,您可以删除(以前是)父节点.

Then you can remove (what used to be) the parent node.

这篇关于删除/隐藏复合节点而不删除/隐藏后代的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆