chore(core): cleanup (#1003)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user