moklick
ee1a393dcb
refactor(changes): handle expand parent on dimension update
2022-01-28 13:26:16 +01:00
moklick
1b45a3f85d
fix(fitview): only fit view once
2022-01-28 13:25:56 +01:00
Christopher Möller
af52bab2a5
refactor(fitView): use same fitView function for viewport helper and initial prop
2022-01-27 13:00:03 +01:00
moklick
067d681485
refactor(types): add NodePositionChange type
2022-01-25 13:54:33 +01:00
moklick
0cfcf656a0
refactor(defaultNode/Edges): always trigger onNodesChange and onEdgesChange
2022-01-20 17:55:27 +01:00
moklick
bfea566d70
fix(exports): add hooks
2022-01-20 12:02:45 +01:00
moklick
a182458781
feat(hooks): add useViewport
2022-01-20 10:03:19 +01:00
moklick
e52c5eda19
refactor(types): drop NodeInternalsItem type
2022-01-19 22:17:07 +01:00
moklick
08b2696e6b
feat(hooks): add useNodes and useEdges
2022-01-19 22:16:53 +01:00
Christopher Möller
f95f390cb3
chore(nodes): prevent crashing when data is not set on nodes object
2022-01-19 18:47:52 +01:00
Christopher Möller
c2bae79916
feat(hooks): add useReactFlow hook, refactor types and properties
2022-01-19 18:31:49 +01:00
Christopher Möller and GitHub
1755da3089
Merge pull request #1843 from wbkd/v10-default-nodes-edges
...
feat(general): add defaultNodes, defaultEdges and defaultEdgeOptions
2022-01-19 10:58:10 +01:00
moklick
97b5327e1e
refactor(controls): add titles for buttons
2022-01-18 15:49:18 +01:00
moklick
634b592b3a
feat(general): add defaultNodes, defaultEdges and defaultEdgeOptions
2022-01-18 13:05:41 +01:00
moklick
660ec00be5
refactor(store): cleanup
2022-01-17 15:15:48 +01:00
moklick
0b241d27c1
feat(attribution): add react flow attribution
2022-01-05 16:45:04 +01:00
moklick
eaeebdd12e
feat(subflow): add extendParent option
2022-01-04 11:15:44 +01:00
moklick
f01e239947
refactor(useKeyPress): check if key code is string
2022-01-03 17:54:26 +01:00
moklick
a969c63400
chore(examples): use new api
2021-12-25 13:30:13 +01:00
moklick
ca77d0ef4c
fix(edges): draw connection line when there are no edges closes #1785
2021-12-22 11:17:29 +01:00
moklick
6bbd06a16e
fix(selection): use start x and y when direction changes
2021-12-18 14:28:01 +01:00
moklick
d8b054c7d6
feat(props): add connectOnClick
2021-12-17 10:49:05 +01:00
moklick
3206d49c15
chore(examples): add overview, cleanup
2021-12-17 10:43:53 +01:00
moklick
3b25086149
feat(nodes): connect on touch device
2021-12-17 10:35:53 +01:00
moklick
639aa1ee23
refactor(bundle): remove d3-color via rollup alias
2021-12-16 16:57:16 +01:00
moklick
895e0bc524
refactor(store): use store.setState directly instead of actions
2021-12-11 05:22:41 +01:00
moklick
1a2ac5aa3e
refactor(storeupdater): cleanup
2021-12-10 00:35:41 +01:00
Christopher Möller
747097f61b
chore(zoompane): remove unused code
2021-12-09 15:00:20 +01:00
moklick
81585dbff5
refactor(general): cleanup
2021-12-09 09:17:36 +01:00
moklick
38308781ee
refactor(store): remove unused tree generation code
2021-12-09 07:27:23 +01:00
moklick
88582a86cc
refactor(general): fit view in store to prevent flickering, rename onLoad => onPaneReady
2021-12-09 07:24:45 +01:00
moklick
266007b38b
feat(rf): add fitViewOnInit option
2021-12-08 23:19:43 +01:00
moklick
427c933389
refactor(hooks): rename useNodeDimensions to useNodeBounds
2021-12-07 04:38:17 +01:00
moklick
d9c99a8a6d
refactor(onLoad): add new zoom pan helpers
2021-12-07 04:05:45 +01:00
moklick
c2644f16bb
refactor(nodeInternals): widht and height types optional
2021-12-07 02:01:40 +01:00
moklick
b5bba7dc70
refactor(useZoomPanHelper): add getTransform, getZoom, rename transform to getTransform closes #1746
2021-12-07 01:59:57 +01:00
moklick
731918dc13
feat(hooks): add useNodeDimensions
2021-12-07 01:58:48 +01:00
moklick
2e83af4638
Merge branch 'main' into v10
2021-12-04 01:01:25 +01:00
moklick
5fbf3d8c83
refactor(types): add useZoomPanHelperFunc types
2021-12-04 00:44:59 +01:00
moklick
8710130883
refactor(node): mutate select value before user changes
2021-12-04 00:44:23 +01:00
Moritz Klack and GitHub
d880c13754
Merge pull request #1590 from doctoroyy/fix/first-render
...
fix: avoid render all nodes at first render if set width
2021-12-03 23:28:43 +01:00
moklick
f913ae77ff
refactor(zoomPanHelper): add duration to fit view params
2021-12-03 23:22:01 +01:00
moklick
d9e0f2a555
Merge branch 'main' of github.com:wbkd/react-flow
2021-12-02 22:28:35 +01:00
Moritz Klack and GitHub
70b85692ea
Merge pull request #1699 from Mahdi-Esbati/feature/d3-smooth-transition
...
Smooth transitions for useZoomPanHelper using built-in d3 functions
2021-12-02 22:28:26 +01:00
moklick
ebd5a5f0a0
fix(pos-updates): multi selection drag
2021-12-02 22:24:34 +01:00
Mahdi
7dc8311476
set the default animation duration to 0ms
2021-12-03 00:51:26 +03:30
Michal Srb and GitHub
c1b9275083
Fix bug in updateNodePosDiff action
...
This is the intended logic. Without it triggering this action with a node id will always move selected nodes, which is not desirable if we want to move just an unselected node.
The bug doesn't show up in current examples because at the moment either one selected node is moved or all the selected nodes are moved. TBH this should probably be changed to accept `ids` instead to handle the two cases instead of this tight coupling between the group selection code and this action.
2021-11-29 08:38:49 +01:00
moklick
14b9ec4a6a
refactor(wrapNode): simplify mouse handler
2021-11-28 02:48:09 +01:00
moklick
2cd047bc76
fix(child-nodes): dragging when parent is selected
2021-11-28 02:39:27 +01:00
moklick
801d8f2ad4
fix(subflows): handle selections correctly
2021-11-26 19:35:31 +01:00