chore(svelte/handle): cleanup
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
# @xyflow/svelte
|
# @xyflow/svelte
|
||||||
|
|
||||||
|
## 0.0.39
|
||||||
|
|
||||||
|
## Patch changes
|
||||||
|
|
||||||
|
- add "connectionindicator" class for `Handle` component
|
||||||
|
|
||||||
## 0.0.38
|
## 0.0.38
|
||||||
|
|
||||||
## ⚠️ Breaking changes
|
## ⚠️ Breaking changes
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
export let isConnectable: $$Props['isConnectable'] = undefined;
|
export let isConnectable: $$Props['isConnectable'] = undefined;
|
||||||
export let onconnect: $$Props['onconnect'] = undefined;
|
export let onconnect: $$Props['onconnect'] = undefined;
|
||||||
export let ondisconnect: $$Props['ondisconnect'] = undefined;
|
export let ondisconnect: $$Props['ondisconnect'] = undefined;
|
||||||
|
// @todo implement connectablestart, connectableend
|
||||||
// export let isConnectableStart: $$Props['isConnectableStart'] = undefined;
|
// export let isConnectableStart: $$Props['isConnectableStart'] = undefined;
|
||||||
// export let isConnectableEnd: $$Props['isConnectableEnd'] = undefined;
|
// export let isConnectableEnd: $$Props['isConnectableEnd'] = undefined;
|
||||||
|
|
||||||
@@ -140,8 +141,6 @@
|
|||||||
: nodeId !== $connection.startHandle?.nodeId ||
|
: nodeId !== $connection.startHandle?.nodeId ||
|
||||||
handleId !== $connection.startHandle?.handleId;
|
handleId !== $connection.startHandle?.handleId;
|
||||||
$: valid = connectingTo && $connection.status === 'valid';
|
$: valid = connectingTo && $connection.status === 'valid';
|
||||||
|
|
||||||
// @todo implement connectablestart, connectableend
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
@@ -159,13 +158,11 @@ The Handle component is the part of a node that can be used to connect nodes.
|
|||||||
'nodrag',
|
'nodrag',
|
||||||
'nopan',
|
'nopan',
|
||||||
position,
|
position,
|
||||||
{
|
|
||||||
valid,
|
|
||||||
connectingto: connectingTo,
|
|
||||||
connectingfrom: connectingFrom
|
|
||||||
},
|
|
||||||
className
|
className
|
||||||
])}
|
])}
|
||||||
|
class:valid
|
||||||
|
class:connectingto={connectingTo}
|
||||||
|
class:connectingfrom={connectingFrom}
|
||||||
class:source={!isTarget}
|
class:source={!isTarget}
|
||||||
class:target={isTarget}
|
class:target={isTarget}
|
||||||
class:connectablestart={isConnectable}
|
class:connectablestart={isConnectable}
|
||||||
|
|||||||
Reference in New Issue
Block a user