node add desc
This commit is contained in:
1 parent
ad320d73a5
commit
1c7ef5903d
4 files changed
+35
-27
No files matched your search
@@ -80,11 +80,17 @@ export default class Editor extends React.Component<EditorProps, EditorState> {
|
||||
|
||||
graph.on('node:mouseenter', (e: G6GraphEvent) => {
|
||||
const { item } = e;
|
||||
if(item.hasState('selected')) {
|
||||
return;
|
||||
}
|
||||
graph.setItemState(item, 'hover', true);
|
||||
});
|
||||
|
||||
graph.on('node:mouseleave', (e: G6GraphEvent) => {
|
||||
const { item } = e;
|
||||
if(item.hasState('selected')) {
|
||||
return;
|
||||
}
|
||||
graph.setItemState(item, 'hover', false);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user