Skip to content

Commit

Permalink
fix: return transform from useZoom
Browse files Browse the repository at this point in the history
  • Loading branch information
bcakmakoglu committed Oct 20, 2021
1 parent f8728f0 commit 9b2f4b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/composables/useZoom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ const useZoom = (zoomPane: Ref<HTMLDivElement>, options: UseZoomOptions) => {
applyZoomFilter()
})

return {
transform,
}
return transform
}

export default useZoom
2 changes: 1 addition & 1 deletion src/container/Flow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ setElements(elements.value)
</script>
<template>
<div class="revue-flow">
<ZoomPane v-bind="props">
<ZoomPane>
<template #default="{ transform, dimensions }">
<SelectionPane
:delete-key-code="props.deleteKeyCode"
Expand Down

0 comments on commit 9b2f4b7

Please sign in to comment.