-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add QuestionBar, see phetsims/center-and-variability#6
- Loading branch information
0 parents
commit be25c58
Showing
1 changed file
with
32 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright 2022, University of Colorado Boulder | ||
|
||
/** | ||
* TODO Describe this class and its responsibilities. | ||
* | ||
* @author Chris Klusendorf (PhET Interactive Simulations) | ||
* @author Sam Reid (PhET Interactive Simulations) | ||
*/ | ||
|
||
import optionize from '../../../../phet-core/js/optionize.js'; | ||
import centerAndSpread from '../../centerAndSpread.js'; | ||
import StatusBar from '../../../../vegas/js/StatusBar.js'; | ||
import Bounds2 from '../../../../dot/js/Bounds2.js'; | ||
import Property from '../../../../axon/js/Property.js'; | ||
|
||
type QuestionBarSelfOptions = {}; | ||
type StatusBarOptions = {}; // TODO: Add Options in StatusBar | ||
export type QuestionBarOptions = QuestionBarSelfOptions & Omit<StatusBarOptions, 'floatToTop'> | ||
|
||
class QuestionBar extends StatusBar { | ||
|
||
constructor( layoutBounds: Bounds2, boundsProperty: Property<Bounds2>, providedOptions: QuestionBarOptions ) { | ||
|
||
const options = optionize<QuestionBarOptions>( { | ||
floatToTop: true | ||
}, providedOptions ); | ||
super( layoutBounds, boundsProperty, options ); | ||
} | ||
} | ||
|
||
centerAndSpread.register( 'QuestionBar', QuestionBar ); | ||
export default QuestionBar; |