Commit Graph
29 Commits
Author SHA1 Message Date
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 KlackandGitHub 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 edba3963d8 fix(react): re-measure nodes correctly 2024-02-15 17:59:54 +01:00
moklick 2860feec11 fix(react): uncontrolled flows with Provider 2024-02-13 16:12:31 +01:00
Moritz KlackandGitHub 6b18c9daeb refactor defaultNodes/defaultEdges handling (#3882)
* refactor(react): cleanup defaultnodes/defaultedges handling

* chore(examples): cleanup

* chore(examples): cleanup

* fix(react): selection for uncontrolled flows
2024-02-07 17:09:39 +01:00
peterkogo 829c82cfda fixed, parentExpand & simplified updateNodePositions 2024-01-24 13:44:28 +01:00
moklick 4143591d96 refactor(react): dont create new edge objects on setEdges 2023-12-18 17:03:48 +01:00
moklick 4316e23309 refactor(edge-renderer): work with edge ids instead of edges, like node renderer 2023-12-17 13:53:07 +01:00
moklick 99a422f9f1 Merge branch 'main' into perf/noderenderer-minimap 2023-12-13 16:32:02 +01:00
moklick d4d773d9c6 feat(svelte): add useHandleConnections, useNodesData and useUpdateNodeData 2023-12-11 18:31:37 +01:00
moklick b6743a3cf3 refactor(react/handle-connection-state): cleanup 2023-12-04 14:23:42 +01:00
moklick 124df00f60 feat(react): connection lookup draft 2023-12-01 12:10:01 +01:00
Ivan Akulov 7ea2e664ed Fix: pass a correct nodeLookup object in setDefaultNodesAndEdges()
This ensures `nodeLookup` is filled correctly at the first render of uncontrolled `ReactFlow`. (This was an issue before, but it caused severe visual issues with changes from previous commits.)
2023-11-25 02:18:57 +01:00
Ivan Akulov 24390162e0 Store: don’t regenerate internal nodes if user-provided nodes haven’t changed 2023-11-25 02:06:43 +01:00
moklick d812dbbe53 refactor(nodes): add computed attr for width/height and absolute position 2023-11-21 15:06:42 +01:00
moklick e798e94275 refactor(react/svelte): use nodeLookup 2023-11-14 15:52:48 +01:00
moklick a147a20f6e refactor(react/svelte): use node lookup for perf improvement 2023-11-13 16:43:57 +01:00
moklick 52a47a7a26 refactor(react): pass fitView for ssr 2023-10-23 16:01:22 +02:00
moklick ed5606d870 refactor(react): use size instead of dimensions, cleanup defaul node handling 2023-10-10 13:24:02 +02:00
moklick 1acc59e44c feat(react): ssr 2023-10-05 17:28:05 +02:00
moklick 86c041c2a0 feat(react): add basic ssr support 2023-10-04 16:03:23 +02:00
Peter 439916e619 fix(react) fitViewOptions.nodes are now working as intended 2023-09-25 13:46:22 +02:00
Peter ada5b94673 feat(svelte) add fitViewOptions, closes #3440 2023-09-25 12:58:04 +02:00
moklick e8c361ac9d chore(zustand): use latest API 2023-08-14 16:42:11 +02:00
Moritz KlackandGitHub 65d1c3bbd4 Refactor/vanilla store utils (#3138)
* feat(stores): use vanilla store utils

* fix(store-utils): keep dimensions if possible

* feat(utils): add nodeDimension and panBy utils

* fix(svelte): use correct updateDim func

* refactor(react): cleanup store

* chore(tests): use new imports
2023-06-13 15:55:06 +02:00
moklick a41ec8f1bc chore(react): cleanup 2023-06-12 17:21:02 +02:00
moklick c6501aff62 refactor(react): use array for nodeInternals, rename to nodes 2023-06-12 16:56:02 +02:00
moklick 8354759f57 refactor(packages): change package structure 2023-06-05 15:40:18 +02:00