Commit Graph

77 Commits

Author SHA1 Message Date
moklick
2b0fa97afe chore(examples): second input for useNodesData 2024-01-22 11:42:20 +01:00
Hayleigh Thompson
81b5ea6141 Add an example demonstrating how batched updates work. 2024-01-19 16:10:06 +00:00
moklick
70d76611b1 chore(applyChanges): cleanup 2024-01-11 16:26:59 +01:00
moklick
2ba35de186 refactor(applyChanges): use specific replace events instead of a rough reset 2024-01-11 16:03:02 +01:00
moklick
f4def7d6c1 refactor(react/changes): handle resize 2024-01-11 10:27:07 +01:00
moklick
bff944e29a Merge branch 'next' into refactor/set-nodes 2024-01-11 10:24:18 +01:00
Hayleigh Thompson
c9c1db8e79 Merge branch 'main' into refactor/set-nodes 2024-01-10 19:00:56 +00:00
moklick
a35428d8a0 chore(tests): useNodes/useEdges 2024-01-10 13:41:18 +01:00
moklick
f37ce51f98 test(react): add tests for applyChanges 2024-01-10 11:11:54 +01:00
moklick
0cbfcb5c7b Merge branch 'next' into svelte-node-resizer 2024-01-09 11:33:15 +01:00
moklick
9d4ecff2ee refactor(react/setNodes): naive batching 2024-01-08 18:01:45 +01:00
moklick
5fa95c2413 chore(react): add multi-setnodes example 2024-01-08 15:02:09 +01:00
moklick
61f8e00541 chore(react): cleanup exports 2024-01-08 13:26:14 +01:00
peterkogo
296cc15fc1 Naive copy&paste implementation of node resizer in svelte, some stuff pulled out to system 2024-01-04 21:43:04 +01:00
moklick
7ea999f74b chore(tests): update playwright 2024-01-03 16:11:18 +01:00
moklick
3960c3bf67 chore(react): simplify useEdgesState/useNodesState 2023-12-23 17:35:55 +01:00
moklick
3d1834b138 feat(react): add useConnection 2023-12-23 17:13:35 +01:00
moklick
a75f461a5c refactor(on-before-delete): async 2023-12-23 15:19:32 +01:00
moklick
84147be699 feat(deletion): add onBeforeDelete handler 2023-12-23 11:57:18 +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
d39d803d4f Merge pull request #3685 from iamakulov/perf/tests
[Perf] Add performance tests for selecting, dragging, and remounting
2023-12-17 10:57:56 +01:00
moklick
3b69a11aac chore(examples): cleanup 2023-12-16 11:19:39 +01:00
moklick
9b128bf184 chore(examples): cleanup 2023-12-15 12:31:05 +01:00
moklick
8c705fbdbf fix(examples): use computed attribute 2023-12-15 12:25:50 +01:00
moklick
71f038a319 refactor(node-renderer): simplify selectors, remove reselect, cleanup 2023-12-14 12:32:41 +01:00
moklick
94e822caa8 chore(examples): add updateNode 2023-12-13 11:50:09 +01:00
moklick
8ceb1addc1 refactor(useSetNodeData): put function in useReactFlow/useSvelteFlow 2023-12-12 18:52:45 +01:00
moklick
75979922ea refactor(hooks): rename useUpdateNodeData to useSetNodeData and adjust api 2023-12-12 13:51:58 +01:00
moklick
6cf8589ea8 refactor(react): shorter useHandleConnections params 2023-12-12 10:50:12 +01:00
Moritz Klack
b0d4c1b081 Update ResultNode.tsx 2023-12-11 19:51:40 +01:00
moklick
d4d773d9c6 feat(svelte): add useHandleConnections, useNodesData and useUpdateNodeData 2023-12-11 18:31:37 +01:00
moklick
5d8c1bbff9 chore(useNodesData): example 2023-12-07 14:09:56 +01:00
moklick
959935dfb5 feat(hooks): add useNodesData, useUpdateNodeData, simplify useHandleConnections 2023-12-07 13:23:25 +01:00
moklick
a58f915697 refactor(connectionlookup): use maps instead of arrays 2023-12-06 17:49:34 +01:00
moklick
124df00f60 feat(react): connection lookup draft 2023-12-01 12:10:01 +01:00
Ivan Akulov
c7ddaf6377 Add performance tests for selecting, dragging, and remounting 2023-11-30 03:19:49 +01:00
moklick
a1e585fdcc refactor(css-vars): prefix with xy and fix bgColor prop closes #3669 2023-11-28 16:35:44 +01:00
moklick
1dfff1bf5b refactor(libs) add width, height and positionAbsolute props to NodeProps 2023-11-23 13:50:28 +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
moklick
d812dbbe53 refactor(nodes): add computed attr for width/height and absolute position 2023-11-21 15:06:42 +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
c4cca8b30d Merge branch 'next' of github.com:xyflow/xyflow into next 2023-11-16 11:56:57 +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
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
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