From caaae887f924c32e61dba06abd51c7f490f86a3b Mon Sep 17 00:00:00 2001 From: Tomas Horsky Date: Wed, 17 Jun 2026 11:21:20 +0900 Subject: [PATCH] fix: animation bug fix --- README.md | 1 + package-lock.json | 4 ++-- src/lib/world-map/JourneyView.svelte | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 26a1480..fc50326 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,7 @@ npm run dev ## Known Issues - **Globe animation** — The D3 globe rotation animation during journey replay can be a little bit laggy. +- **Switching between animations** - after switching from map to globe animation, the old animation might be still visible for a moment. Restatarting the animation fixes the issue. --- diff --git a/package-lock.json b/package-lock.json index 94437e6..f55e374 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "map-journal", - "version": "0.0.0", + "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "map-journal", - "version": "0.0.0", + "version": "1.0.0", "dependencies": { "d3": "^7.9.0", "firebase": "^12.14.0", diff --git a/src/lib/world-map/JourneyView.svelte b/src/lib/world-map/JourneyView.svelte index 3faedab..ff3e15c 100644 --- a/src/lib/world-map/JourneyView.svelte +++ b/src/lib/world-map/JourneyView.svelte @@ -5,11 +5,13 @@ import worldData from 'world-atlas/countries-50m.json'; import { get } from 'svelte/store'; import { journals } from '../stores/entriesStore.svelte.js'; + import { getUserProfile } from '../auth/userStore.svelte.js'; + import { nameToId } from '../shared/countries.js'; import airplaneImg from '../../assets/airplane-animation.png'; let { onclose, onprogress, mode = 'map', onmodechange } = $props(); - const HOME_CODE = '203'; + const HOME_CODE = $derived(nameToId[getUserProfile()?.homeCountry] ?? null); const PLANE_SIZE = 26;