Commit Graph
154 Commits
Author SHA1 Message Date
Peter KogoandGitHub 01f01b95c2 Merge pull request #4782 from xyflow/fix/evaluateAbsolutePosition
fixed evaluateAbsolutePosition for nested nodes
2024-11-08 11:23:54 +01:00
peterkogo ae7a3478aa Fix node dragging while zooming on a flow that does not occupy whole browser window. 2024-11-07 12:42:17 +01:00
peterkogo 323e1b35c5 fixed evaluateAbsolutePosition for nested nodes 2024-11-04 10:41:52 +01:00
peterkogo f1118df317 update absolute positions before initial fitView 2024-09-19 11:40:19 +02:00
Moritz KlackandGitHub cd0f1b58c3 Merge pull request #4572 from xyflow/fix-extent
fix node extent
2024-09-05 16:39:23 +02:00
moklick f5423bb7f4 chore(getNodesBounds): adjust warning 2024-09-05 14:47:42 +02:00
peterkogo f82cfe6c27 clamp global nodeExtent correctly 2024-09-05 12:28:55 +02:00
moklick 122f722742 chore(store): cleanup 2024-09-04 17:07:00 +02:00
moklick 091d6bac68 refactor(getNodesBounds): use system/getNodesBounds for hook 2024-09-04 12:51:43 +02:00
moklick c906192ab1 chore(getNodesBounds): only show warning in dev 2024-09-03 17:22:33 +02:00
moklick aa248af495 chore(system/extends): cleanup 2024-09-02 17:35:44 +02:00
Moritz KlackandGitHub 3bca54345c Merge branch 'main' into nodesbounds 2024-08-29 00:09:57 +02:00
peterkogo c5988af784 fix type 2024-08-26 16:02:04 +02:00
peterkogo b4682f0b78 fixed undefined option values 2024-08-26 09:54:38 +02:00
peterkogo e5fac45371 fixed node extent flashing 2024-08-22 16:07:37 +02:00
peterkogo 9097102386 fixed node extent = parent in subflows 2024-08-22 15:20:56 +02:00
peterkogo ea8b9e0050 clamp position on adoptUserNode 2024-08-22 11:00:16 +02:00
peterkogo 04774e5011 added nodeExtent to Svelte Flow and React Flow Provider 2024-08-22 10:34:52 +02:00
peterkogo 535744efa1 typo 2024-08-20 12:46:00 +02:00
peterkogo 4a30f3a0fd fixed node extent calculation and simplified calculateNodePosition 2024-08-20 12:42:57 +02:00
peterkogo d9563505d8 fix node extent 2024-08-19 17:44:36 +02:00
peterkogo 78d6b3d537 fix(onlyRenderVisible) render nodes with fixed width & height intially 2024-08-12 16:04:43 +02:00
peterkogo 6174b23cd9 deprecated getNodesBounds from system 2024-07-30 12:40:35 +02:00
Moritz KlackandGitHub 3f152e79ae Merge pull request #4467 from xyflow/chore/parent-warning
Chore/parent warning
2024-07-18 13:39:09 +02:00
moklick 423976b3c3 chore(subflow): adjust warning 2024-07-18 13:37:40 +02:00
moklick 02e55153e4 chore(subflows): log warning instead of throwing an error #4455 2024-07-18 13:35:45 +02:00
moklick 496d28bda4 fix(nodes): re-init if node has no measured attr #4437 2024-07-18 10:57:24 +02:00
moklick e5b8236a60 refactor(panzoom): return promises for viewport helpers 2024-07-08 15:34:41 +02:00
moklick 2503d32a88 feat(viewport-helpers): return promises 2024-07-08 13:18:07 +02:00
moklick 62ba38cea9 chore(autoPanSpeed): cleanup 2024-07-04 18:03:22 +02:00
peterkogo 3f259e9662 variable autoPanSpeed 2024-07-04 16:33:45 +02:00
moklick 5c44dd9c31 Merge branch 'next' into enhance-connection-more 2024-06-27 17:14:17 +02:00
moklick aa0e131162 refactor(react): init store with user nodeOrigin 2024-06-27 17:01:01 +02:00
moklick 609f7ed792 refactor(positions): remove unused node origins 2024-06-27 15:03:35 +02:00
peterkogo 1a51428bd4 turns out default values for object parameters don't work as expected 2024-06-26 17:24:36 +02:00
moklick 08750d354f chore(utils): remove logs 2024-06-26 15:45:05 +02:00
moklick f968ff42ca chore(react): node origin cleanup 2024-06-26 15:26:22 +02:00
peterkogo 5493f045ff streamlined connections 2024-06-26 15:03:12 +02:00
moklick e22c1b9391 chore(node-resizer): update 2024-06-25 12:13:34 +02:00
moklick 1a25a7da48 fix(store): calc handle pos 2024-06-24 14:38:45 +02:00
Moritz KlackandGitHub 67e29b6c25 Merge branch 'next' into absolute-origin 2024-06-24 12:57:24 +02:00
57b62f8d46 determine correct handle positions in for connections (#4384)
* determine correct handle positions in for connections

* refactor(handle-utils): cleanup

* refactor(handle-utils): cleanup

---------

Co-authored-by: moklick <info@moritzklack.com>
2024-06-20 10:28:50 +02:00
Moritz KlackandGitHub 75acd24cee Rename updateEdge to reconnectEdge (#4373)
* refactor(edges): rename update to reconnect

* refactor(react): rename edge update to reconnect

* chore(examples): repair broken reconnect example

* chore(react): changelog
2024-06-19 16:57:30 +02:00
moklick c9d0f13328 fix(handles): calc offset correctly 2024-06-10 11:47:18 +02:00
moklick 2272c7f0e8 refactor(system): reduce getBoundingClientRect calls 2024-06-06 15:10:55 +02:00
Luis CarlosandGitHub abeb4086d3 fix: Correct parent node lookup in evaluateAbsolutePosition
### Summary

This PR fixes a bug in the `evaluateAbsolutePosition` function where the incorrect parent node was being retrieved from the `nodeLookup` in each iteration of the while loop.

### Changes

- Modified the line `const parent = nodeLookup.get(parentId);` to `const parent = nodeLookup.get(nextParentId);`.

### Reason

The original implementation used `parentId` to look up the parent node, which did not change within the loop. This resulted in the same parent node being used for each iteration, leading to incorrect calculations of the absolute position. By using `nextParentId`, we ensure that the correct parent node is retrieved and used in each iteration.
2024-06-05 09:29:48 -01:00
peterkogo e81194d58a Include origin directly in positionAbsolute of node 2024-05-22 15:38:08 +02:00
moklick ccadb043c3 refactor(system): mutate internal node instead of creating a new one 2024-05-08 22:20:13 +02:00
moklick 7501eace79 fix(react): default node updates closes #4202 2024-04-29 13:35:58 +02:00
moklick 7e8bcd8825 refactor(react): add setAttributes for dimension changes 2024-04-22 14:51:23 +02:00