feat(svelte) add autoPanOnConnect autoPanOnNodeDrag props

This commit is contained in:
Peter
2023-09-21 12:59:56 +02:00
parent 1e2ba65fce
commit 6b7e72b06c
6 changed files with 15 additions and 3 deletions
@@ -59,6 +59,8 @@ export type UpdatableStoreProps = {
elementsSelectable?: UnwrapWritable<SvelteFlowStore['elementsSelectable']>;
onlyRenderVisibleElements?: UnwrapWritable<SvelteFlowStore['onlyRenderVisibleElements']>;
isValidConnection?: UnwrapWritable<SvelteFlowStore['isValidConnection']>;
autoPanOnConnect?: UnwrapWritable<SvelteFlowStore['autoPanOnConnect']>;
autoPanOnNodeDrag?: UnwrapWritable<SvelteFlowStore['autoPanOnNodeDrag']>;
};
export function updateStoreByKeys(store: SvelteFlowStore, keys: UpdatableStoreProps) {