From f008a0073134f0fcfd6699f98a8607a586b1a42a Mon Sep 17 00:00:00 2001 From: Pat Udomprasert Date: Sun, 21 Sep 2025 22:01:06 -0400 Subject: [PATCH 1/2] add prop to hide advanced time controls --- src/components/SpeedControl.vue | 3 ++- src/types.ts | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/SpeedControl.vue b/src/components/SpeedControl.vue index 8931c47f..87934bd8 100644 --- a/src/components/SpeedControl.vue +++ b/src/components/SpeedControl.vue @@ -94,7 +94,7 @@ > (), { rateDelta: 10, useInline: false, modelValue: false, + hideMoreControls: false, }); const minSpeed = 1; diff --git a/src/types.ts b/src/types.ts index cac41def..61cf3b3e 100644 --- a/src/types.ts +++ b/src/types.ts @@ -317,6 +317,8 @@ export interface SpeedControlProps { showStatus?: boolean; /** The factor by which to adjust the WWT speed when speeding up or down */ rateDelta?: number; + /** Whether or not to display the additional speed controls */ + hideMoreControls?: boolean; } /** An async function taking an input string and returning a collection of MapBox Features */ From c671b7b9ec28dea41d33c5f8f07310a53bd57740 Mon Sep 17 00:00:00 2001 From: Carifio24 Date: Tue, 23 Sep 2025 20:53:37 -0400 Subject: [PATCH 2/2] Add default value for hideMoreControls in Storybook story. --- src/stories/SpeedControl.stories.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stories/SpeedControl.stories.ts b/src/stories/SpeedControl.stories.ts index bd5f20d5..92edfa69 100644 --- a/src/stories/SpeedControl.stories.ts +++ b/src/stories/SpeedControl.stories.ts @@ -45,5 +45,6 @@ export const Primary: Story = { showStatus: false, rateDelta: 10, modelValue: false, + hideMoreControls: false, } };