refactor(svelte): cleanup components

This commit is contained in:
moklick
2023-03-01 11:48:08 +01:00
parent 00515e1f9b
commit 9391b36869
61 changed files with 600 additions and 196 deletions
@@ -0,0 +1,14 @@
<script lang="ts">
import { useStore } from '$lib/store';
import { Selection } from '$lib/components/Selection';
const { selectionRect, selectionRectMode } = useStore();
</script>
<Selection
isVisible={!!($selectionRect && $selectionRectMode === 'user')}
width={$selectionRect?.width}
height={$selectionRect?.height}
x={$selectionRect?.x}
y={$selectionRect?.y}
/>