Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我们使用 graph.getSelectionCells() 获取选定的单元格时,它只返回被选中的外部单元格,但是,我还需要获取它的子元素。
返回的单元格中不包含其子元素的详细信息。
嗨兄弟这是示例代码,我有包含子元素的顶点
editor.addAction('delete', function(editor, cell) { var cell = graph.getSelectionCell(); console.log(cell); });
单元格对象包含我认为cell.children会返回子对象的子对象
cell.children