2024-11-05 00:18:16 +01:00
|
|
|
<script lang="ts">
|
2024-12-17 04:05:15 +01:00
|
|
|
import { Store, UIEventSource } from "../../Logic/UIEventSource.js"
|
2024-11-05 00:18:16 +01:00
|
|
|
import type { ProvidedImage } from "../../Logic/ImageProviders/ImageProvider"
|
|
|
|
import type { SpecialVisualizationState } from "../SpecialVisualization"
|
|
|
|
import DeletableImage from "./DeletableImage.svelte"
|
|
|
|
|
|
|
|
export let images: Store<ProvidedImage[]>
|
|
|
|
export let state: SpecialVisualizationState
|
2024-12-17 04:05:15 +01:00
|
|
|
export let tags: UIEventSource<Record<string, string>>
|
2024-11-05 00:18:16 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<div class="flex w-full space-x-2 overflow-x-auto" style="scroll-snap-type: x proximity">
|
|
|
|
{#each $images as image (image.url)}
|
2024-11-07 11:19:15 +01:00
|
|
|
<DeletableImage {image} {state} {tags} />
|
2024-11-05 00:18:16 +01:00
|
|
|
{/each}
|
|
|
|
</div>
|