Commit Graph

3453 Commits

Author SHA1 Message Date
moklick
653db49ea4 chore(types): add origin to base node type 2023-03-14 13:20:31 +01:00
moklick
e7826faede refactor(core): use getHandleBounds from utils package 2023-03-14 13:19:59 +01:00
moklick
97e2863c49 feat(edge-utils): add getHandlePosition and getHandle 2023-03-14 13:18:59 +01:00
moklick
6ee3c66371 refactor(svelte,react): use getHandleBounds from utils package 2023-03-14 13:17:20 +01:00
moklick
03fd2b9568 feat(utils): add getHandleBounds 2023-03-14 13:15:36 +01:00
moklick
13e7cc340c feat(core): support origin on node level closes #2874 2023-03-14 12:42:06 +01:00
moklick
cca25a792b feat(svelte): reset store when component unmounts 2023-03-14 12:05:36 +01:00
moklick
608768fd5b Merge branch 'main' into feat/packages 2023-03-14 11:23:32 +01:00
Moritz Klack
d709c78604 Merge pull request #2891 from wbkd/next-release
v11.6 release
2023-03-13 17:03:19 +01:00
moklick
b671cf50d6 chore(packages): bump 2023-03-13 16:57:34 +01:00
moklick
05b5781881 chore(edge-renderer): accept invalid handleid config 2023-03-13 13:34:37 +01:00
Moritz Klack
97756dee60 Merge pull request #2906 from wbkd/feat/custom-minimap-nodes
feat: add prop to render custom node inside minimap
2023-03-13 13:10:02 +01:00
moklick
4a30185a12 chore(changeset): add 2023-03-13 13:09:23 +01:00
moklick
84ffe34f87 chore(custom-minimap-node-example): cleanup 2023-03-13 13:08:29 +01:00
Hayleigh Thompson
8b9f2a8f01 Add an example flow to demo custom minimap nodes. 2023-03-09 14:48:03 +00:00
Hayleigh Thompson
2acc5b7706 ♻️ Rename 'MiniMapNode' prop to 'nodeComponent' for greater consistency. 2023-03-09 14:46:46 +00:00
Hayleigh Thompson
1415ed003e Add an optional 'MiniMapNode' field to 'MiniMapProps'.
This lets users supply a custom SVG node to render in the minimap instead of the default rectangle.
2023-03-09 14:25:23 +00:00
Hayleigh Thompson
46f3f81dc4 🚚 Move 'MiniMapNodeProps' into shared types module. 2023-03-09 14:01:55 +00:00
moklick
3a39876383 feat(svelte): add Provider 2023-03-09 13:10:19 +01:00
moklick
7bd8032ea4 feat(svelte): add SvelteFlowProvider and useSvelteFlow hook 2023-03-08 20:17:33 +01:00
moklick
71cdc0ff02 chore(examples): cleanup + routing 2023-03-08 17:44:54 +01:00
Moritz Klack
2c342d1cb1 Merge pull request #2900 from wbkd/feature/max-properties-resizer
Feature/max properties resizer
2023-03-07 18:02:17 +01:00
Christopher Möller
b11908370b chore(packages): add changeset 2023-03-07 17:59:46 +01:00
moklick
dcc2ce4baa refactor(resize-control): handle min max width + aspect ratio 2023-03-07 17:54:39 +01:00
moklick
1153486ae2 refactor(svelte): use custom stores for nodes and edges 2023-03-07 17:16:33 +01:00
Christopher Möller
2a352a67de refactor(node-resizer): add keepAspectRatio to dependency array, cleanup drag handler 2023-03-07 16:49:15 +01:00
Christopher Möller
8b0808ec03 feat(node-resizer): add flag to keep aspect ratio, cleanup example 2023-03-07 16:41:15 +01:00
Moritz Klack
04e4a904a3 Merge pull request #2895 from wbkd/chore/plugin-testids
Add data-testids for plugins
2023-03-06 16:46:47 +01:00
moklick
3d5764cac6 chore(changeset): add 2023-03-06 16:45:39 +01:00
moklick
d85ce8283d chore(plugins): add data-testids closes #2854 2023-03-06 16:44:45 +01:00
Moritz Klack
ddabe5ab97 Merge pull request #2894 from wbkd/fix/deselect-nodes-focus
fix(nodes): blur when node gets unselected
2023-03-06 16:37:50 +01:00
moklick
83fc467545 chore(changeset): add 2023-03-06 16:36:18 +01:00
moklick
7383200388 fix(nodes): blur when node gets unselected closes #2887, closes #2886 2023-03-06 16:35:24 +01:00
Moritz Klack
f62fc8933f Merge pull request #2893 from wbkd/fix/handle-connectable
fix(handles): check if handle is connectable closes #2869
2023-03-06 15:33:53 +01:00
moklick
e3eb256c77 chore(changesets): adjust 2023-03-06 15:33:32 +01:00
moklick
8f080bd5e0 chore(chnageset): add 2023-03-06 15:32:46 +01:00
moklick
06ae32d982 fix(handles): check if handle is connectable closes #2869 2023-03-06 15:31:44 +01:00
Moritz Klack
389db7a2eb Merge pull request #2892 from wbkd/danielgek-fix-modifier-keys
Danielgek fix modifier keys
2023-03-06 15:24:32 +01:00
moklick
5fabd2720f chore(changeset): add 2023-03-06 15:24:17 +01:00
moklick
5f03ce27f5 Merge branch 'fix-modifier-keys' of github.com:danielgek/react-flow into danielgek-fix-modifier-keys 2023-03-06 15:19:16 +01:00
Moritz Klack
3afc959807 Merge pull request #2847 from bcakmakoglu/feat/replace-id
feat(core): add option to enable/disable replacing id when updating an edge
2023-03-06 15:02:03 +01:00
Moritz Klack
6e02b248fe Merge pull request #2877 from wbkd/feat/isValidConnection
feat(reactflow): add isValidConnection prop
2023-03-06 15:00:16 +01:00
moklick
b88865140c chore(changeset): add 2023-03-06 14:59:59 +01:00
moklick
f783bdc25f refactor(store): dont use isValidConn for edges 2023-03-06 14:58:32 +01:00
Daniel Leal
5293fd74be fix(core): track modifier keys on useKey press 2023-03-03 11:46:50 +00:00
moklick
99ec9f0f03 feat(reactflow): add isValidConnection prop closes #2876 2023-03-02 17:42:07 +01:00
braks
eeed447850 chore(core,utils): add options obj to updateEdge util 2023-03-02 17:00:19 +01:00
braks
24d4c56343 chore(core,types): add UpdateEdgeOptions type 2023-03-02 16:59:43 +01:00
moklick
33b9a801fe refactor(svelte): cleanup node options and props 2023-03-02 15:31:37 +01:00
moklick
df6c3381b1 refactor(utils): remove react dependencies 2023-03-02 14:32:39 +01:00