Commit Graph

32 Commits

Author SHA1 Message Date
moklick
7501eace79 fix(react): default node updates closes #4202 2024-04-29 13:35:58 +02:00
moklick
a7b6789ce0 fix(react): handle setNodes batching in provider #4147 2024-04-25 12:57:24 +02:00
moklick
7e8bcd8825 refactor(react): add setAttributes for dimension changes 2024-04-22 14:51:23 +02:00
moklick
6bab47fcb7 refactor(node-selection): cleanup 2024-04-17 12:34:31 +02:00
moklick
ea18e46a1a refactor(nodes): rename computed to measured, add helpers 2024-04-03 14:54:24 +02:00
moklick
67d979985d refactor(react): handle parent expand in store instead of applyChanges 2024-03-28 17:08:05 +01:00
moklick
844d574c4f refactor(react): separate user nodes and indernal nodes 2024-03-27 11:22:43 +01:00
moklick
f507fbcb4b chore(react): createSelectionChange types 2024-02-07 17:16:24 +01:00
Moritz Klack
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
moklick
a027b26f11 fix(react): expandParent option for child nodes 2024-01-25 21:13:06 +01:00
moklick
1bc1ae855d refactor(util-functions): cleanup types so that node/edge types get infered 2024-01-15 17:32:30 +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
2ba35de186 refactor(applyChanges): use specific replace events instead of a rough reset 2024-01-11 16:03:02 +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
cc921045ca fix(react/applyChanges): handle deletion and expandParent 2024-01-10 11:11:38 +01:00
moklick
b18ef10e43 refactor(react): use node.width/height for resizer changes 2024-01-09 16:20:47 +01:00
moklick
2870c2f367 fix(react): applyChanges broken for multi changes for one node 2024-01-08 15:29:21 +01:00
moklick
1efd3ee3d5 fix(applyChanges): handle empty flows + addNodes/addEdges closes #3770 2024-01-08 11:35:59 +01:00
moklick
97ab615e6a Merge branch 'next' into refactor/tsdoc 2023-12-19 11:59:44 +01:00
moklick
0feda91446 refactor(react): do not set selections for all nodes/edges 2023-12-18 17:21:14 +01:00
moklick
4143591d96 refactor(react): dont create new edge objects on setEdges 2023-12-18 17:03:48 +01:00
moklick
5b455a0b2d refactor(edge-wrapper): cleanup 2023-12-18 11:00:27 +01:00
moklick
eb0b09c00e refactor(reactflow): optimize applyChanges handler 2023-12-14 12:32:19 +01:00
moklick
10f31e79e6 refactor(types): use custom node type as generic 2023-12-07 12:24:03 +01:00
Peter
46815e546a TSDocs for applyNodeChanges & applyEdgeChanges 2023-12-05 14:26:55 +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
306f56d7f2 chore(react): export handleParentExpand 2023-09-26 13:09:50 +02:00
moklick
8354759f57 refactor(packages): change package structure 2023-06-05 15:40:18 +02:00