Commit Graph

3778 Commits

Author SHA1 Message Date
moklick
ed5606d870 refactor(react): use size instead of dimensions, cleanup defaul node handling 2023-10-10 13:24:02 +02:00
moklick
93a180b19d feat(examples): add next 2023-10-10 13:19:37 +02:00
moklick
d062214536 chore(react/svelte): rename nodes/edges to initialNodes/initialEdges for Provider comp 2023-10-09 17:12:49 +02:00
moklick
afa6365e12 chore(react/svelte): rename node.dimensions to node.size 2023-10-09 17:04:11 +02:00
moklick
d78b2aad6f Merge branch 'xyflow' into feat/ssr 2023-10-05 20:31:55 +02:00
Moritz Klack
5313a9bfcc Merge pull request #3480 from wbkd/get-connected-edges
Improvements for getConnectedEdges, getIncomers, getOutgoers
2023-10-05 20:23:04 +02:00
moklick
8467932aad Merge branch 'xyflow' into get-connected-edges 2023-10-05 20:22:41 +02:00
Moritz Klack
e3660a2c4b feat(svelte): add intersection helpers
Svelte flow get intersecting nodes
2023-10-05 20:15:27 +02:00
moklick
3431087ead Merge branch 'xyflow' into svelte-flow-get-intersecting-nodes 2023-10-05 20:14:42 +02:00
Moritz Klack
c38047af4c Merge pull request #3478 from wbkd/react-flow-use-react-flow
useReactFlow improvements
2023-10-05 18:55:03 +02:00
peterkogo
cdf1c4c3a6 refactor(svelte): cleanup useSvelteFlow, add functions (#3474)
* chore(svelte) removed nodes, edges from useSvelteFlow

* feat(svelte) added deleteElements to useSvelteFlow

* fix(svelte) parent div gets resized correctly, got rid of getBoundingClient Rect

* feat(svelte) added screenToFlowCoordinate

* feat(svelte) added flowToScreenCoordinate to useSvelteFlow

* chore(svelte) removed project from useSvelteFlow

* Delete examples/svelte/src/routes/add-node-on-drop/+server.ts

---------

Co-authored-by: Moritz Klack <info@moritzklack.com>
2023-10-05 18:53:57 +02:00
Moritz Klack
86516d3ddd Merge pull request #3472 from wbkd/svelte-flow-use-nodes-edges
feat(svelte) added useNodes and useEdges hooks
2023-10-05 18:51:00 +02:00
moklick
0888f69909 chore(examples): cleanup 2023-10-05 17:28:30 +02:00
moklick
1acc59e44c feat(react): ssr 2023-10-05 17:28:05 +02:00
moklick
f37a2d9a19 feat(svelte): ssr 2023-10-05 17:27:53 +02:00
moklick
1c791811a9 feat(system): add handles and dimensions for ssr 2023-10-05 17:26:59 +02:00
Peter
10a14a2af4 fix(svelte) edge labels default font-size is 10px 2023-10-05 14:44:56 +02:00
Peter
6fd9d19797 feat(react, svelte) added getIncomers & getOutgoers to use...Flow() 2023-10-05 13:28:04 +02:00
Peter
1b0790e79f refactor(xyflow) improved performance of getOutgoersBase & getIncomersBase 2023-10-05 13:00:20 +02:00
Peter
d4179ac592 feat(svelte) added getConnectedEdges to useSvelteFlow 2023-10-05 12:28:06 +02:00
Peter
8e7ee88ca3 feat(react) added getConnectedEdges to useReactFlow 2023-10-05 12:24:35 +02:00
Peter
18a22e6f4c refactor(xyflow) improved performance of getConnectedEdgesBase 2023-10-05 12:10:35 +02:00
Peter
b6ea01f51b chore(react) deleteElements now returns deletedEdges & deletedNodes 2023-10-05 10:39:52 +02:00
Peter
2d2f642c82 feat(react) added screenToFlowCoordinate & flowToScreenCoordinate 2023-10-05 10:34:58 +02:00
moklick
86c041c2a0 feat(react): add basic ssr support 2023-10-04 16:03:23 +02:00
Peter
08dcae0c2b feat(svelte) added useNodes and useEdges hooks 2023-10-04 12:03:24 +02:00
Peter
e46c3cddaa fix(svelte) prevent unecessary rerenders & execution of reactive statements, closes #3336 2023-10-04 11:32:32 +02:00
Peter
969fa8280a fix(svelte-flow) style is now applied properly to the connectionLine 2023-10-04 10:37:39 +02:00
moklick
53c04e2546 chore(react): cleanup viewport component 2023-10-02 16:16:17 +02:00
Peter
cb72b6a358 fix(svelte) improved type 2023-10-02 12:51:32 +02:00
Peter
3091262065 feat(svelte) added isNodeIntersecting and getIntersectingNodes to svelte-flow 2023-10-02 12:49:38 +02:00
Moritz Klack
ae33cba887 feat(react/svelte): controlled viewport (#3461)
* feat(react): controlled viewport

* refactor(react): cleanup viewport

* feat(svelte): two way data binding for viewport, cleanup transform <> viewport stuff

* refactor(svelte): viewport stuff
2023-09-28 16:19:03 +02:00
moklick
2215b68438 fix(svelte): background lines 2023-09-27 17:26:51 +02:00
moklick
335e116d44 chore(svelte): cleanup 2023-09-27 16:15:43 +02:00
moklick
4e64b57d6d Merge branch 'xyflow' of github.com:wbkd/react-flow into xyflow 2023-09-27 16:11:03 +02:00
Moritz Klack
43914e5162 Merge pull request #3456 from wbkd/svelte-flow-connection-line
feat(svelte) added connectionLineComponent
2023-09-27 16:10:48 +02:00
moklick
8a1a26385a feat(hooks): add useConnection 2023-09-27 16:10:16 +02:00
Peter
79ab4cb3e0 fix(svelte) corrected <g> positioning 2023-09-27 16:02:46 +02:00
Peter
1d8fc1bfaf fix(svelte) backup connection line now renders correctly 2023-09-27 15:53:17 +02:00
Peter
e83ba5dfa8 fix(svelte) fitView props mismatched 2023-09-27 15:10:55 +02:00
Peter
2e6c5d9191 Merge branch xyflow into svelte-flow-connection-line 2023-09-27 13:48:29 +02:00
moklick
2112398caa fix(svelte): fitView 2023-09-27 13:44:47 +02:00
Peter
66caa4c8ca chore(svelte) refactored connectionPath & connection 2023-09-27 13:40:03 +02:00
moklick
05a33e6b6d chore(svelte): bump 2023-09-26 16:01:05 +02:00
Peter
854a9d3606 feat(svelte) added connectionLineContainerStyle and connectionLineStyle props 2023-09-26 16:01:00 +02:00
moklick
84fbb25f69 chore(store): use correct type for fitView action 2023-09-26 16:00:07 +02:00
moklick
88104fc15f refactor(node): make expandParent compatible with extent parent 2023-09-26 15:55:21 +02:00
Peter
beecd9623b refined example 2023-09-26 15:49:09 +02:00
moklick
9865b9c2bf refactor(nodes): don't delete nodes when user focuses input and presses modifier 2023-09-26 15:48:40 +02:00
Peter
bba97aa01a feat(svelte) added connectionLineComponent 2023-09-26 15:45:06 +02:00