diff --git a/src/components/Handle/Handle.vue b/src/components/Handle/Handle.vue index 34097967..440f5f4e 100644 --- a/src/components/Handle/Handle.vue +++ b/src/components/Handle/Handle.vue @@ -16,6 +16,7 @@ const props = withDefaults(defineProps(), { type: 'source', position: Position.Top, connectable: true, + isValidConnection: () => true, }) const store = useStore() diff --git a/src/container/ZoomPane/ZoomPane.vue b/src/container/ZoomPane/ZoomPane.vue index a244fc80..7536e243 100644 --- a/src/container/ZoomPane/ZoomPane.vue +++ b/src/container/ZoomPane/ZoomPane.vue @@ -50,7 +50,7 @@ watch(height, (val) => (store.dimensions.height = val)) watch(transform, (val) => (store.transform = [val.x, val.y, val.zoom])) onMounted(() => { - const { zoomIn, zoomOut, zoomTo, transform: setTransform, fitView } = useZoomPanHelper(store) + const { zoomIn, zoomOut, zoomTo, transform: setTransform, fitView } = useZoomPanHelper() watchOnce( () => width.value && height.value,