Merge pull request #5594 from xyflow/enhance/connection-snapping

Enhance/connection snapping
This commit is contained in:
Moritz Klack
2025-10-30 21:19:38 +01:00
committed by GitHub
7 changed files with 21 additions and 20 deletions

View File

@@ -1,6 +1,7 @@
import { ConnectionLineComponentProps } from '@xyflow/react';
function ConnectionLine({ fromX, fromY, toX, toY }: ConnectionLineComponentProps) {
function ConnectionLine({ fromX, fromY, toX, toY, pointer }: ConnectionLineComponentProps) {
console.log('pointer', pointer);
return (
<>
<path

View File

@@ -19,6 +19,8 @@
}
return null;
});
$inspect(connection.current.pointer);
</script>
{#if connection.current.inProgress}