Commit Graph
4658 Commits
Author SHA1 Message Date
peterkogo 42f4f59425 tiny updates to internal library examples 2024-06-17 11:57:15 +02:00
moklick e6b21d372e chore(lint): cleanup minor issues 2024-06-11 17:19:58 +02:00
John RobbandGitHub d2fdea4ab2 Clearer issue template for bug reports (#4357)
* copy changes to issue template, better question order

* minor formatting tweaks

* minor formatting tweaks again

* fix bug with bug emoji
2024-06-11 16:32:17 +02:00
Moritz KlackandGitHub 59c5d47130 Chore/turbo v2 (#4359)
* chore(turbo): use v2

* chore(turbo): format

* chore(tests): use list reporter
2024-06-11 16:05:36 +02:00
Moritz KlackandGitHub bab4eecc06 Merge pull request #4358 from xyflow/next
React Flow 12.0.0-next.21 & Svelte Flow 0.1.6
2024-06-10 18:09:16 +02:00
moklick 7895a5982d chore(packages): bump 2024-06-10 18:08:35 +02:00
moklick c9d0f13328 fix(handles): calc offset correctly 2024-06-10 11:47:18 +02:00
Moritz KlackandGitHub 463e0eeb39 Merge pull request #4348 from xyflow/next
React Flow 12.0.0-next.20 and Svelte Flow 0.1.5
2024-06-06 17:34:14 +02:00
moklick 5d6ac6e316 chore(packages): bump 2024-06-06 17:33:55 +02:00
moklick 3a8ead838b chore(pnpm): update lock file 2024-06-06 17:31:15 +02:00
Moritz KlackandGitHub 3bba0b41e0 feat(useReactFlow): add updateEdge and updateEdgeData (#4351)
* feat(useReactFlow): add updateEdge and updateEdgeData

* chore(examples): add updateEdge call
2024-06-06 17:26:10 +02:00
Moritz KlackandGitHub 1ac7e5d487 Merge pull request #4353 from xyflow/fix/react-ts-dist
fix(react): add compiler options outDir
2024-06-06 17:25:57 +02:00
moklick 71980a85e6 fix(react): add compiler options outDir 2024-06-06 17:25:25 +02:00
Moritz KlackandGitHub 2394a0e931 Merge pull request #4352 from xyflow/refactor/system-get-handle-bounds
refactor(system): reduce getBoundingClientRect calls
2024-06-06 15:52:14 +02:00
moklick 2272c7f0e8 refactor(system): reduce getBoundingClientRect calls 2024-06-06 15:10:55 +02:00
Moritz KlackandGitHub fe864160a3 Merge pull request #4347 from xyflow/fix-pane-style
fix(svelte): use empty string instead of undefined in style shorthand
2024-06-06 12:58:13 +02:00
Moritz KlackandGitHub 9bc721c1b7 Merge pull request #4344 from xyflow/fix/dynamic-edge-labels
refactor(react): enable dynamic edge label updates closes #4340
2024-06-06 12:57:45 +02:00
Moritz KlackandGitHub 7e50247b42 Merge pull request #4342 from xyflow/fix-node-drag-zoom
abort drag when multiple touches are detected
2024-06-06 12:57:16 +02:00
Moritz KlackandGitHub 2e5c2eb710 Merge pull request #4343 from xyflow/fix-edge-type-path-options
added straight edge to path built-in-types
2024-06-06 12:56:47 +02:00
Moritz KlackandGitHub 09a6f11aa1 Merge pull request #4341 from xyflow/fix-zoom-on-pinch-mobile
prevent zooming on mobile if zoomOnPinch is false
2024-06-06 12:55:43 +02:00
peterkogo ff784cb44c use empty string instead of undefined 2024-06-06 12:52:59 +02:00
moklick 982ffb5e59 refactor(edge-text): enable dynamic edge label updates closes #4340 2024-06-05 17:49:05 +02:00
moklick a1656832bf chore(changesets): ignore examples 2024-06-05 17:41:50 +02:00
peterkogo 82dddb2579 added straight edge to path built-in-types 2024-06-05 17:21:41 +02:00
peterkogo fd02d2f245 made comment more explicit 2024-06-05 16:35:08 +02:00
peterkogo 7547531306 abort drag when multiple touches are detected 2024-06-05 16:27:33 +02:00
moklick 83867733e9 feat(repo): add changeset cli 2024-06-05 15:58:08 +02:00
peterkogo 99d0bc2cad prevent zooming on mobile if zoomOnPinch is false 2024-06-05 14:19:16 +02:00
moklick 8236dc6181 Merge branch 'next' 2024-06-05 13:09:24 +02:00
moklick 9d1cfb24ce chore(changelog): update 2024-06-05 13:09:12 +02:00
Moritz KlackandGitHub 9f329703b8 Merge pull request #4328 from xyflow/next
React Flow 12.0.0-next.19 and Svelte Flow 0.1.4
2024-06-05 13:08:46 +02:00
Moritz KlackandGitHub 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
moklick d0e43b8fb6 chore(packages): update deps 2024-06-05 12:57:19 +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
Moritz KlackandGitHub 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 KlackandGitHub 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 KlackandGitHub 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
Moritz KlackandGitHub 716406b116 Merge pull request #4332 from xyflow/svelte-edge-mouse-events
added edgemouseenter and edgemouseleave events
2024-06-04 13:53:09 +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