Merge pull request #5594 from xyflow/enhance/connection-snapping
Enhance/connection snapping
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
}
|
||||
return null;
|
||||
});
|
||||
|
||||
$inspect(connection.current.pointer);
|
||||
</script>
|
||||
|
||||
{#if connection.current.inProgress}
|
||||
|
||||
Reference in New Issue
Block a user