-
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.
add initial support for list that describes observation window, see #374
- Loading branch information
Showing
2 changed files
with
34 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
21 changes: 21 additions & 0 deletions
21
js/layer-model/view/LayerModelObservationWindowPDOMNode.ts
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,21 @@ | ||
// Copyright 2022-2023, University of Colorado Boulder | ||
|
||
import ObservationWindowPDOMNode from '../../common/view/ObservationWindowPDOMNode.js'; | ||
import greenhouseEffect from '../../greenhouseEffect.js'; | ||
import LayerModelModel from '../model/LayerModelModel.js'; | ||
|
||
/** | ||
* Responsible for PDOM content related to the observation window used in the waves screen. | ||
* | ||
* @author John Blanco (PhET Interactive Simulations) | ||
*/ | ||
|
||
class LayerModelObservationWindowPDOMNode extends ObservationWindowPDOMNode { | ||
|
||
public constructor( model: LayerModelModel ) { | ||
super( model.sunEnergySource.isShiningProperty ); | ||
} | ||
} | ||
|
||
greenhouseEffect.register( 'LayerModelObservationWindowPDOMNode', LayerModelObservationWindowPDOMNode ); | ||
export default LayerModelObservationWindowPDOMNode; |