Commit Graph
78 Commits
Author SHA1 Message Date
Christopher Möller 2252ea11ae feat(nested-nodes): change data structure to flat array of nodes 2021-10-21 15:39:27 +02:00
Christopher Möller 64239fbb51 refactor(edgerenderer): cleanup edge utils 2021-10-21 14:33:34 +02:00
Christopher Möller b008c7b548 chore(graph-utils): rename elements to edges 2021-10-21 12:04:58 +02:00
Christopher Möller 9ad894d2df feat(nodes): add helper functions to iterate over child nodes 2021-10-21 11:53:44 +02:00
Christopher Möller 9350884836 fix(perf): improve flattenNodes 2021-10-20 18:06:41 +02:00
Christopher Möller 767fbd4377 feat(noderenderer): render child nodes 2021-10-20 16:57:44 +02:00
moklick a0b8aa6fcb Merge branch 'v10' into refactor/nodes-edges-state 2021-10-20 10:52:11 +02:00
moklick 1525af39cf refactor(elements): render only visible elements 2021-10-19 14:57:34 +02:00
moklick 410b12946d refactor(state): separate nodes and edges 2021-10-19 11:09:49 +02:00
Christopher Möller d3b1148bca feat(markers): implement more generic api for markerEnd and markerStart handling 2021-10-14 17:53:50 +02:00
moklick ee0d29029a refactor(state): replace redux with zustand 2021-10-13 12:54:01 +02:00
moklick 32ee964044 refactor(elements): split into nodes and edges 2021-10-09 11:33:10 +02:00
Moritz KlackandGitHub 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 KlackandGitHub 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
jasonpulandGitHub 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