-
Notifications
You must be signed in to change notification settings - Fork 4
/
ExploreScreenView.ts
40 lines (33 loc) · 1.48 KB
/
ExploreScreenView.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright 2018-2023, University of Colorado Boulder
/**
* View for the 'Explore' screen.
*
* @author Chris Malley (PixelZoom, Inc.)
*/
import Tandem from '../../../../tandem/js/Tandem.js';
import GQScreenView from '../../common/view/GQScreenView.js';
import graphingQuadratics from '../../graphingQuadratics.js';
import ExploreModel from '../model/ExploreModel.js';
import ExploreEquationAccordionBox from './ExploreEquationAccordionBox.js';
import ExploreGraphNode from './ExploreGraphNode.js';
import ExploreViewProperties from './ExploreViewProperties.js';
import QuadraticTermsAccordionBox from './QuadraticTermsAccordionBox.js';
export default class ExploreScreenView extends GQScreenView {
public constructor( model: ExploreModel, tandem: Tandem ) {
const viewProperties = new ExploreViewProperties( tandem.createTandem( 'viewProperties' ) );
super( model,
viewProperties,
new ExploreGraphNode( model, viewProperties, tandem.createTandem( 'graphNode' ) ),
new ExploreEquationAccordionBox( model, {
expandedProperty: viewProperties.equationAccordionBoxExpandedProperty,
tandem: tandem.createTandem( 'equationAccordionBox' )
} ),
new QuadraticTermsAccordionBox( viewProperties, {
expandedProperty: viewProperties.quadraticTermsAccordionBoxExpandedProperty,
tandem: tandem.createTandem( 'quadraticTermsAccordionBox' )
} ),
tandem
);
}
}
graphingQuadratics.register( 'ExploreScreenView', ExploreScreenView );