Commit Graph

3921 Commits

Author SHA1 Message Date
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
0473161325 NodeRenderer: don’t rerender unless visible nodes change 2023-11-25 02:18:57 +01:00
Ivan Akulov
99d945f33c Split NodeRenderer into NodeRenderer and NodeComponentWrapper 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
8fe8f73ed3 chore(svelte/system): bump 2023-11-23 13:51:49 +01:00
moklick
1dfff1bf5b refactor(libs) add width, height and positionAbsolute props to NodeProps 2023-11-23 13:50:28 +01:00
moklick
38b5051179 feat(svelte): add on:selectionclick and on:selectioncontextmenu closes #3646 2023-11-23 12:49:06 +01:00
Moritz Klack
ab5eef220f Feat: dark mode (#3652)
* feat(react/svelte): add dark mode defaults

* refactor(darkmode): minimap, edges, edge labels

* chore(style): edge label color

* feat(colorMode): add colorMode prop light/dark/system

* chore(examples): cleanup

* test(colorMode): add tests

* chore(base.css): add dark base

* chore(examples): cleanup
2023-11-23 12:15:36 +01:00
Moritz Klack
74c82272aa Merge pull request #3648 from xyflow/refactor/computed-attributes
Nodes: add computed attr for width/height and absolute position
2023-11-21 17:49:04 +01:00
moklick
51e98ea44d fix(svelte): node toolbar use new width/height attrs 2023-11-21 16:37:38 +01:00
moklick
39b0deb9a4 fix(react): node resizer use new width/height attr 2023-11-21 16:08:13 +01:00
moklick
a166129547 fix(svelte): use node.style.width and node.style 2023-11-21 16:03:07 +01:00
moklick
24c999a335 chore(astro): use width/height attrs 2023-11-21 15:18:35 +01:00
moklick
d812dbbe53 refactor(nodes): add computed attr for width/height and absolute position 2023-11-21 15:06:42 +01:00
Moritz Klack
a27e813cf7 Merge pull request #3647 from xyflow/svelte/refactor-position
refactor(svelte): node wrapper position types
2023-11-21 13:00:00 +01:00
moklick
8a5dd652b3 refactor(svelte): node wrapper position types 2023-11-21 12:59:12 +01:00
peterkogo
b8affc1c82 Svelte NodeToolbar with E2E (#3643)
* Added NodeToolbar

* Added comments & fixed default behaviour in svelte

* Added e2e-tests for NodeToolbar component & added data-id to react NodeToolbar

* refactor(svelte/NodeToolbar): cleanup

* refactor(node-toolbar): add system utils

---------

Co-authored-by: moklick <info@moritzklack.com>
2023-11-20 18:40:43 +01:00
moklick
b659443507 feat(react): add onDelete handler 2023-11-16 13:32:22 +01:00
moklick
05968c82a2 feat(svelte): add ondelete handler #3618 2023-11-16 13:24:41 +01:00
moklick
4849c90cbd refactor(system): getElementsToRemove returns unique edge items 2023-11-16 13:23:55 +01:00
moklick
c4cca8b30d Merge branch 'next' of github.com:xyflow/xyflow into next 2023-11-16 11:56:57 +01:00
moklick
aee289d285 fix(svelte): use correct nodes for node store sync 2023-11-16 11:56:48 +01:00
moklick
c888126438 fix(svelte): use map for dimension updates 2023-11-16 11:56:17 +01:00
moklick
b56f5ad9e1 chore(examples): cleanup 2023-11-16 11:55:59 +01:00
Peter
99c24f86c6 fix(tests) adjusted FlowConfig type 2023-11-16 11:18:11 +01:00
Moritz Klack
14caf422c3 refactor(svelte): add zoomActivationKey and allow null for keys #3618 (#3627)
* refactor(keys): add zoomActivationKey and allow null #3618
2023-11-15 19:06:49 +01:00
Moritz Klack
aeb1c4132f Merge pull request #3620 from xyflow/docs-enhance
READMEs for examples enhanced for better navigation of the monorepo
2023-11-14 16:08:28 +01:00
Moritz Klack
8ddf28f95a Merge pull request #3621 from xyflow/refactor/perf
Refactor: use nodeLookup internally
2023-11-14 16:07:08 +01:00
moklick
e798e94275 refactor(react/svelte): use nodeLookup 2023-11-14 15:52:48 +01:00
Peter
3dad5fe9fa chore(documentation) small improvements 2023-11-14 11:07:34 +01:00
Peter
0d9ac928ff chore(documentation) Added additional READMEs for examples 2023-11-14 11:03:46 +01:00
moklick
a147a20f6e refactor(react/svelte): use node lookup for perf improvement 2023-11-13 16:43:57 +01:00
moklick
6e1e702cf3 Merge branch 'next' of github.com:xyflow/xyflow into next 2023-11-13 11:47:13 +01:00
Moritz Klack
420f0123cc Merge pull request #3609 from xyflow/e2e-test-enhancements
chore(tests) added README and added plugins to generic tests
2023-11-13 11:47:00 +01:00
moklick
dee36d5b90 feat(svelte): add selectionOnDrag 2023-11-13 11:45:53 +01:00
Peter
6db6d957d3 chore(tests) added README and added plugins to generic tests 2023-11-13 11:36:59 +01:00
moklick
d4df8be6f2 chore(svelte): bump 2023-11-13 11:33:05 +01:00
moklick
b65ba07a7f Merge branch 'next' of github.com:xyflow/xyflow into next 2023-11-13 11:19:17 +01:00
Moritz Klack
7ecda0828d Merge pull request #3601 from bcakmakoglu/refactor/handle-styles
refactor(system,styles)!: use translate to align handles to center of its side
2023-11-13 11:18:53 +01:00
moklick
e167df9601 refactor(system): respect zoomActivationKeyPressed when hovering a node 2023-11-13 11:17:37 +01:00
moklick
90912a6c1a reafactor(react/svelte): rename some util functions #3528 2023-11-13 10:45:06 +01:00
braks
0aa1ff2d73 chore(changeset): add 2023-11-10 09:36:33 +01:00
braks
7c60f2234a refactor(system,styles): use translate to align handles to center of their side 2023-11-10 09:35:37 +01:00
Moritz Klack
b368b14b22 Merge pull request #3594 from xyflow/fix/pan-activation-key
Fix/pan activation key
2023-11-09 17:19:27 +01:00
moklick
61648488aa chore(changeset): remove 2023-11-09 17:18:47 +01:00
Moritz Klack
89c016f42d Merge pull request #3592 from xyflow/feat/multiple-on-selection-change
Feat/multiple on selection change
2023-11-09 16:38:35 +01:00
moklick
3484d57990 Merge branch 'next' into feat/multiple-on-selection-change 2023-11-09 16:36:57 +01:00
Moritz Klack
f7911fd81d Merge pull request #3581 from xyflow/svelte-flow-fix-hidden
fix(svelte) hiding elements considers missing html elements
2023-11-08 18:21:25 +01:00
moklick
bcbb0693c2 Merge branch 'xyflow' into svelte-flow-fix-hidden 2023-11-08 18:19:13 +01:00
Moritz Klack
0b8b5470e5 Merge pull request #3544 from xyflow/refactor-testing
Refactor testing
2023-11-08 18:14:39 +01:00