From 35ab91cae7cddff710b27601ca1752a100512090 Mon Sep 17 00:00:00 2001 From: arnabp Date: Tue, 12 Mar 2019 15:26:32 -0600 Subject: [PATCH] Fixed case error for BlackbodyConstants, see #33 --- js/blackbody-spectrum/view/GraphDrawingNode.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/js/blackbody-spectrum/view/GraphDrawingNode.js b/js/blackbody-spectrum/view/GraphDrawingNode.js index 95fcba9..a6a5391 100644 --- a/js/blackbody-spectrum/view/GraphDrawingNode.js +++ b/js/blackbody-spectrum/view/GraphDrawingNode.js @@ -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' ); @@ -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 } ); @@ -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 ) );