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
moklick
330eefe695
refactor(selection): only fire selection changes that changed
2021-11-26 18:42:52 +01:00
moklick
d260abec75
refactor(actions): addSelectedElements => addSelectedNodes, addSelectedEdges
2021-11-26 15:18:27 +01:00
moklick
a032306408
feat(hooks): add useNodesState and useEdgesState
2021-11-26 14:39:22 +01:00
moklick
62f1e90244
fix(edges): updatable edge
2021-11-26 07:14:38 +01:00
moklick
33255635af
refactor(edge-renderer): cleanup
2021-11-26 07:07:21 +01:00
Christopher Möller
b2ac219912
refactor(edge): pass onEdgeUpdate instead of creating onConnect function
2021-11-25 16:04:08 +01:00
Christopher Möller
22f7dd6306
refactor(edges): cleanup edge renderer
2021-11-25 15:48:57 +01:00
Christopher Möller
cffefe78c8
fix(zIndex): allow zIndex to be set to 0 explicitly
2021-11-24 12:23:03 +01:00
Christopher Möller
0f480444f2
chore(markers): cleanup marker api
2021-11-24 12:02:09 +01:00
moklick
5124b6b134
refactor(node): disconnect resize observer on unmount
2021-11-23 18:54:42 +01:00
moklick
296289710f
refactor(store): reset on unmount
2021-11-23 18:37:12 +01:00
moklick
8a095df192
refactor(nodes): only observe node when not hidden
2021-11-23 17:58:53 +01:00
Mahdi Esbati
83362c187c
implement smooth transitions for useZoomPanHelper using d3
2021-11-21 13:24:03 +03:30
Christopher Möller
85ad535940
Merge branch 'refactor/nested-relative' into feat/interaction-classnames
2021-11-18 18:03:54 +01:00
Christopher Möller
9d159c1e87
chore(types): enforce defaultProps inside react flow component
2021-11-18 18:01:20 +01:00
moklick
7ffad7770b
refactor(subgraphs): calculate z for child nodes
2021-11-18 17:57:45 +01:00
Christopher Möller
004dcc6528
feat(selection): disable pane movement when selection is dragged
2021-11-18 16:53:41 +01:00
Christopher Möller
2243b0a1f6
Merge branch 'refactor/nested-relative' into feat/interaction-classnames
2021-11-18 16:30:11 +01:00
Christopher Möller
e1f864f270
feat(flow): add properties for configuring no-interaction classes
2021-11-18 16:29:06 +01:00
moklick
fe9c1f02dc
refactor(nodes-edges): rename isHidden to hidden
2021-11-18 13:06:14 +01:00
moklick
e6a4034747
Merge branch 'refactor/nested-relative' of github.com:wbkd/react-flow into refactor/nested-relative
2021-11-18 13:01:32 +01:00
moklick
0974aa5732
refactor(nodes): only use node internals
2021-11-18 13:01:11 +01:00
Christopher Möller
c29decade5
feat(stacking): disable auto layering, instead configure via zIndex prop
2021-11-10 18:06:28 +01:00
moklick
f0e79c634a
refactor(nodes-z): groups start with z=2
2021-11-09 16:32:02 +01:00
moklick
8a2ac1e31e
refactor(types): cleanup
2021-11-09 14:52:39 +01:00
moklick
a79e953ab3
refactor(boolean-props): omit is prefix
2021-11-09 12:35:21 +01:00
moklick
050bb3130f
refactor(z-level): implement new stacking logic
2021-11-09 12:11:47 +01:00
moklick
df25cb32f0
refactor(nodes): stacking order
2021-11-08 20:55:11 +01:00
moklick
b0bfefeef4
chore(example): add debug node
2021-11-08 17:55:02 +01:00
Christopher Möller
1425a4363b
fix(nested): add nested nodes example, always show nodes on top while dragging or selected
2021-11-05 17:42:18 +01:00
moklick
fdf2571402
feat(nodes): add extent option
2021-11-04 21:43:47 +01:00
moklick
996b1b51f5
refactor(store): rename nodeLookup to nodeInternals
2021-11-04 18:13:21 +01:00