Commit Graph
102 Commits
Author SHA1 Message Date
moklick cd1baadf41 feat(edges): add mouse handler closes #987 2021-03-12 20:46:14 +01:00
Eugene Samonenko d89be58e54 feat(edgeUpdater): add edgeUpdaterRadius prop 2021-03-03 13:10:33 +02:00
moklick 3613c7c81d feat(hooks): useUpdateNodeInternals #916 2021-03-01 16:52:38 +01:00
moklick 254003919c refactor(edge-text): allow html attributes as props 2021-03-01 15:42:17 +01:00
moklick 0d1d802ed5 feat(edge): add onEdgeContextMenu handler #943 2021-02-26 10:51:25 +01:00
moklick ebbc192b8d fix(node-update): force update when source or target pos changes 2021-02-23 19:27:45 +01:00
moklick 5ca8184eb8 feat(useZoomPanHelper): add project function #910 2021-02-17 21:27:05 +01:00
moklick ba5286a105 refactor(elements): split edges and nodes 2021-02-11 18:45:05 +01:00
moklick 201a35dec2 Merge branch 'main' into refactor/redux 2021-02-11 17:52:54 +01:00
moklick 9fcb597ad2 refactor(fitViewParams): allow zero padding 2021-02-08 11:39:55 +01:00
Eugene Samonenko 004b0ef490 feat(fitView): use option includeHiddenNodes false by default 2021-02-07 12:41:30 +02:00
Eugene Samonenko 7dc2c69f2e feat(fitView): added fitViewParams prop to Control component 2021-02-07 10:13:16 +02:00
Eugene Samonenko 7324767c31 feat(fitView): added option to exclude hidden nodes 2021-02-06 12:20:20 +02:00
moklick 4d382eed57 refactor(store): clean up 2021-01-28 12:33:34 +01:00
moklick 477be8d492 refactor(onDrag): use same api as onNodeDragStart 2021-01-27 10:35:06 +01:00
moklick 3dedd615af feat(props): add onDrag handler 2021-01-26 18:17:29 +01:00
moklick 1a9493e3fa feat(props): add nodeExtent prop closes #854 2021-01-26 10:29:38 +01:00
moklick e9a7ade236 refactor(store): use redux instead of easy-peasy 2021-01-19 13:58:24 +01:00
moklick 1c01520a26 refactor(handle): pass children and standard HTMLAttributes props closes #833 2021-01-14 16:33:38 +01:00
moklick 782d567851 refactor(wrapEdge): pass source and target handle ids to edge closes #814 2021-01-11 12:51:03 +01:00
ShaMan123andGitHub ef25b1dd15 Update index.ts 2021-01-01 12:42:13 +02:00
ShaMan123andGitHub 83d59b86dd Update index.ts
more generics
2021-01-01 12:39:56 +02:00
ShaMan123andGitHub 39b388051e Update index.ts 2021-01-01 12:34:31 +02:00
ShaMan123andGitHub 6ed505f70d add type inference for data property 2021-01-01 11:21:55 +02:00
moklick 8b993a7542 feat(zoomPanHelper): add fitBounds func 2020-12-22 14:23:25 +01:00
moklick 869dcadae2 feat(useZoomPanHelper) add setCenter func 2020-12-22 14:11:28 +01:00
moklick 887ffbd0c4 refactor(resizeObserver): check if available 2020-12-01 12:04:13 +01:00
moklick c429ae7ca4 feat(props): add connection mode closes #702 2020-11-30 13:09:56 +01:00
moklick 8acd0c1972 Merge branch 'next' into feat/dragedge 2020-11-30 11:04:31 +01:00
moklick 425fd2e3c0 refactor(onConnectStart): also pass handleId closes #718 2020-11-26 16:20:53 +01:00
moklick 3a5ecfa666 Merge branch 'next' into feat/dragedge 2020-11-26 15:26:48 +01:00
moklick d17562e1a1 refactor(drag-edge): only handle when update function is passed 2020-11-26 15:17:31 +01:00
moklick e88dfdb650 refactor(nodes): use one resize observer for all nodes #723 2020-11-26 14:25:39 +01:00
moklick ee439857f0 refactor(zoomPanHelper): always return functions, add initialized flag #678 2020-11-11 10:25:56 +01:00
moklick ae6ce3cd05 feat(panOnScroll): add mode options free, vertical and horizontal 2020-11-10 17:56:19 +01:00
moklick 5e28762f53 refactor(nodes): don't re-render on pan #677 2020-11-10 17:06:18 +01:00
moklick 959216f6fc refactor(keycodes): allow strings and numbers as key codes 2020-11-10 14:27:15 +01:00
moklick 7cc2306975 feat(reactflowInstance): add toObject function closes #603 2020-11-09 18:17:36 +01:00
moklick 2f40a83b47 refactor(drag-edge): cleanup drag edge handlers 2020-11-05 17:28:21 +01:00
moklick 28ad06a7bd Merge branch 'drag-edge' of https://github.com/zcmgyu/react-flow into zcmgyu-drag-edge 2020-11-05 16:04:37 +01:00
moklick 7e55f8c07f fix(nodes): always drag draggable node even if not selected 2020-11-05 14:36:26 +01:00
moklick 0774d35846 feat(nodes): multi drag 2020-11-05 14:32:10 +01:00
Rhys Lloyd 20c7f1622c Resolve #661
Forward positional data to Node Component.
2020-11-05 09:14:45 +10:30
Moritz KlackandGitHub 9851281709 Merge branch 'main' into drag-edge 2020-11-03 19:59:18 +01:00
moklick ddd3baa5f7 refactor(handle-handling): cleanup 2020-10-29 12:36:10 +01:00
Naden a3e9cbf9dc Cleanup of jasonpul's connection-validation branch 2020-10-27 14:51:54 +11:00
moklick f99d0170ea refactor(nodes): pass isDragging prop closes #624 2020-10-22 17:20:56 +02:00
Long Nguyen bd63a0131a Feature: Draggable edge 2020-10-12 21:34:35 +09:00
moklick 48053133e5 refactor(defaultProps): dont set defaults in main entry point 2020-10-02 14:34:51 +02:00
jasonpul d9ba18d49c broke out handleId by itself rather than joined with nodeID, modded necessary functions to give handles not assigned IDs an empty string for backwards compadibility. Also modded handles so that only target-source and source-target connections are allowed, and no repeat connections are allowed. 2020-10-01 15:47:37 -04:00