Moritz Klack and GitHub
be3b451d1d
Refactor: add possibility to use different keys or combinations as a key code ( #1554 )
...
* feat(keys): support for combinations and multiple possibilites for one action
* refactor(globalKeyHandler): pass deps to useEffect
* refactor(examples): define key codes outside of the component
2021-10-05 15:27:07 +02:00
moklick
41db69e06c
fix(nodes): dont select nodes when selectable=false closes #1324
2021-07-20 17:59:04 +02:00
moklick
2eea1c34a1
refactor(handles): check if inside a shadow root
2021-03-29 13:46:41 +02:00
moklick
c63992e3ff
Revert "Merge pull request #1003 from TheUnderScorer/main"
...
This reverts commit 106f1f0b61 , reversing
changes made to 9206e65522 .
2021-03-29 13:26:31 +02:00
Przemysław Żydek
a7e0ace550
feat(components): Return if document is undefined
2021-03-22 11:36:10 +01:00
moklick
1745320101
feat(utils): export getTransformForBounds func
2021-03-01 14:02:42 +01:00
moklick
ba5286a105
refactor(elements): split edges and nodes
2021-02-11 18:45:05 +01:00
moklick
201a35dec2
Merge branch 'main' into refactor/redux
2021-02-11 17:52:54 +01:00
moklick
4d382eed57
refactor(store): clean up
2021-01-28 12:33:34 +01:00
moklick
1a9493e3fa
feat(props): add nodeExtent prop closes #854
2021-01-26 10:29:38 +01:00
moklick
e9a7ade236
refactor(store): use redux instead of easy-peasy
2021-01-19 13:58:24 +01:00
moklick
3a5ecfa666
Merge branch 'next' into feat/dragedge
2020-11-26 15:26:48 +01:00
moklick
d17562e1a1
refactor(drag-edge): only handle when update function is passed
2020-11-26 15:17:31 +01:00
moklick
e88dfdb650
refactor(nodes): use one resize observer for all nodes #723
2020-11-26 14:25:39 +01:00
moklick
b0500bc208
refactor(edges): visible even if source and target are not visible #677
2020-11-15 14:15:35 +01:00
moklick
c8d945f39b
refactor(store): remove unused viewportBox
2020-11-14 17:04:29 +01:00
moklick
7cc2306975
feat(reactflowInstance): add toObject function closes #603
2020-11-09 18:17:36 +01:00
moklick
2db5a7bce2
refactor(getElements): use internal node position #603
2020-11-09 17:48:51 +01:00
Christopher Möller
cf38388f14
refactor(zoom): move zoom methods into own hook, detatch from store
2020-11-09 17:23:59 +01:00
moklick
2f40a83b47
refactor(drag-edge): cleanup drag edge handlers
2020-11-05 17:28:21 +01:00
Moritz Klack and GitHub
9851281709
Merge branch 'main' into drag-edge
2020-11-03 19:59:18 +01:00
moklick
ddd3baa5f7
refactor(handle-handling): cleanup
2020-10-29 12:36:10 +01:00
Naden
a3e9cbf9dc
Cleanup of jasonpul's connection-validation branch
2020-10-27 14:51:54 +11:00
moklick
13a3fd46b1
fix(selection): handle overlapping area rounding issues closes #610
2020-10-21 22:13:09 +02:00
Long Nguyen
57528851ff
Fix confict after merge branch master
2020-10-13 11:58:28 +09:00
Long Nguyen
bd63a0131a
Feature: Draggable edge
2020-10-12 21:34:35 +09:00
jasonpul and GitHub
abf00187bb
Update graph.ts
...
added check to verify handle exists in node
2020-10-11 17:51:08 -04:00
moklick
d8ae6bd9a2
refactor(remove-nodes): check if target has contenteditable attr closes #560
2020-10-07 17:40:35 +02:00
jasonpul
d9ba18d49c
broke out handleId by itself rather than joined with nodeID, modded necessary functions to give handles not assigned IDs an empty string for backwards compadibility. Also modded handles so that only target-source and source-target connections are allowed, and no repeat connections are allowed.
2020-10-01 15:47:37 -04:00
moklick
5a504df0d6
fix(userselection): dont unset selection on startup #515
2020-09-18 12:56:19 +02:00
moklick
8a0a928e17
refactor(nodes): always render nodes that are dragged closes #477
2020-09-11 17:12:09 +02:00
moklick
7f64ffe173
feat(utils): add getIncomers function closes #461
2020-09-10 23:54:53 +02:00
moklick
0cc9526630
refactor(wrapNode): clean up event handlers closes #482
2020-09-10 17:56:36 +02:00
moklick
de9a846fea
fix(onLoad): use project and getElements in combination with RFPovider closes #285
2020-08-20 08:53:51 +02:00
moklick
16707eaa99
fix(onlyRenderVisibleNodes): only render nodes that are inside the viewport
2020-07-29 10:40:15 +02:00
moklick
b3391860da
feat(edges): add data and classname props, unify node/edge handling closes #357
2020-07-27 12:40:39 +02:00
moklick
7f1b18bebb
fix(addEdge): handle multiple source/target id
2020-07-21 17:08:09 +02:00
moklick
69c41b9b91
test(graph-utils): add tests
2020-07-21 13:49:37 +02:00
moklick
c927929b2c
refactor(utils): set return type of getOutgoers to node[]
2020-07-21 10:47:39 +02:00
moklick
3c99d7303d
fix(zoom): set internal d3 zoom property programmatically closes #347
2020-07-20 10:40:17 +02:00
moklick
32f6101d37
feat(nodes): add enter, move, leave and context handler #301
2020-07-13 16:04:49 +02:00
moklick
5a3adab3a0
refactor(internals): rename __rg to __rf
2020-06-05 00:17:28 +02:00
moklick
5bfe72f225
refactor(graph-utils): store handling
2020-06-05 00:15:45 +02:00
moklick
407e34b1cb
refactor(controls): dont import store but use actions
2020-06-04 23:46:37 +02:00
moklick
3f3a79b5f6
feat(rfInstance): add getElements function #274
2020-06-02 16:06:08 +02:00
moklick
6530e4041f
fix(projectFunc): don't scale grid size #261
2020-05-31 12:12:02 +02:00
moklick
c0390eec79
feat(helper): export project function closes #237
2020-05-19 18:33:29 +02:00
moklick
1ace58db4b
refactor(elements): cast source and target of edge to string
2020-05-19 12:28:04 +02:00
moklick
edefe860cf
refactor(helper): use type predicates for isEdge and isNode
2020-05-16 12:41:33 +02:00
moklick
fcb0a3e9f1
refactor(onConnect): param can be edge or connection
2020-05-16 01:13:28 +02:00