-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
20 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
// Copyright 2018-2020, University of Colorado Boulder | ||
|
||
// ts-nocheck | ||
|
||
/** | ||
* enum for the different sound level settings | ||
* This enum is used to describe whether a sound is part of the "basic" sounds or the "enhanced" sounds. | ||
* | ||
* @author John Blanco (PhET Interactive Simulations) | ||
*/ | ||
|
||
import Enumeration from '../../phet-core/js/Enumeration.js'; | ||
import EnumerationValue from '../../phet-core/js/EnumerationValue.js'; | ||
import tambo from './tambo.js'; | ||
|
||
const SoundLevelEnum = { | ||
BASIC: 'BASIC', | ||
ENHANCED: 'ENHANCED' | ||
}; | ||
class SoundScope extends EnumerationValue { | ||
static BASIC = new SoundScope(); | ||
static ENHANCED = new SoundScope(); | ||
|
||
// in development mode, catch any attempted changes to the enum | ||
if ( assert ) { Object.freeze( SoundLevelEnum ); } | ||
// Gets a list of keys, values and mapping between them. For use by EnumerationProperty and PhET-iO. | ||
static enumeration = new Enumeration( SoundScope, { | ||
phetioDocumentation: 'describes whether a sound is considered part of the basic or the enhanced sounds for the sim' | ||
} ); | ||
} | ||
|
||
tambo.register( 'SoundLevelEnum', SoundLevelEnum ); | ||
export default SoundLevelEnum; | ||
tambo.register( 'SoundScope', SoundScope ); | ||
export default SoundScope; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters