15 lines
391 B
Svelte
15 lines
391 B
Svelte
<script lang="ts">
|
|
import { useStore } from '$lib/store';
|
|
import Selection from '$lib/components/Selection/index.svelte';
|
|
|
|
const { selectionRect, selectionRectMode } = useStore();
|
|
</script>
|
|
|
|
<Selection
|
|
isVisible={!!($selectionRect && $selectionRectMode === 'user')}
|
|
width={$selectionRect?.width}
|
|
height={$selectionRect?.height}
|
|
x={$selectionRect?.x}
|
|
y={$selectionRect?.y}
|
|
/>
|