Skip to content

Commit

Permalink
Fixed case error for BlackbodyConstants, see #33
Browse files Browse the repository at this point in the history
  • Loading branch information
arnabp committed Mar 12, 2019
1 parent c3d4f3c commit 35ab91c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions js/blackbody-spectrum/view/GraphDrawingNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ define( function( require ) {
'use strict';

// modules
var blackbodyConstants = require( 'BLACKBODY_SPECTRUM/blackbodyConstants' );
var BlackbodyConstants = require( 'BLACKBODY_SPECTRUM/BlackbodyConstants' );
var blackbodySpectrum = require( 'BLACKBODY_SPECTRUM/blackbodySpectrum' );
var ColorConstants = require( 'SUN/ColorConstants' );
var Dimension2 = require( 'DOT/Dimension2' );
Expand Down Expand Up @@ -97,14 +97,14 @@ define( function( require ) {
var verticalZoomButtons = new Node( { children: [ self.verticalZoomOutButton, self.verticalZoomInButton ] } );

// Node for that displays the rainbow for the visible portion of the electromagnetic spectrum
var infraredPosition = this.axes.wavelengthToViewX( blackbodyConstants.visibleWavelength );
var ultravioletPosition = this.axes.wavelengthToViewX( blackbodyConstants.ultravioletWavelength );
var infraredPosition = this.axes.wavelengthToViewX( BlackbodyConstants.visibleWavelength );
var ultravioletPosition = this.axes.wavelengthToViewX( BlackbodyConstants.ultravioletWavelength );
var spectrumWidth = infraredPosition - ultravioletPosition;
// REVIEW: Needs visibility annotation
this.wavelengthSpectrumNode = new WavelengthSpectrumNode( {
size: new Dimension2( spectrumWidth, this.axes.verticalAxisLength ),
minWavelength: blackbodyConstants.ultravioletWavelength,
maxWavelength: blackbodyConstants.visibleWavelength,
minWavelength: BlackbodyConstants.ultravioletWavelength,
maxWavelength: BlackbodyConstants.visibleWavelength,
opacity: 0.9
} );

Expand Down Expand Up @@ -234,8 +234,8 @@ define( function( require ) {
* @private
*/
updateVisibleSpectrumNode: function() {
var infraredPosition = this.axes.wavelengthToViewX( blackbodyConstants.visibleWavelength );
var ultravioletPosition = this.axes.wavelengthToViewX( blackbodyConstants.ultravioletWavelength );
var infraredPosition = this.axes.wavelengthToViewX( BlackbodyConstants.visibleWavelength );
var ultravioletPosition = this.axes.wavelengthToViewX( BlackbodyConstants.ultravioletWavelength );
var spectrumWidth = infraredPosition - ultravioletPosition;
this.wavelengthSpectrumNode.left = ultravioletPosition;
this.wavelengthSpectrumNode.scale( new Vector2( spectrumWidth / this.wavelengthSpectrumNode.width, 1 ) );
Expand Down

0 comments on commit 35ab91c

Please sign in to comment.