Commit Graph
33 Commits
Author SHA1 Message Date
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 KlackandGitHub 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
spky bbd5973d66 feat(react): Support Mutiple useOnSelectionChange Hook subscribers 2023-11-03 00:48:46 +01:00
moklick 6de9bbc916 refactor(react/svelte): simplify ssr usage 2023-10-23 16:37:28 +02: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
moklick 348f311fc7 feat(react,svelte): add nodeDragThreshold 2023-09-26 13:08:27 +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