feat: watch graph change (#1092)

### What problem does this PR solve?

feat: watch graph change #918 

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-06-07 13:46:50 +08:00
committed by GitHub
parent f8d0d657fb
commit 31da511d1d
6 changed files with 33 additions and 8 deletions

View File

@ -78,6 +78,9 @@ function FlowCanvas({ sideWidth }: IProps) {
onKeyUp={handleKeyUp}
onSelectionChange={onSelectionChange}
nodeOrigin={[0.5, 0]}
onChange={(...params) => {
console.info('params:', ...params);
}}
defaultEdgeOptions={{
type: 'buttonEdge',
markerEnd: {