From 953a6276be21c600adf8b44ce2f2e06ee00dc6b2 Mon Sep 17 00:00:00 2001 From: pixelzoom Date: Mon, 9 Dec 2024 14:58:45 -0700 Subject: [PATCH] reuse preferences controls, https://github.com/phetsims/number-pairs/issues/22 --- js/common/view/AutoHearControl.ts | 2 +- js/common/view/SecondLanguageControl.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/common/view/AutoHearControl.ts b/js/common/view/AutoHearControl.ts index 3179419..4d716a6 100644 --- a/js/common/view/AutoHearControl.ts +++ b/js/common/view/AutoHearControl.ts @@ -36,7 +36,7 @@ export default class AutoHearControl extends Node { speechSynthesisAnnouncer: NumberSuiteCommonSpeechSynthesisAnnouncer, labelStringProperty: TReadOnlyProperty, descriptionStringProperty: TReadOnlyProperty, - visible: boolean + visible = true ) { super( { diff --git a/js/common/view/SecondLanguageControl.ts b/js/common/view/SecondLanguageControl.ts index 39c9f3d..6bde44d 100644 --- a/js/common/view/SecondLanguageControl.ts +++ b/js/common/view/SecondLanguageControl.ts @@ -28,7 +28,7 @@ import Property from '../../../../axon/js/Property.js'; type SelfOptions = EmptySelfOptions; type SecondLanguageControlOptions = SelfOptions & StrictOmit; -type SecondLanguageProperties = { +export type SecondLanguageProperties = { showSecondLocaleProperty: Property; isPrimaryLocaleProperty: Property; secondLocaleProperty: LocaleProperty;