Commit Graph
216 Commits
Author SHA1 Message Date
Christopher Möller 1b390e103d feat(stacking): simplify zIndex and treeLevel behaviour 2021-11-04 12:42:14 +01:00
Christopher Möller 79e46d90ad wip: multiple edge renderers 2021-11-03 17:51:39 +01:00
moklick 248b563231 refactor(nodes): use relative positions for children 2021-11-02 18:58:47 +01:00
moklick 8cd969dd84 refactor(wrapNode): call update dim when node is not initialized 2021-11-02 14:33:09 +01:00
moklick 6e3ff4e849 refactor(wrapNode): call updateNodeDim when target or source pos changes 2021-11-02 12:52:06 +01:00
moklick 74e860587c refactor(node): pass width and height dep to style memo 2021-11-01 18:12:53 +01:00
Christopher Möller 241f604125 feat(nested-nodes): simplify nested node rendering 2021-10-27 15:38:29 +02:00
Christopher Möller 2252ea11ae feat(nested-nodes): change data structure to flat array of nodes 2021-10-21 15:39:27 +02:00
Christopher Möller 8d840b5820 Merge branch 'nested-nodes' of github.com:wbkd/react-flow into nested-nodes 2021-10-21 11:53:56 +02:00
Christopher Möller 9ad894d2df feat(nodes): add helper functions to iterate over child nodes 2021-10-21 11:53:44 +02:00
moklick 450cb90e67 refactor(nested-nodes): zIndex 2021-10-20 19:26:22 +02:00
Christopher Möller 767fbd4377 feat(noderenderer): render child nodes 2021-10-20 16:57:44 +02:00
moklick a0b8aa6fcb Merge branch 'v10' into refactor/nodes-edges-state 2021-10-20 10:52:11 +02:00
moklick 1525af39cf refactor(elements): render only visible elements 2021-10-19 14:57:34 +02:00
moklick 410b12946d refactor(state): separate nodes and edges 2021-10-19 11:09:49 +02:00
Christopher Möller d3b1148bca feat(markers): implement more generic api for markerEnd and markerStart handling 2021-10-14 17:53:50 +02:00
Christopher Möller f30ba98a53 feat(BezierEdge): use quadratic bezier curve for top-left and bottom-right edges 2021-10-13 16:43:11 +02:00
moklick 1f41cc0d9a refactor(zustand): use shallow when needed 2021-10-13 16:19:46 +02:00
moklick ee0d29029a refactor(state): replace redux with zustand 2021-10-13 12:54:01 +02:00
moklick 32ee964044 refactor(elements): split into nodes and edges 2021-10-09 11:33:10 +02:00
moklick ae621d084c chore(selection-listener): remove easy-peasy related comment 2021-10-06 10:30:08 +02:00
datoslabs 0d497b6569 Add optional node dragHandle prop as DraggableCore handle.
#1413
2021-10-04 16:20:44 -04:00
moretall eff3e72e4f Fix when it disappears when connecting an edge to update to a new node 2021-09-13 16:50:02 +09:00
moklick 4a5ceb3fd7 refactor(handle): forward ref closes #1458 closes #1385 2021-09-01 23:04:24 +02:00
moklick e744c41821 refactor(ts): ignore for shadow root elementFromPoint 2021-09-01 22:37:01 +02:00
DiamondDrake b7e63c17e7 Extend Connection Line props
Include Node and Handle in props passed to custom connection lines for advanced usage.
2021-07-20 15:39:11 -04:00
Ilya Moroz 87d518f8b5 fixed smoothStepEdge behaviour for sourceX > targetX for sourcePosition === Position.Right && targetPosition === Position.Left case 2021-06-16 15:00:16 +03:00
moklick 27e2781d8c feat(props): add onEdgeUpdateEnd handler closes #1157 2021-05-29 15:12:31 +02:00
moklick 3124d46732 refactor(edge-updater): pass handle type #1212 2021-05-28 14:26:03 +02:00
moklick 64510998c0 fix(layouting): update node dimensions closes #1181 2021-05-28 13:08:17 +02:00
moklick 3232a33e9e feat(edgeUpdate): add onEdgeUpdateStart handler closes #1120 2021-04-30 16:09:46 +02:00
moklick 7c62787c98 refactor(wrapNode): dont call dimension update twice on mount #1075 2021-04-29 17:27:29 +02:00
moklick ba388514bd refactor(edgetext): catch pointer events closes #1121 2021-04-24 23:24:04 +02:00
Moritz KlackandGitHub 6b6c85fe45 Merge pull request #1116 from clementloridan/main
fix(edge): change order of the first EdgeAnchor disturbed by the EdgeComponent
2021-04-24 14:15:05 +02:00
Clément Loridan 0e9ae9fbc1 fix(edge): change order of the first EdgeAnchor disturbed by the EdgeComponent 2021-04-22 09:56:48 +03:00
moklick 8a08559d65 refactor(draggables): disable userSelectHack closes #1057 2021-04-17 20:59:39 +02:00
moklick c638e780aa refactor(edgetext): render children closes #1073 2021-04-17 20:57:07 +02:00
moklick 5422017592 refactor(nodes): enable mouse handles even when selectable=false closes #1094 2021-04-17 20:50:26 +02:00
moklick d5b84afcc1 chore(example): add edge double click to overview 2021-04-14 09:57:23 +02:00
Анна Кузнецова f565676233 onEdgeDoubleClick support 2021-04-13 20:29:39 +05:00
moklick 46665a2f90 fix(edges): handle mixed flows 2021-04-06 18:52:53 +02:00
moklick 5eef2e5969 refactor(smoothedge): handle mixed flows 2021-04-05 16:12:12 +02:00
moklick 2eea1c34a1 refactor(handles): check if inside a shadow root 2021-03-29 13:46:41 +02:00
moklick c63992e3ff Revert "Merge pull request #1003 from TheUnderScorer/main"
This reverts commit 106f1f0b61, reversing
changes made to 9206e65522.
2021-03-29 13:26:31 +02:00
Moritz KlackandGitHub 106f1f0b61 Merge pull request #1003 from TheUnderScorer/main
Support react-flow inside shadow root
2021-03-29 12:50:20 +02:00
moklick 9a7ccbf829 refactor(edges): handle mixed edges #961 2021-03-28 17:01:50 +02:00
Przemysław Żydek a7e0ace550 feat(components): Return if document is undefined 2021-03-22 11:36:10 +01:00
Przemysław Żydek 96290483b1 feat(components): Support passing shadow root as document 2021-03-22 11:34:47 +01:00
moklick 429c638710 fix(edgeupdater): check if element below is updater 2021-03-22 10:50:56 +01:00
moklick 2ddc5505a3 fix(handle): check if source or target exist 2021-03-21 17:15:23 +01:00