chore(core): cleanup (#1003)

This commit is contained in:
Braks
2023-07-10 19:20:26 +02:00
parent 61f8a68b84
commit 55de815a39
3 changed files with 16 additions and 9 deletions
@@ -1,7 +1,7 @@
<script lang="ts" setup>
import { useVueFlow } from '../../composables'
import type { SelectionRect } from '~/types'
const { userSelectionRect } = useVueFlow()
defineProps<{ userSelectionRect: SelectionRect }>()
</script>
<script lang="ts">
@@ -15,9 +15,9 @@ export default {
<div
class="vue-flow__selection vue-flow__container"
:style="{
width: `${userSelectionRect?.width}px`,
height: `${userSelectionRect?.height}px`,
transform: `translate(${userSelectionRect?.x}px, ${userSelectionRect?.y}px)`,
width: `${userSelectionRect.width}px`,
height: `${userSelectionRect.height}px`,
transform: `translate(${userSelectionRect.x}px, ${userSelectionRect.y}px)`,
}"
/>
</template>