Skip to content

Commit

Permalink
SelfVoicingUtterance -> VoicingUtterance, see phetsims/tasks#1083
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Mar 24, 2021
1 parent d908d26 commit 1049096
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions js/john-travoltage/view/AppendageNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import Image from '../../../../scenery/js/nodes/Image.js';
import Node from '../../../../scenery/js/nodes/Node.js';
import Rectangle from '../../../../scenery/js/nodes/Rectangle.js';
import AccessibleSlider from '../../../../sun/js/accessibility/AccessibleSlider.js';
import SelfVoicingUtterance from '../../../../utterance-queue/js/SelfVoicingUtterance.js';
import VoicingUtterance from '../../../../utterance-queue/js/VoicingUtterance.js';
import johnTravoltage from '../../johnTravoltage.js';
import johnTravoltageStrings from '../../johnTravoltageStrings.js';
import Leg from '../model/Leg.js';
Expand Down Expand Up @@ -276,7 +276,7 @@ class AppendageNode extends Node {

// describe changes to the arm/leg as the angle changes (during a drag operation) - polite so that it doesn't
// cancel itself during rapid changes
const appendageUtterance = new SelfVoicingUtterance( {
const appendageUtterance = new VoicingUtterance( {
cancelSelf: false,
cancelOther: false,
alertStableDelay: 400
Expand Down Expand Up @@ -540,7 +540,7 @@ class AppendageNode extends Node {
this.model.isDraggingProperty.set( false );
this.previousSwipePosition = null;

const releasedUtterance = new SelfVoicingUtterance( {
const releasedUtterance = new VoicingUtterance( {
alert: 'Released',

// this utterance often follows electron information, don't interrupt that
Expand Down
4 changes: 2 additions & 2 deletions js/john-travoltage/view/ElectronLayerNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Range from '../../../../dot/js/Range.js';
import StringUtils from '../../../../phetcommon/js/util/StringUtils.js';
import levelSpeakerModel from '../../../../scenery-phet/js/accessibility/speaker/levelSpeakerModel.js';
import Node from '../../../../scenery/js/nodes/Node.js';
import SelfVoicingUtterance from '../../../../utterance-queue/js/SelfVoicingUtterance.js';
import VoicingUtterance from '../../../../utterance-queue/js/VoicingUtterance.js';
import Utterance from '../../../../utterance-queue/js/Utterance.js';
import johnTravoltage from '../../johnTravoltage.js';
import johnTravoltageStrings from '../../johnTravoltageStrings.js';
Expand Down Expand Up @@ -55,7 +55,7 @@ class ElectronLayerNode extends Node {
// many charges are usually added at once, wait until alerts stabilize before
// announcing the change in charge - this critical information is intended to be
// assertive
const chargeUtterance = new SelfVoicingUtterance( {
const chargeUtterance = new VoicingUtterance( {
alertStableDelay: 500,
alertMaximumDelay: 800
} );
Expand Down

0 comments on commit 1049096

Please sign in to comment.