forked from neo4j/neo4j-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support double-clicking canvas creates new node
- Loading branch information
Showing
5 changed files
with
46 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...wser/modules/Stream/CypherFrame/VisualizationView/OnCanvasOperation/createNodeCallBack.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { | ||
GraphInteractionCallBack, | ||
NODE_ON_CANVAS_CREATE | ||
} from 'neo4j-arc/graph-visualization' | ||
|
||
const createNodeGraphInteractionCallback: GraphInteractionCallBack = ( | ||
event, | ||
properties | ||
) => { | ||
if (event !== NODE_ON_CANVAS_CREATE) { | ||
return | ||
} | ||
|
||
// create on-canvas node | ||
|
||
// persists node to DB | ||
|
||
return | ||
} | ||
|
||
export default createNodeGraphInteractionCallback |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters