peterkogo
5493f045ff
streamlined connections
2024-06-26 15:03:12 +02:00
peterkogo
44254648c8
changed naming and streamlined connections
2024-06-24 16:37:11 +02:00
Moritz Klack and GitHub
75acd24cee
Rename updateEdge to reconnectEdge ( #4373 )
...
* refactor(edges): rename update to reconnect
* refactor(react): rename edge update to reconnect
* chore(examples): repair broken reconnect example
* chore(react): changelog
2024-06-19 16:57:30 +02:00
moklick
7501eace79
fix(react): default node updates closes #4202
2024-04-29 13:35:58 +02:00
moklick
4a7ba3f6ea
refactor(react): cleanup provider
2024-04-18 11:36:26 +02:00
moklick
b6f458fc5a
chore(utils): cleanup
2024-04-18 09:57:30 +02:00
moklick
3348194dea
refactor(xydrag): cleanup
2024-04-16 18:22:07 +02:00
moklick
5af34fd9d4
fix(react): use equlity check for adopt user nodes
2024-04-16 17:52:15 +02:00
peterkogo
aad6de5359
simplified handleExpandParent, removed isParent, improved some functions
2024-04-16 16:54:38 +02:00
peterkogo
714d30b63f
fixed bug with expanding parent, made adjustments to evaluateNodePosition
2024-04-16 13:19:44 +02:00
peterkogo
87086e9997
added correct expandParent offset of children
2024-04-15 17:23:14 +02:00
peterkogo
ccf6578824
added parentLookup
2024-04-15 17:03:03 +02:00
peterkogo
c5f394e1f7
use evaluateNodePosition for parentExpand
2024-04-15 15:58:25 +02:00
moklick
4fa3a87241
refactor(updates): only trigger dim updates when dim changed
2024-04-11 12:31:14 +02:00
moklick
3e59ab94f0
refactor(nodes): rename parentNode to parentId
2024-04-09 13:26:54 +02:00
moklick
4570b2494b
chore(react/store): cleanup
2024-04-08 17:32:49 +02:00
moklick
ea18e46a1a
refactor(nodes): rename computed to measured, add helpers
2024-04-03 14:54:24 +02:00
moklick
f45f50671d
refactor(react/internal-nodes): cleanup
2024-04-03 12:54:55 +02:00
moklick
e409939234
refactor(node/internals): cleanup
2024-04-02 20:15:38 +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
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 and GitHub
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 Klack and GitHub
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
5746c7b6fb
merge next
2024-01-30 12:36:04 +01:00
moklick
19bcfe28a2
fix(getNodesBounds): use absolute position by default, add options param
2024-01-25 17:46:46 +01:00
peterkogo
829c82cfda
fixed, parentExpand & simplified updateNodePositions
2024-01-24 13:44:28 +01:00
moklick
009fb42017
refactor(system): revise calcNextPosition
2024-01-24 13:04:44 +01:00
moklick
66b5c95ac5
refactor(react): reduce initial store.setState calls
2023-12-19 11:13:48 +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
Moritz Klack and GitHub
6ab408c3bb
Merge pull request #3728 from xyflow/perf/no-drag-on-select
...
Perf/no drag on select
2023-12-16 13:07:00 +01:00
moklick
46d42e7642
chore(store): cleanup
2023-12-13 17:05:13 +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
a58f915697
refactor(connectionlookup): use maps instead of arrays
2023-12-06 17:49:34 +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
Ivan Akulov
b0ca5a5bc9
Set nodeDragThreshold to 1
...
This removes an expensive `dragging: false` update on mouseup (with `dragging: true` never even dispatched)
2023-11-25 00:20:29 +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
d4df8be6f2
chore(svelte): bump
2023-11-13 11:33:05 +01:00
moklick
90912a6c1a
reafactor(react/svelte): rename some util functions #3528
2023-11-13 10:45:06 +01:00
moklick
3484d57990
Merge branch 'next' into feat/multiple-on-selection-change
2023-11-09 16:36:57 +01:00