Commit Graph

191 Commits

Author SHA1 Message Date
moklick
0fe2f2ae53 refactor(screenToFlowPosition): add option to configure snapToGrid #3771 2024-01-15 12:20:13 +01:00
Felipe Emos
88c9372bb9 fix: typesafety of Node and Edge changes
On some functions and type definitions related to Change Events,
the generics for the types Node and Edge were being lost.

This commit fixes those:
  - Functions
    - applyNodeChanges
    - applyEdgeChanges
  - Types
    - NodeChange
    - EdgeChange
    - OnNodesChange
    - OnEdgesChange
2024-01-13 00:46:34 -03:00
moklick
bfd6c50af9 chore(packages): bump 2024-01-11 17:33:07 +01:00
moklick
c0543f9880 chore(controls): add aria-label #3775 2024-01-11 17:29:28 +01:00
moklick
027f2ffbcd chore(changelog): add changes 2024-01-11 16:38:07 +01:00
moklick
70d76611b1 chore(applyChanges): cleanup 2024-01-11 16:26:59 +01:00
moklick
2ba35de186 refactor(applyChanges): use specific replace events instead of a rough reset 2024-01-11 16:03:02 +01:00
moklick
51c22c804e Merge branch 'next' into refactor/set-nodes 2024-01-11 12:56:40 +01:00
moklick
5aacb84499 fix(react): deleteElements for uncontrolled flows 2024-01-11 12:56:00 +01:00
moklick
0c7a5eac24 Merge branch 'next' of github.com:xyflow/xyflow into refactor/set-nodes 2024-01-11 12:36:54 +01:00
moklick
08c6ed4a06 refactor(deleteElements): use onbeforedelete from store 2024-01-11 11:19:23 +01:00
moklick
cf6c9a86b7 refactor(react/changes): cleanup 2024-01-11 11:08:32 +01:00
moklick
f4def7d6c1 refactor(react/changes): handle resize 2024-01-11 10:27:07 +01:00
Hayleigh Thompson
c9c1db8e79 Merge branch 'main' into refactor/set-nodes 2024-01-10 19:00:56 +00:00
Hayleigh Thompson
8c05ec419e ♻️ Refactor 'applyChanges' for better perf. 2024-01-10 18:17:58 +00:00
moklick
a0af30be3e chore(react): bump 2024-01-10 11:15:01 +01:00
moklick
cc921045ca fix(react/applyChanges): handle deletion and expandParent 2024-01-10 11:11:38 +01:00
Moritz Klack
8afe8b0272 Merge pull request #3774 from xyflow/svelte-node-resizer
Svelte node resizer
2024-01-09 16:52:06 +01:00
moklick
c5d7f107d7 refactor(resizer): correct typo 2024-01-09 16:49:19 +01:00
moklick
b18ef10e43 refactor(react): use node.width/height for resizer changes 2024-01-09 16:20:47 +01:00
moklick
eb3a92de76 chore(react): changelog 2024-01-09 12:41:21 +01:00
moklick
616fb14c34 chore(node-resizer): cleanup 2024-01-09 12:30:29 +01:00
moklick
0cbfcb5c7b Merge branch 'next' into svelte-node-resizer 2024-01-09 11:33:15 +01:00
Moritz Klack
8490bcdfef Merge pull request #3776 from lumosmind/patch-1
Update component-props.ts
2024-01-09 11:28:02 +01:00
Mustafa Kemal Tuna
439cd4a1e5 Update component-props.ts
onEdgeClick function has "node" parameter but type of the parameter is "Edge". It is more convenient to rename the parameter as "edge".
2024-01-09 13:08:29 +03:00
peterkogo
634db6d844 cleaned up naming 2024-01-08 18:28:59 +01:00
moklick
9d4ecff2ee refactor(react/setNodes): naive batching 2024-01-08 18:01:45 +01:00
peterkogo
ec98b724b1 cleaned up some things 2024-01-08 16:41:00 +01:00
peterkogo
4a1d5be831 extract all logic to system 2024-01-08 15:37:34 +01:00
moklick
2870c2f367 fix(react): applyChanges broken for multi changes for one node 2024-01-08 15:29:21 +01:00
moklick
c8a5c25b14 chore(react): bump 2024-01-08 13:31:59 +01:00
moklick
61f8e00541 chore(react): cleanup exports 2024-01-08 13:26:14 +01:00
peterkogo
da47117585 Extracted xyresizer functions to system 2024-01-08 12:25:03 +01:00
moklick
30c975e39f chore(react): cleanup exports 2024-01-08 11:59:01 +01:00
moklick
1efd3ee3d5 fix(applyChanges): handle empty flows + addNodes/addEdges closes #3770 2024-01-08 11:35:59 +01:00
peterkogo
296cc15fc1 Naive copy&paste implementation of node resizer in svelte, some stuff pulled out to system 2024-01-04 21:43:04 +01:00
moklick
e6bee0aae6 fix(react): edge styles 2024-01-04 13:53:36 +01:00
moklick
9e0f974525 fix(react): connectionline 2024-01-04 09:19:39 +01:00
moklick
c48bddd71d fix(react): multi handles 2024-01-04 09:07:57 +01:00
moklick
bd9db5439d chore(changelog): add node update info 2024-01-04 00:07:22 +01:00
moklick
0717a44978 chore(changelog): add csb links 2024-01-04 00:00:23 +01:00
moklick
97a93c8f3f Merge branch 'next' of github.com:xyflow/xyflow into next 2024-01-03 23:54:51 +01:00
moklick
0aad2488e0 chore(package): bump 2024-01-03 23:53:51 +01:00
Moritz Klack
266d10824a chore(react): update changelog 2024-01-03 16:15:18 +01:00
moklick
3eec220d89 chore(packages): bump 2024-01-03 16:11:08 +01:00
moklick
7649e70082 fix(react): minimap nodes for subflows 2024-01-03 13:22:15 +01:00
moklick
12eb2ff0b8 chore(react): cleanup build and package.json 2023-12-26 17:45:39 +01:00
moklick
3960c3bf67 chore(react): simplify useEdgesState/useNodesState 2023-12-23 17:35:55 +01:00
moklick
3d1834b138 feat(react): add useConnection 2023-12-23 17:13:35 +01:00
moklick
a75f461a5c refactor(on-before-delete): async 2023-12-23 15:19:32 +01:00