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 Klack and GitHub
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 Klack and GitHub
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 Carlos and GitHub
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
moklick
b6f458fc5a
chore(utils): cleanup
2024-04-18 09:57:30 +02:00
moklick
6c30686127
refactor(utils): cleanup getPositionWithOrigin
2024-04-18 09:17:51 +02:00
moklick
12c081a62e
chore(useReactFlow): cleanup
2024-04-17 13:50:52 +02:00
moklick
6bab47fcb7
refactor(node-selection): cleanup
2024-04-17 12:34:31 +02:00
moklick
f242494b29
Merge branch 'next' into refactor/xy-drag-use-map
2024-04-16 18:00:32 +02:00
moklick
2102c17108
refactor(xydrag): use map for drag items
2024-04-16 17:09:51 +02:00
peterkogo
27987006f3
renamed newPosition to nextPosition, removed comment
2024-04-16 16:58:56 +02:00
peterkogo
aad6de5359
simplified handleExpandParent, removed isParent, improved some functions
2024-04-16 16:54:38 +02:00
peterkogo
714d30b63f
fixed bug with expanding parent, made adjustments to evaluateNodePosition
2024-04-16 13:19:44 +02:00
peterkogo
81bdaf6b68
prevent falsely adjusting currently dragged item on parentExpand
2024-04-15 17:31:48 +02:00
peterkogo
87086e9997
added correct expandParent offset of children
2024-04-15 17:23:14 +02:00
peterkogo
ccf6578824
added parentLookup
2024-04-15 17:03:03 +02:00
peterkogo
c5f394e1f7
use evaluateNodePosition for parentExpand
2024-04-15 15:58:25 +02:00
peterkogo
f0677408ac
Merge branch 'next' into internal-fix-resizer
2024-04-15 13:23:47 +02:00
moklick
8a56311e52
fix(intersection-helpers): use correct positions closes #4138
2024-04-15 13:18:57 +02:00
peterkogo
979fe7d565
broken parent expand on resize but almost there
2024-04-11 18:34:17 +02:00
moklick
4fa3a87241
refactor(updates): only trigger dim updates when dim changed
2024-04-11 12:31:14 +02:00
Moritz Klack and GitHub
d50377e58e
Merge pull request #4129 from xyflow/refactor/svelte-internal
...
Svelte: Refactor internals
2024-04-10 17:03:08 +02:00
moklick
8491883ee1
fix(react): update node dimensions when handle bounds undefined
2024-04-10 14:56:25 +02:00
peterkogo
835dec25ba
resolved some requested changes
2024-04-10 14:47:49 +02:00
peterkogo
2d1d4717d9
fixed errors but still WIP
2024-04-10 09:30:00 +02:00
moklick
3e59ab94f0
refactor(nodes): rename parentNode to parentId
2024-04-09 13:26:54 +02:00
moklick
ea18e46a1a
refactor(nodes): rename computed to measured, add helpers
2024-04-03 14:54:24 +02:00
moklick
f45f50671d
refactor(react/internal-nodes): cleanup
2024-04-03 12:54:55 +02:00
moklick
6753c19188
fix(parentExpand): prevent jumping
2024-04-03 10:16:47 +02:00
moklick
e409939234
refactor(node/internals): cleanup
2024-04-02 20:15:38 +02:00