File size: 485 Bytes
bc20498 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
<script>export let x = 0;
export let y = 0;
export let width = 0;
export let height = 0;
export let isVisible = true;
</script>
{#if isVisible}
<div
class="svelte-flow__selection"
style:width={typeof width === 'string' ? width : `${width}px`}
style:height={typeof height === 'string' ? height : `${height}px`}
style:transform={`translate(${x}px, ${y}px)`}
/>
{/if}
<style>
.svelte-flow__selection {
position: absolute;
top: 0;
left: 0;
}
</style>
|