Skip to content

Commit

Permalink
Add QuestionBar, see phetsims/center-and-variability#6
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Feb 2, 2022
0 parents commit be25c58
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions js/common/view/QuestionBar.ts
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;

0 comments on commit be25c58

Please sign in to comment.