docs: set node front when embeded (#694)
This commit is contained in:
@ -33,6 +33,7 @@ export default class FlowGraph {
|
||||
rubberband: true,
|
||||
movable: true,
|
||||
showNodeSelectionBox: true,
|
||||
filter: ['groupNode'],
|
||||
},
|
||||
connecting: {
|
||||
anchor: 'center',
|
||||
@ -346,6 +347,12 @@ export default class FlowGraph {
|
||||
})
|
||||
})
|
||||
|
||||
graph.on('node:embedded', ({ cell }) => {
|
||||
if (cell.shape !== 'groupNode') {
|
||||
cell.toFront()
|
||||
}
|
||||
})
|
||||
|
||||
graph.bindKey('backspace', () => {
|
||||
const cells = graph.getSelectedCells()
|
||||
if (cells.length) {
|
||||
|
Reference in New Issue
Block a user