Commit Graph
37 Commits
Author SHA1 Message Date
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 d4d773d9c6 feat(svelte): add useHandleConnections, useNodesData and useUpdateNodeData 2023-12-11 18:31:37 +01:00
Peter 1eea7209a3 fix(svelte) fix getIntersectingNodes, closes #3675 2023-11-28 14:45:21 +01:00
Moritz KlackandGitHub 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
moklick e798e94275 refactor(react/svelte): use nodeLookup 2023-11-14 15:52:48 +01:00
moklick 90912a6c1a reafactor(react/svelte): rename some util functions #3528 2023-11-13 10:45:06 +01:00
Moritz KlackandGitHub 3b781a299b Merge branch 'xyflow' into feat/ssr 2023-10-31 14:12:52 +01:00
moklick e899c379d0 chore(svelte): cleanup useSvelteFlow 2023-10-30 11:52:50 +01:00
Peter b502547f8c feat(svelte) added toObject() on useSvelteFlow 2023-10-25 09:10:20 +02:00
moklick e5acbbcf9d chore(types): cleanup 2023-10-23 17:47:50 +02:00
moklick 8467932aad Merge branch 'xyflow' into get-connected-edges 2023-10-05 20:22:41 +02:00
moklick 3431087ead Merge branch 'xyflow' into svelte-flow-get-intersecting-nodes 2023-10-05 20:14:42 +02:00
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
Peter 6fd9d19797 feat(react, svelte) added getIncomers & getOutgoers to use...Flow() 2023-10-05 13:28:04 +02:00
Peter d4179ac592 feat(svelte) added getConnectedEdges to useSvelteFlow 2023-10-05 12:28:06 +02:00
Peter 08dcae0c2b feat(svelte) added useNodes and useEdges hooks 2023-10-04 12:03:24 +02:00
Peter cb72b6a358 fix(svelte) improved type 2023-10-02 12:51:32 +02:00
Peter 3091262065 feat(svelte) added isNodeIntersecting and getIntersectingNodes to svelte-flow 2023-10-02 12:49:38 +02:00
Moritz KlackandGitHub 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 335e116d44 chore(svelte): cleanup 2023-09-27 16:15:43 +02:00
moklick 4e64b57d6d Merge branch 'xyflow' of github.com:wbkd/react-flow into xyflow 2023-09-27 16:11:03 +02:00
moklick 8a1a26385a feat(hooks): add useConnection 2023-09-27 16:10:16 +02:00
moklick 2112398caa fix(svelte): fitView 2023-09-27 13:44:47 +02:00
moklick f919cb152d feat(svelte): add updateNodeInternals 2023-09-14 19:31:15 +02:00
moklick 1b4f4a034e chore(svelte): cleanup 2023-06-05 16:10:48 +02:00
moklick 8354759f57 refactor(packages): change package structure 2023-06-05 15:40:18 +02:00
Moritz KlackandGitHub 1dab08f36e feat(utils): add vanilla drag and panzoom (#3108)
* refactor(panzoom): create vanilla helper

* feat(svelte): add interaction example

* refactor(panzoom): cleanup

* Update function-runner.ts

* refactor(panzoom): cleanup

* refactor(panzoom): rename functions

* feat(utils): add vanilla drag helper (#3107)

* feat(utils): add vanilla drag helper

* refactor(drag): cleanup

* refactor(drag): cleanup

* chore(packages): cleanup

* refactor(panzoom): cleanup and simplify
2023-05-31 15:55:36 +02:00
moklick 5b3c260e45 feat(svelte): add functions to useSvelteFlow 2023-03-14 17:24:01 +01:00
moklick 2e486384a8 feat(svelte): add drag n drop example 2023-03-14 16:48:47 +01:00
moklick 1df4736203 chore(svelte): revise useSvelteFlow example 2023-03-14 14:11:59 +01:00
moklick 7bd8032ea4 feat(svelte): add SvelteFlowProvider and useSvelteFlow hook 2023-03-08 20:17:33 +01:00
moklick 1f44bc4da5 feat(svelte): selection box 2023-02-20 19:01:43 +01:00
moklick ba592ceea6 package(svelte): use system fitView 2023-02-19 16:15:42 +01:00
moklick a12c893226 refactor(packages): add @reactflow/system 2023-02-16 16:37:47 +01:00
moklick 2af833aee1 feat(packages): add svelte version 2023-02-01 09:41:09 +01:00