Commit Graph

46 Commits

Author SHA1 Message Date
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
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
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
3484d57990 Merge branch 'next' into feat/multiple-on-selection-change 2023-11-09 16:36:57 +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
e83079c5cd react examples now automatically redirect / to examples 2023-11-08 11:28:17 +01:00
Peter
5fd7db74a8 fixed tests for react & added scripts to package.json 2023-11-08 11:22:20 +01:00
Peter
a92671093c added tests 2023-11-08 10:39:54 +01:00
Peter
9551ebc0f3 ported all test cases from svelte to react 2023-11-07 16:31:49 +01:00
Peter
8be0337e00 refactored react-examples app and created generic test case component 2023-11-07 16:19:09 +01:00
Peter
b8a75ccac6 chore(react-examples) updated dependencies 2023-11-07 15:05:38 +01:00
spky
bbd5973d66 feat(react): Support Mutiple useOnSelectionChange Hook subscribers 2023-11-03 00:48:46 +01:00
Peter
57c5414061 Merge branch 'main' into refactor-testing 2023-11-02 11:37:00 +01:00
Peter
45ae126d43 Created e2e tests for node interactions 2023-10-25 16:57:22 +02:00
moklick
d78b2aad6f Merge branch 'xyflow' into feat/ssr 2023-10-05 20:31:55 +02:00
moklick
0888f69909 chore(examples): cleanup 2023-10-05 17:28:30 +02:00
Peter
2d2f642c82 feat(react) added screenToFlowCoordinate & flowToScreenCoordinate 2023-10-05 10:34:58 +02:00
moklick
86c041c2a0 feat(react): add basic ssr support 2023-10-04 16:03:23 +02:00
Moritz Klack
ae33cba887 feat(react/svelte): controlled viewport (#3461)
* feat(react): controlled viewport

* refactor(react): cleanup viewport

* feat(svelte): two way data binding for viewport, cleanup transform <> viewport stuff

* refactor(svelte): viewport stuff
2023-09-28 16:19:03 +02:00
moklick
348f311fc7 feat(react,svelte): add nodeDragThreshold 2023-09-26 13:08:27 +02:00
Peter
88e840ccc9 pull request review 2023-09-26 11:17:21 +02:00
Peter
26a28109a2 Merge branch xyflow into svelte-flow-fit-view-options 2023-09-26 11:08:29 +02:00
Peter
7b5d98fc82 fix(examples) added connectionMode prop to examples 2023-09-25 16:29:49 +02:00
Peter
75434d059b feat(svelte) added connectionMode prop 2023-09-25 15:58:12 +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
Moritz Klack
dcc38794a6 chore(svelte-examples): pull out of lib package (#3363)
* chore(svelte-examples): pull out of lib package

* chore(svelte-examples): cleanup

* chore(examples): add readme files
2023-08-31 16:44:27 +02:00