Files
immich/web/src/lib/managers/geolocation.manager.svelte.ts
T
2026-03-26 13:22:14 -04:00

16 lines
283 B
TypeScript

import type { LatLng } from '$lib/types';
class GeolocationManager {
#lastPoint = $state<LatLng>();
get lastPoint() {
return this.#lastPoint;
}
onSelected(point: LatLng) {
this.#lastPoint = point;
}
}
export const geolocationManager = new GeolocationManager();