feat(svelte): selection box
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<script lang="ts">
|
||||
import { useStore } from '$lib/store';
|
||||
import Selection from '$lib/components/Selection/index.svelte';
|
||||
|
||||
const { selectionRectStore, selectionRectModeStore } = useStore();
|
||||
</script>
|
||||
|
||||
<Selection
|
||||
isVisible={!!($selectionRectStore && $selectionRectModeStore === 'user')}
|
||||
width={$selectionRectStore?.width}
|
||||
height={$selectionRectStore?.height}
|
||||
x={$selectionRectStore?.x}
|
||||
y={$selectionRectStore?.y}
|
||||
/>
|
||||
Reference in New Issue
Block a user