Commit Graph
78 Commits
Author SHA1 Message Date
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
jasonpul bee2ca5c0c initial working mod with nodeId and handleId split up in Connection type so that target-target and source-source connections cannot be made 2020-10-01 12:48:56 -04:00
moklick 1f7d88fd5e feat(connectionline): custom component option #516 2020-09-19 13:38:40 +02:00
moklick 0b15211e18 refactor(edges): pass original source and target ids, cleanup #476 2020-09-15 11:17:06 +02:00
moklick 8a0a928e17 refactor(nodes): always render nodes that are dragged closes #477 2020-09-11 17:12:09 +02:00
moklick d17e6ebaea refactor(wrapNode): simplify dragging behaviour 2020-09-11 16:36:23 +02:00
moklick fe3dd87d24 fix(selection): handle snap grid correctly 2020-09-11 01:39:40 +02:00
moklick 5c2c1eecad feat(paneview): add translateExtent option closes #479 2020-09-10 18:39:40 +02:00
moklick 5b4b114935 feat(props): add onConnectEnd function #451 2020-08-21 09:40:27 +02:00
moklick 58b0d88208 refactor(nodes): no jumping nodes on start 2020-08-20 14:54:23 +02:00
moklick 23660b5903 feat(reactflowInstance): add zoomTo function closes #433 2020-08-19 19:12:28 +02:00
Nate Amack 27c8ac02dc fix(types): add id to EdgeProps 2020-08-18 15:21:54 -06:00
moklick ee74c90f15 feat(edges): add labelBgBorderRadius option closes #421 2020-08-12 13:00:54 +02:00
moklick 6bbc152041 feat(edge-options): add labelBgPadding #421 2020-08-11 10:36:22 +02:00
moklick 59742c9526 refactor(variables): dont use abbreviations 2020-08-10 12:10:17 +02:00
Nate Amack fddb3e777d feat(props): add mouse event to onConnectStart and onConnectStop 2020-08-04 12:22:38 -06:00
Nate Amack 97ec24fa14 feat(props): add mouse event to onNodeDragStart, onNodeDragStop, onElementClick, and onPaneClick 2020-08-04 12:05:03 -06:00
moklick 56dc40b7cc refactor(types): export onLoadParams #391 2020-08-03 14:38:06 +02:00
moklick 5f91498d19 feat(connection): add start and stop props closes #380 2020-08-01 12:54:14 +02:00
moklick b3391860da feat(edges): add data and classname props, unify node/edge handling closes #357 2020-07-27 12:40:39 +02:00
moklick 2fee4c35ae feat(onLoad): add setTransform function #358 2020-07-25 13:38:55 +02:00
moklick b77977997b feat(props): add onMoveStart and onMoveEnd #358 2020-07-24 17:39:35 +02:00
moklick 48bde20ded feat(node): add draggable, connectable and selectable options 2020-07-22 11:27:11 +02:00
moklick 70121edcd8 feat(smoothstepedge): add border radius param 2020-07-21 16:47:35 +02:00
moklick b51a25191f feat(elements): add isHidden option 2020-07-15 10:31:16 +02:00