From 9cbd391f363a74e20471f2a61f577de2fb4e85bb Mon Sep 17 00:00:00 2001 From: Jesse Date: Wed, 24 Mar 2021 17:55:08 -0400 Subject: [PATCH] SelfVoicingUtterance -> VoicingUtterance, see https://github.com/phetsims/tasks/issues/1083 --- js/view/CustomGestureIntroDialog.js | 8 ++++---- js/view/GestureControlledSlider.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/js/view/CustomGestureIntroDialog.js b/js/view/CustomGestureIntroDialog.js index d6f3c4f..1d321f7 100644 --- a/js/view/CustomGestureIntroDialog.js +++ b/js/view/CustomGestureIntroDialog.js @@ -27,7 +27,7 @@ import VBox from '../../../scenery/js/nodes/VBox.js'; import TextPushButton from '../../../sun/js/buttons/TextPushButton.js'; import Dialog from '../../../sun/js/Dialog.js'; import HSlider from '../../../sun/js/HSlider.js'; -import SelfVoicingUtterance from '../../../utterance-queue/js/SelfVoicingUtterance.js'; +import VoicingUtterance from '../../../utterance-queue/js/VoicingUtterance.js'; // constants const contentFont = new PhetFont( 16 ); @@ -68,7 +68,7 @@ class CustomGestureIntroDialog extends Dialog { } ); const speakDescriptionParagraph = () => { - const utterance = new SelfVoicingUtterance( { + const utterance = new VoicingUtterance( { alert: dialogDescriptionString, cancelOther: false } ); @@ -148,7 +148,7 @@ class CustomGestureIntroDialog extends Dialog { } } ); - const valueChangeUtterance = new SelfVoicingUtterance(); + const valueChangeUtterance = new VoicingUtterance(); exampleSliderProperty.lazyLink( value => { valueChangeUtterance.alert = `${value}`; phet.joist.sim.voicingUtteranceQueue.addToBack( valueChangeUtterance ); @@ -160,7 +160,7 @@ class CustomGestureIntroDialog extends Dialog { positionOnValueChange = event.pointer.point; }; exampleSlider.swipeEnd = () => { - const releasedAlert = new SelfVoicingUtterance( { + const releasedAlert = new VoicingUtterance( { cancelOther: false, alert: releasedString } ); diff --git a/js/view/GestureControlledSlider.js b/js/view/GestureControlledSlider.js index a6ecf43..15d6f5d 100644 --- a/js/view/GestureControlledSlider.js +++ b/js/view/GestureControlledSlider.js @@ -13,7 +13,7 @@ import levelSpeakerModel from '../../../scenery-phet/js/accessibility/speaker/le import SelfVoicingInputListener from '../../../scenery-phet/js/accessibility/speaker/SelfVoicingInputListener.js'; import sceneryPhetStrings from '../../../scenery-phet/js/sceneryPhetStrings.js'; import Slider from '../../../sun/js/Slider.js'; -import SelfVoicingUtterance from '../../../utterance-queue/js/SelfVoicingUtterance.js'; +import VoicingUtterance from '../../../utterance-queue/js/VoicingUtterance.js'; import tappi from '../tappi.js'; import ValueGestureControl from './ValueGestureControl.js'; @@ -53,7 +53,7 @@ class GestureControlledSlider extends Slider { // the released utterance shouldn't cancel other utterances describing the changing // value of the slider - const releasedUtterance = new SelfVoicingUtterance( { + const releasedUtterance = new VoicingUtterance( { alert: releasedString, cancelOther: false } );