From e9268bfc49daddb65aa3a23322e230383c217d3f Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 18 Dec 2023 01:58:58 +0100 Subject: [PATCH] Move Orientation into sensors directory, attempt to fix 'NaN' in slope input --- src/{Logic/Web => Sensors}/Orientation.ts | 2 +- .../BigComponents/GeolocationControl.svelte | 1 - src/UI/Debug/OrientationDebugPanel.svelte | 2 +- src/UI/InputElement/Helpers/SlopeInput.svelte | 2 +- .../InputElement/Validators/SlopeValidator.ts | 27 ++++++++++++++++++- src/UI/ThemeViewGUI.svelte | 2 +- 6 files changed, 30 insertions(+), 6 deletions(-) rename src/{Logic/Web => Sensors}/Orientation.ts (98%) diff --git a/src/Logic/Web/Orientation.ts b/src/Sensors/Orientation.ts similarity index 98% rename from src/Logic/Web/Orientation.ts rename to src/Sensors/Orientation.ts index 9177f93a2..149fdfeb8 100644 --- a/src/Logic/Web/Orientation.ts +++ b/src/Sensors/Orientation.ts @@ -1,4 +1,4 @@ -import { Stores, UIEventSource } from "../UIEventSource" +import { UIEventSource, Stores } from "../Logic/UIEventSource" /** * Exports the device orientation as UIEventSources and detects 'shakes' diff --git a/src/UI/BigComponents/GeolocationControl.svelte b/src/UI/BigComponents/GeolocationControl.svelte index f323f263b..8e4f27a13 100644 --- a/src/UI/BigComponents/GeolocationControl.svelte +++ b/src/UI/BigComponents/GeolocationControl.svelte @@ -1,5 +1,4 @@