Commit Graph

270 Commits

Author SHA1 Message Date
peterkogo
e470e4e88f React Flow: opening context menu now correctly resets keypresses 2024-03-18 12:12:10 +01:00
moklick
24a63391fc chore(packages): bump 2024-03-16 12:22:07 +01:00
moklick
e0f7f0a01f chore(changelog): update 2024-03-14 16:18:53 +01:00
moklick
b1c30ee653 refactor(intersections): use passed node values for calculations 2024-03-14 16:14:48 +01:00
moklick
2b26ec79b0 chore(rollup): use correct ts version 2024-03-14 15:17:36 +01:00
moklick
54c69c7d8e fix(react): use fixedForwardRef function 2024-03-14 15:08:39 +01:00
peterkogo
e489df9808 added check to xyhandle pointermove if connection is cancelled 2024-03-13 14:26:27 +01:00
moklick
fd2e131a9c chore(react): dont use position fixed 2024-03-07 13:41:46 +01:00
moklick
018c800a06 react(pane): position fixed 2024-03-07 13:21:58 +01:00
moklick
9565689dfc fix(react): select nodes with selection in uncontrolled flows 2024-03-06 18:06:34 +01:00
Moritz Klack
64e240e7a5 fix(react): allow edges to start from 0,0 (#3980) 2024-03-05 16:49:36 +01:00
peterkogo
1a591f5759 fix(safari): prevent selection of viewport (#3973)
* prevent selection of viewport

* added user-select=none to viewport-portal and moved to be over nodes
2024-03-05 14:47:03 +01:00
peterkogo
69e0be6d32 refactor(useNodesData): improve selector equality function (#3976)
* improved selector equality function for useNodesData

* fixed selector & useNodesData example

* added shallow-node-data as system function
2024-03-05 14:46:25 +01:00
Moritz Klack
4a12a9f781 Refactor(types): unify node and edge handling (#3978)
* refactor(types): unify node and edge type behaviour

* chore(changelogs): update

* chore(examples): cleanup
2024-03-05 13:15:28 +01:00
moklick
d285597f88 chore(changelog): update 2024-03-04 12:15:03 +01:00
moklick
e972656c3d fix(react): ReactFlow comp ref type 2024-03-04 12:01:26 +01:00
moklick
87d363371b fix(react): handle drag for nodes that are initially hidden 2024-02-29 19:44:45 +01:00
moklick
77dadd8084 Merge branch 'next' into node-resizer-origin 2024-02-29 13:21:43 +01:00
moklick
68ce560cf1 chore(handles): cleanup 2024-02-29 12:53:04 +01:00
peterkogo
06f1fc4f73 fixed NodeResizer for various NodeOrigins 2024-02-28 15:55:55 +01:00
peterkogo
5bab60724f simplified 2024-02-28 12:38:43 +01:00
peterkogo
019909da5d added connectionfrom connectionto and clickconnecting css 2024-02-28 12:23:00 +01:00
peterkogo
7831fcef5b Merge branch 'next' into handle-connection-fixes 2024-02-27 17:02:09 +01:00
peterkogo
83e0a333b0 fixed handle connections 2024-02-27 16:54:21 +01:00
Moritz Klack
e5c667d068 Feat(nodes): add initialWidth and initialHeight (#3953)
* feat(react/svelte): add initialWidth/initialHeight closes #3793

* chore(packages): update changelogs
2024-02-27 15:21:35 +01:00
moklick
14516ab061 fix(react): drag nodes after toggle hidden closes #3931 2024-02-26 15:01:17 +01:00
Moritz Klack
8a6e214e6c Merge pull request #3934 from xyflow/escape-fix
disableKeyboardA11y now correctly prevents escape key presses
2024-02-26 14:22:44 +01:00
moklick
0ad5f2d16a chore(react): cleanup node wrapper 2024-02-26 14:22:22 +01:00
Moritz Klack
be08c24cc3 Merge pull request #3933 from xyflow/draggable-cursor-fix
Draggable cursor fix
2024-02-26 14:18:12 +01:00
Moritz Klack
1c9a5f3b30 Merge pull request #3929 from xyflow/extend-use-nodes-data
Extend useNodesData by {id, type, data}
2024-02-26 14:13:39 +01:00
moklick
3fc3b7e603 chore(useNodesData): cleanup return type 2024-02-26 14:13:12 +01:00
peterkogo
62bfc7acc6 disableKeyboardA11y now correctly prevents escape key presses 2024-02-21 08:27:50 +01:00
peterkogo
f8168869bd Node: only use cursor grab when draggable 2024-02-21 08:01:39 +01:00
peterkogo
9fb4979631 Pane: only use cursor grab when panOnDrag=true 2024-02-21 07:41:56 +01:00
peterkogo
89a90cb848 added id, type to result from useNodesData 2024-02-20 18:59:34 +01:00
moklick
c1beb6b58a chore(react): use useIsomorphicLayoutEffect hook to prevent SSR warning 2024-02-20 16:14:39 +01:00
moklick
07ddd97650 refactor(react): add generics to useStoreApi 2024-02-19 10:45:48 +01:00
moklick
7bc9558631 Merge branch 'next' into refactor/infer-node-types 2024-02-19 10:39:56 +01:00
moklick
a16c5c9bd5 chore(types): cleanup 2024-02-17 16:32:59 +01:00
moklick
ad7403cc75 refactor(types): use same structure for nodes and edges 2024-02-17 15:45:10 +01:00
moklick
776f6ce0b7 chore(useStore): add tsdoc example 2024-02-17 14:35:20 +01:00
moklick
f14480dc89 chore(useStore): cleanup 2024-02-17 12:24:38 +01:00
Moritz Klack
af6b0c18b1 Merge pull request #3914 from xyflow/handle-connections-svelte
aligned useHandleConnections in svelte with react version
2024-02-15 18:05:40 +01:00
moklick
edba3963d8 fix(react): re-measure nodes correctly 2024-02-15 17:59:54 +01:00
peterkogo
99fc00f5dc aligned useHandleConnections in svelte with react version 2024-02-15 11:32:55 +01:00
moklick
04ba6e0e4e fix(nodes): re-measure nodes when dimensions are missing 2024-02-13 17:19:32 +01:00
Moritz Klack
4237775b6e Merge pull request #3907 from xyflow/refactor/set-nodes
Refactor(setNodes): improve current batching solution
2024-02-13 16:20:39 +01:00
moklick
2860feec11 fix(react): uncontrolled flows with Provider 2024-02-13 16:12:31 +01:00
moklick
b77fe9da1f fix(deletion): do not delete node when user is inside input closes #3895 2024-02-13 10:50:57 +01:00
moklick
c3d5c8cdfa refactor(useHandleConnections): also return edge id 2024-02-08 13:32:37 +01:00