diff options
| author | mat <github@matdoes.dev> | 2022-05-16 15:36:06 +0000 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-05-16 15:36:06 +0000 |
| commit | 8ba9c7090c88c04d43ca727b7ed012cf5a6b58c8 (patch) | |
| tree | 191998803aefe0311091ae78ffcc20511683c7a6 /src/routes | |
| parent | cd9748e59f1dd9ef31afb22195b8d5a1346ec5c3 (diff) | |
| download | skyblock-stats-8ba9c7090c88c04d43ca727b7ed012cf5a6b58c8.tar.gz skyblock-stats-8ba9c7090c88c04d43ca727b7ed012cf5a6b58c8.tar.bz2 skyblock-stats-8ba9c7090c88c04d43ca727b7ed012cf5a6b58c8.zip | |
start adding really basic tooltip
Diffstat (limited to 'src/routes')
| -rw-r--r-- | src/routes/auctionprices.svelte | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/routes/auctionprices.svelte b/src/routes/auctionprices.svelte index f464f7b..4e7bfde 100644 --- a/src/routes/auctionprices.svelte +++ b/src/routes/auctionprices.svelte @@ -16,13 +16,23 @@ <script lang="ts"> import Header from '$lib/Header.svelte' import Head from '$lib/Head.svelte' - import { millisecondsToTime, TIER_COLORS, colorCodes, cleanId, toTitleCase } from '$lib/utils' + import { + millisecondsToTime, + TIER_COLORS, + colorCodes, + cleanId, + toTitleCase, + type PreviewedAuctionData, + } from '$lib/utils' import type { ItemAuctionsSchema, ItemListData, ItemListItem } from '$lib/APITypes' import Item from '$lib/minecraft/Item.svelte' import AuctionPriceScatterplot from '$lib/AuctionPriceScatterplot.svelte' + import AuctionPreviewTooltip from '$lib/AuctionPreviewTooltip.svelte' export let data: ItemAuctionsSchema[] + let currentlyPreviewedAuction: PreviewedAuctionData | null + let query: string = '' let pageHeight = 0 @@ -44,6 +54,8 @@ <svelte:window on:scroll={checkScroll} /> +<AuctionPreviewTooltip preview={currentlyPreviewedAuction} /> + <main> <h1>SkyBlock Auction Prices</h1> <div class="filter-items-settings"> @@ -74,7 +86,7 @@ {/if} </div> <div class="item-scatterplot"> - <AuctionPriceScatterplot {item} /> + <AuctionPriceScatterplot {item} bind:currentlyPreviewedAuction /> </div> </div> {/each} |
