From 0e94cc707ba3d5c3f4effa2c9cbdac1a01318f6d Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sat, 15 Jul 2023 19:28:59 +0200 Subject: [PATCH] Chore: auto-formatting --- Logic/Osm/OsmObject.ts | 10 +++--- UI/InputElement/Helpers/DirectionInput.svelte | 5 ++- UI/InputElement/Helpers/LocationInput.svelte | 2 +- UI/Map/MaplibreMap.svelte | 6 ++-- UI/NotFound.svelte | 18 +++++++---- UI/ThemeViewGUI.svelte | 32 +++++++++---------- package-lock.json | 16 +++++----- 7 files changed, 49 insertions(+), 40 deletions(-) diff --git a/Logic/Osm/OsmObject.ts b/Logic/Osm/OsmObject.ts index 1531b7adb..44b809190 100644 --- a/Logic/Osm/OsmObject.ts +++ b/Logic/Osm/OsmObject.ts @@ -1,8 +1,8 @@ -import { Utils } from "../../Utils"; -import polygon_features from "../../assets/polygon-features.json"; -import { OsmFeature, OsmId, OsmTags, WayId } from "../../Models/OsmFeature"; -import OsmToGeoJson from "osmtogeojson"; -import { Feature, LineString, Polygon } from "geojson"; +import { Utils } from "../../Utils" +import polygon_features from "../../assets/polygon-features.json" +import { OsmFeature, OsmId, OsmTags, WayId } from "../../Models/OsmFeature" +import OsmToGeoJson from "osmtogeojson" +import { Feature, LineString, Polygon } from "geojson" export abstract class OsmObject { private static defaultBackend = "https://www.openstreetmap.org/" diff --git a/UI/InputElement/Helpers/DirectionInput.svelte b/UI/InputElement/Helpers/DirectionInput.svelte index 6158bf7e1..c598bb911 100644 --- a/UI/InputElement/Helpers/DirectionInput.svelte +++ b/UI/InputElement/Helpers/DirectionInput.svelte @@ -56,7 +56,10 @@ on:mouseup={() => { isDown = false }} - on:touchmove={(e) =>{ onPosChange(e.touches[0].clientX, e.touches[0].clientY); e.preventDefault() }} + on:touchmove={(e) => { + onPosChange(e.touches[0].clientX, e.touches[0].clientY) + e.preventDefault() + }} on:touchstart={(e) => onPosChange(e.touches[0].clientX, e.touches[0].clientY)} >
diff --git a/UI/InputElement/Helpers/LocationInput.svelte b/UI/InputElement/Helpers/LocationInput.svelte index f94e819eb..eb0a2089c 100644 --- a/UI/InputElement/Helpers/LocationInput.svelte +++ b/UI/InputElement/Helpers/LocationInput.svelte @@ -83,7 +83,7 @@
- +
export let attribution = false - export let center: Readable<{ lng: number ,lat : number }> = writable({lng: 0, lat: 0}) + export let center: Readable<{ lng: number; lat: number }> = writable({ lng: 0, lat: 0 }) onMount(() => { $map.on("load", function () { diff --git a/UI/NotFound.svelte b/UI/NotFound.svelte index 34c6ab212..d7e0534cf 100644 --- a/UI/NotFound.svelte +++ b/UI/NotFound.svelte @@ -1,14 +1,20 @@ +
- - {window.location = "index.html"}}> + + { + window.location = "index.html" + }} + >
- +
diff --git a/UI/ThemeViewGUI.svelte b/UI/ThemeViewGUI.svelte index 5d011828b..a74e57c7f 100644 --- a/UI/ThemeViewGUI.svelte +++ b/UI/ThemeViewGUI.svelte @@ -1,21 +1,21 @@