moklick
9d1cfb24ce
chore(changelog): update
2024-06-05 13:09:12 +02:00
Moritz Klack
2236138b8a
Merge pull request #4339 from lcsfort/patch-1
...
fix: Correct parent node lookup in evaluateAbsolutePosition
2024-06-05 13:02:49 +02:00
moklick
48f07d5935
chore(packages): bump
2024-06-05 12:58:44 +02:00
moklick
a66bc2c2cc
chore(system): cleanup d3 type usage
2024-06-05 12:57:33 +02:00
Luis Carlos
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
Moritz Klack
875e6433bb
fix(svelte): use user viewport store for init viewport closes #4335 ( #4338 )
...
* fix(svelte): use user viewport store for init viewport closes #4335
* refactor(svelte): viewport init
* chore(svelte): changelog
2024-06-05 11:32:04 +02:00
peterkogo
a22154b9ae
fixed some type mismatches with default values
2024-06-04 14:46:53 +02:00
moklick
68f7d6c9a3
chore(svelte): cleanup internal nodes and edges
2024-06-04 14:40:38 +02:00
moklick
88af9ab210
chore(svelte): changelog
2024-06-04 14:28:25 +02:00
moklick
8000711d8c
Merge branch 'next' of github.com:xyflow/xyflow into next
2024-06-04 14:28:19 +02:00
Moritz Klack
fb416ca5ad
Merge pull request #4330 from xyflow/svelte-fix-panel
...
removed pointer events from panel when user selection is active
2024-06-04 14:27:55 +02:00
moklick
2f45754457
chore(svelte): changelog
2024-06-04 14:27:17 +02:00
moklick
7b215993b8
Merge branch 'next' of github.com:xyflow/xyflow into next
2024-06-04 14:26:47 +02:00
Moritz Klack
0f44b8d4d2
Merge pull request #4331 from xyflow/svelte-fix-selection
...
Svelte: Fix deselection of edges
2024-06-04 14:26:29 +02:00
moklick
0434d6c1d8
chore(svelte): changelog
2024-06-04 13:55:06 +02:00
peterkogo
18a41ecb90
removed console log
2024-06-04 11:53:05 +02:00
peterkogo
4d3ede32eb
added edgemouseenter and edgemouseleave events
2024-06-04 09:29:51 +02:00
peterkogo
717935d051
simpler
2024-06-04 09:17:25 +02:00
peterkogo
7ebabacbe4
changed from store.edges.update to store.edges.set
2024-06-04 09:01:34 +02:00
peterkogo
9e1757b887
removed pointer events from panel when user selection is active
2024-06-04 08:46:12 +02:00
moklick
3cc14e8ee5
refactor(nodes): add parentId to NodeProps closes #4061
2024-06-03 17:23:46 +02:00
Moritz Klack
5769ad2ab5
Merge pull request #4323 from xyflow/expose-node-edge-props
...
exposed selectable, deletable, draggable to custom nodes & edges
2024-06-03 17:07:58 +02:00
Moritz Klack
dd960dab02
Merge pull request #4278 from ogroppo/type-updateNodeData-arg
...
[React] Fix: type `updateNodeData` dataUpdate arg
2024-06-03 17:00:30 +02:00
moklick
e52eb67e6c
chore(react): update changelog
2024-06-03 16:14:39 +02:00
moklick
c94d684b31
fix(nodes): update internals after node resizer updates
2024-06-03 16:13:08 +02:00
moklick
e82c72a912
fix(react): re-observe nodes when hidden is toggled
2024-06-03 16:12:36 +02:00
peterkogo
403aa8f5da
exposed selectable, deletable, draggable to custom nodes & edges
2024-06-03 10:48:05 +02:00
Orlando
0f2e13cb87
should be Partial
2024-05-14 22:43:00 +01:00
Orlando
0834c4b550
[React] Fix: type updateNodeData dataUpdate arg
2024-05-14 20:33:13 +01:00
moklick
02250e972d
chore(packages): bump
2024-05-08 22:36:26 +02:00
moklick
ccadb043c3
refactor(system): mutate internal node instead of creating a new one
2024-05-08 22:20:13 +02:00
moklick
a364a93082
feat(react): add warning when styles not loaded #4047
2024-05-07 18:25:04 +02:00
moklick
2b0d75ddaa
refactor(types): only export HandleProps but not HandleComponentProps
2024-05-07 16:22:26 +02:00
moklick
5093213116
chore(react): udpate return type of fixedForwardRef function
2024-05-07 14:47:47 +02:00
moklick
b9ec783b6b
fix(react): dont show nodeTypes warning if not necessary #3923
2024-05-07 13:19:54 +02:00
moklick
fb30b81cb4
fix(svelte): node toolbar for subflows
2024-05-06 15:50:41 +02:00
moklick
9cf09651a6
fix(svelte): export InternalNode type
2024-05-06 14:00:33 +02:00
moklick
181a94d125
fix(svelte): export useInternalNode hook
2024-05-06 12:32:00 +02:00
moklick
1860dff666
fix(minimap): sub flow node positions
2024-05-06 11:47:57 +02:00
moklick
de86c64128
fix(svelte): selection for sub flows
2024-05-06 11:47:45 +02:00
moklick
d562818f4c
fix(styles): add node-resizer to base style
2024-05-06 11:20:10 +02:00
moklick
5f3dbbbade
chore(versions): bump
2024-05-02 18:05:38 +02:00
moklick
ad3a803abb
fix(react): dont allow invalid selection rect
2024-05-02 18:02:38 +02:00
moklick
ec2592966e
chore(changelogs): update
2024-05-02 17:49:15 +02:00
moklick
c0de3ad941
chore(libs): export Align type
2024-05-02 17:49:06 +02:00
moklick
ce9ce1db0b
fix(system): return user nodes in node drag/click handlers
2024-05-02 17:40:48 +02:00
moklick
9984dd39a2
refactor(svelte): add quotes to edge marker urls
2024-05-02 17:29:31 +02:00
moklick
534db656b4
feat(svelte): add getInternalNode and useInternalNode
2024-05-02 16:39:57 +02:00
moklick
f2f2c3cc2e
feat(svelte): add fitViewOptions for Controls closes #4201
2024-05-02 15:36:42 +02:00
moklick
3b940ac5ae
fix(svelte): use correct updateNodeInternals API
2024-05-02 15:01:37 +02:00