Commit Graph

89 Commits

Author SHA1 Message Date
moklick
c42b82159c chore(svelte): use new node props 2023-12-15 12:04:02 +01:00
moklick
94e822caa8 chore(examples): add updateNode 2023-12-13 11:50:09 +01:00
moklick
b332b86090 refactor(svelte): replace on:connect with onconnect 2023-12-13 11:33:49 +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
fcf151f6cb fix(svelte): shortcut delete/input issue #3712 2023-12-11 19:35:31 +01:00
moklick
d4d773d9c6 feat(svelte): add useHandleConnections, useNodesData and useUpdateNodeData 2023-12-11 18:31:37 +01:00
Moritz Klack
dd8ab45a46 Merge branch 'next' into fix/edge-props 2023-11-30 13:03:41 +01:00
moklick
a70e25b1a2 refactor(svelte/edges): cleanup types and components 2023-11-30 12:58:44 +01:00
Moritz Klack
45d11c8f2e Merge pull request #3681 from xyflow/svelte-on-edge-creation
feat(svelte) added onedgecreate function
2023-11-29 16:35:45 +01:00
moklick
95acea54d1 chore(react/svelte): cleanup edge creation 2023-11-29 16:33:57 +01:00
moklick
a1e585fdcc refactor(css-vars): prefix with xy and fix bgColor prop closes #3669 2023-11-28 16:35:44 +01:00
Peter
3f94dfa84c feat(svelte) added onedgecreate function 2023-11-28 15:48:19 +01:00
Peter
0393409e89 fix(system) exportet Optional type, fix(svelte) adjusted exported edge types 2023-11-28 13:03:50 +01:00
moklick
7193b55ff2 chore(examples): cleanup 2023-11-27 11:29:43 +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
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
05968c82a2 feat(svelte): add ondelete handler #3618 2023-11-16 13:24:41 +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
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
6e1e702cf3 Merge branch 'next' of github.com:xyflow/xyflow into next 2023-11-13 11:47:13 +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
90912a6c1a reafactor(react/svelte): rename some util functions #3528 2023-11-13 10:45:06 +01:00
moklick
bcbb0693c2 Merge branch 'xyflow' into svelte-flow-fix-hidden 2023-11-08 18:19:13 +01:00
moklick
434590543d chore(tests): cleanup playwright configs 2023-11-08 18:13:57 +01:00
moklick
d82a54fa5b chore(examples): cleanup 2023-11-08 17:44:51 +01:00
Peter
2ebdca0525 fix(svelte) hiding elements considers missing html elements 2023-11-08 13:12:34 +01:00
Peter
00ff8e877d fixed svelte tests 2023-11-07 16:43:02 +01:00
Peter
fd2aa9f917 changed generic test case to be closer to react 2023-11-07 16:37:18 +01:00
Peter
76f482a105 chore(svelte-examples) updated dependencies 2023-11-07 14:49:02 +01:00
Peter
b92df2ded2 created new test case 2023-11-07 14:44:18 +01:00
Peter
3676670c44 implemented generic tests for config based test flow creation 2023-11-07 13:04:44 +01:00
Peter
0b7613c64e Added tests for pane 2023-11-02 16:29:22 +01:00
Peter
92272080e3 Added more tests for edges, pane 2023-11-02 14:04:41 +01:00
Peter
57c5414061 Merge branch 'main' into refactor-testing 2023-11-02 11:37:00 +01:00
moklick
d2b140ce5e fix(svelte): repair selection, add multi selection closes #3557 2023-10-31 18:31:24 +01:00
Peter
9d386abb2a tests(svelte) WIP added some e2e tests and edges example 2023-10-30 13:24:25 +01:00
moklick
e899c379d0 chore(svelte): cleanup useSvelteFlow 2023-10-30 11:52:50 +01:00
Peter
45ae126d43 Created e2e tests for node interactions 2023-10-25 16:57:22 +02:00
Peter
eca85310e1 restrucutred svelte examples 2023-10-25 13:23:37 +02:00
moklick
747c136ced chore(svelte): bump 2023-10-19 16:37:10 +02:00
moklick
e5f877a9bd refactor(svelte): update node automatically when source-/ targetPos change 2023-10-19 15:47:09 +02:00
moklick
3431087ead Merge branch 'xyflow' into svelte-flow-get-intersecting-nodes 2023-10-05 20:14:42 +02:00
peterkogo
cdf1c4c3a6 refactor(svelte): cleanup useSvelteFlow, add functions (#3474)
* chore(svelte) removed nodes, edges from useSvelteFlow

* feat(svelte) added deleteElements to useSvelteFlow

* fix(svelte) parent div gets resized correctly, got rid of getBoundingClient Rect

* feat(svelte) added screenToFlowCoordinate

* feat(svelte) added flowToScreenCoordinate to useSvelteFlow

* chore(svelte) removed project from useSvelteFlow

* Delete examples/svelte/src/routes/add-node-on-drop/+server.ts

---------

Co-authored-by: Moritz Klack <info@moritzklack.com>
2023-10-05 18:53:57 +02:00