add onselectiondrag events
This commit is contained in:
@@ -60,7 +60,8 @@ import type {
|
||||
EdgeLayouted,
|
||||
InternalNode,
|
||||
OnBeforeReconnect,
|
||||
OnSelectionChange
|
||||
OnSelectionChange,
|
||||
OnSelectionDrag
|
||||
} from '$lib/types';
|
||||
|
||||
import type { StoreSignals } from './types';
|
||||
@@ -359,6 +360,10 @@ export function getInitialStore<NodeType extends Node = Node, EdgeType extends E
|
||||
onclickconnectend?: OnConnectEnd = $derived(signals.props.onclickconnectend);
|
||||
clickConnectStartHandle: Pick<Handle, 'id' | 'nodeId' | 'type'> | null = $state(null);
|
||||
|
||||
onselectiondrag?: OnSelectionDrag<NodeType> = $derived(signals.props.onselectiondrag);
|
||||
onselectiondragstart?: OnSelectionDrag<NodeType> = $derived(signals.props.onselectiondragstart);
|
||||
onselectiondragstop?: OnSelectionDrag<NodeType> = $derived(signals.props.onselectiondragstop);
|
||||
|
||||
resolveFitView = async () => {
|
||||
if (!this.panZoom) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user