prettier config + format all, closes #175

This commit is contained in:
vcoppe
2025-02-02 11:17:22 +01:00
parent 01cfd448f0
commit 0b457f9a1e
157 changed files with 17194 additions and 29365 deletions

View File

@@ -1,5 +1,5 @@
import { dbUtils } from "$lib/db";
import { MapPopup } from "$lib/components/MapPopup";
import { dbUtils } from '$lib/db';
import { MapPopup } from '$lib/components/MapPopup';
export let waypointPopup: MapPopup | null = null;
export let trackpointPopup: MapPopup | null = null;
@@ -11,14 +11,14 @@ export function createPopups(map: mapboxgl.Map) {
focusAfterOpen: false,
maxWidth: undefined,
offset: {
'top': [0, 0],
top: [0, 0],
'top-left': [0, 0],
'top-right': [0, 0],
'bottom': [0, -30],
bottom: [0, -30],
'bottom-left': [0, -30],
'bottom-right': [0, -30],
'left': [10, -15],
'right': [-10, -15],
left: [10, -15],
right: [-10, -15],
},
});
trackpointPopup = new MapPopup(map, {
@@ -41,4 +41,4 @@ export function removePopups() {
export function deleteWaypoint(fileId: string, waypointIndex: number) {
dbUtils.applyToFile(fileId, (file) => file.replaceWaypoints(waypointIndex, waypointIndex, []));
}
}