From 7dba12477482d37af1a5e01548c01eba67724cf0 Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Mon, 31 Aug 2015 00:06:12 +0300 Subject: [PATCH] #63 DeviationsNode renamed into DeviationsPanel --- js/curve-fitting/view/CurveFittingView.js | 10 +++++----- js/curve-fitting/view/DeviationsNode.js | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/js/curve-fitting/view/CurveFittingView.js b/js/curve-fitting/view/CurveFittingView.js index 71712d7..fab87ee 100644 --- a/js/curve-fitting/view/CurveFittingView.js +++ b/js/curve-fitting/view/CurveFittingView.js @@ -12,7 +12,7 @@ define( function( require ) { var Bounds2 = require( 'DOT/Bounds2' ); var BucketAndGraphAreaNode = require( 'CURVE_FITTING/curve-fitting/view/BucketAndGraphAreaNode' ); var ControlMenuNode = require( 'CURVE_FITTING/curve-fitting/view/ControlMenuNode' ); - var DeviationsNode = require( 'CURVE_FITTING/curve-fitting/view/DeviationsNode' ); + var DeviationsPanel = require( 'CURVE_FITTING/curve-fitting/view/DeviationsPanel' ); var inherit = require( 'PHET_CORE/inherit' ); var ResetAllButton = require( 'SCENERY_PHET/buttons/ResetAllButton' ); var ScreenView = require( 'JOIST/ScreenView' ); @@ -30,10 +30,10 @@ define( function( require ) { ScreenView.call( this, { layoutBounds: SIM_BOUNDS } ); // add deviations node - var deviationsNode = new DeviationsNode( curveFittingModel.isDeviationPanelExpandedProperty, curveFittingModel.curve.chiSquareProperty, curveFittingModel.curve.chiFillProperty, curveFittingModel.curve.rSquareProperty ); - deviationsNode.centerX = deviationsNode.width / 2 + PADDING_LEFT_RIGHT; - deviationsNode.centerY = deviationsNode.height / 2 + PADDING_TOP_BOTTOM; - this.addChild( deviationsNode ); + var deviationsPanel = new DeviationsPanel( curveFittingModel.isDeviationPanelExpandedProperty, curveFittingModel.curve.chiSquareProperty, curveFittingModel.curve.chiFillProperty, curveFittingModel.curve.rSquareProperty ); + deviationsPanel.centerX = deviationsPanel.width / 2 + PADDING_LEFT_RIGHT; + deviationsPanel.centerY = deviationsPanel.height / 2 + PADDING_TOP_BOTTOM; + this.addChild( deviationsPanel ); // add control menu node var controlMenuNode = new ControlMenuNode( curveFittingModel ); diff --git a/js/curve-fitting/view/DeviationsNode.js b/js/curve-fitting/view/DeviationsNode.js index e87b987..f85f59b 100644 --- a/js/curve-fitting/view/DeviationsNode.js +++ b/js/curve-fitting/view/DeviationsNode.js @@ -1,7 +1,7 @@ // Copyright 2002-2014, University of Colorado Boulder /** - * Deviations node in 'Curve Fitting' simulation. + * Deviations panel in 'Curve Fitting' simulation. * Contains X^2 barometer, r^2 barometer and menu dialog. * * @author Andrey Zelenkov (Mlearner) @@ -69,7 +69,7 @@ define( function( require ) { * @param {Object} [options] for graph node * @constructor */ - function DeviationsNode( isDeviationPanelExpandedProperty, chiSquareProperty, chiFillProperty, rSquareProperty, options ) { + function DeviationsPanel( isDeviationPanelExpandedProperty, chiSquareProperty, chiFillProperty, rSquareProperty, options ) { // create expand button var expandCollapseButton = new ExpandCollapseButton( isDeviationPanelExpandedProperty, { @@ -184,5 +184,5 @@ define( function( require ) { Panel.call( this, content, PANEL_OPTIONS ); } - return inherit( Panel, DeviationsNode ); + return inherit( Panel, DeviationsPanel ); } ); \ No newline at end of file