From 50d434f356a09d3379694dcf48264903b706855b Mon Sep 17 00:00:00 2001 From: Mathis Mensing Date: Sat, 11 Feb 2023 18:46:40 +0100 Subject: [PATCH] feat(timelapse): add new park positions Adds support for mainsail-crew/moonraker-timelapse#96 by adding X_ONLY and Y_ONLY park position options Signed-off-by: Mathis Mensing --- .../CustomParkPositionSettings.vue | 98 ++++++++++--------- .../subsettings/ToolheadParkingSettings.vue | 4 +- src/locales/de.yaml | 2 + src/locales/en.yaml | 2 + src/store/timelapse/types.ts | 2 +- 5 files changed, 58 insertions(+), 50 deletions(-) diff --git a/src/components/settings/timelapse/subsettings/CustomParkPositionSettings.vue b/src/components/settings/timelapse/subsettings/CustomParkPositionSettings.vue index 10d0cd2ab9..d8696e7177 100644 --- a/src/components/settings/timelapse/subsettings/CustomParkPositionSettings.vue +++ b/src/components/settings/timelapse/subsettings/CustomParkPositionSettings.vue @@ -1,52 +1,56 @@ diff --git a/src/components/settings/timelapse/subsettings/ToolheadParkingSettings.vue b/src/components/settings/timelapse/subsettings/ToolheadParkingSettings.vue index b064158de0..85bfaf4c0c 100644 --- a/src/components/settings/timelapse/subsettings/ToolheadParkingSettings.vue +++ b/src/components/settings/timelapse/subsettings/ToolheadParkingSettings.vue @@ -78,7 +78,7 @@ /> - + ({ text: this.$tc(`app.timelapse.setting.parkpos.${value}`), value })) } diff --git a/src/locales/de.yaml b/src/locales/de.yaml index 56949ac132..b39a77bc92 100644 --- a/src/locales/de.yaml +++ b/src/locales/de.yaml @@ -699,6 +699,8 @@ app: center: Mitte back_left: Hinten links back_right: Hinten rechts + x_only: Nur X bewegen + y_only: Nur Y bewegen previewimage: Vorschaubild erzeugen saveframes: Einzelbilder speichern stream_delay_compensation: Verzögerungs-Kompensation diff --git a/src/locales/en.yaml b/src/locales/en.yaml index 900ec0ca33..df054891e8 100644 --- a/src/locales/en.yaml +++ b/src/locales/en.yaml @@ -727,6 +727,8 @@ app: center: Center back_left: Back Left back_right: Back Right + x_only: Move X only + y_only: Move Y only previewimage: Generate Thumbnail saveframes: Save Frames stream_delay_compensation: Delay Compensation diff --git a/src/store/timelapse/types.ts b/src/store/timelapse/types.ts index 27816be322..406a30241d 100644 --- a/src/store/timelapse/types.ts +++ b/src/store/timelapse/types.ts @@ -64,7 +64,7 @@ export interface TimelapseWritableSettings { } export type TimelapseMode = 'layermacro' | 'hyperlapse'; -export type ParkPosition = 'custom' | 'front_left' | 'front_right' | 'center' | 'back_left' | 'back_right'; +export type ParkPosition = 'custom' | 'front_left' | 'front_right' | 'center' | 'back_left' | 'back_right' | 'x_only' | 'y_only'; export interface RenderSettings { frameRate: number;