feat(onConnectEnd): pass connectionState

This commit is contained in:
moklick
2024-08-14 11:17:34 +02:00
parent 6eb6a8e525
commit aae62e9ec6
4 changed files with 20 additions and 6 deletions
@@ -29,7 +29,7 @@
// export let isConnectableEnd: $$Props['isConnectableEnd'] = undefined;
let isConnectableProp: $$Props['isConnectable'] = undefined;
export { isConnectableProp as isConnectable }
export { isConnectableProp as isConnectable };
let className: $$Props['class'] = undefined;
export { className as class };
@@ -101,8 +101,8 @@
handleType: startParams.handleType
});
},
onConnectEnd: (event) => {
$onConnectEndAction?.(event);
onConnectEnd: (event, connectionState) => {
$onConnectEndAction?.(event, connectionState);
},
getTransform: () => [$viewport.x, $viewport.y, $viewport.zoom],
getFromHandle: () => $connection.fromHandle