diff --git a/js/neuron/view/NeuronScreenView.js b/js/neuron/view/NeuronScreenView.js index bd17d53..ba0cd41 100644 --- a/js/neuron/view/NeuronScreenView.js +++ b/js/neuron/view/NeuronScreenView.js @@ -253,7 +253,6 @@ function NeuronScreenView( neuronClockModelAdapter ) { yMargin: 6 }, speedRadioButtonGroupOptions: { - radioButtonOptions: { radius: 8 }, spacing: 8, touchAreaXDilation: 5 }, @@ -318,13 +317,6 @@ function NeuronScreenView( neuronClockModelAdapter ) { concentrationReadoutLayerNode.visible = concentrationVisible; } ); - // const simSpeedControlPanel = new SimSpeedControlPanel( neuronClockModelAdapter.speedProperty, { - // left: this.layoutBounds.minX + leftPadding, - // centerY: centerYForLowerControls, - // maxWidth: 250 // empirically determined - // } ); - // this.addChild( simSpeedControlPanel ); - const zoomControl = new ZoomControl( zoomProperty, MIN_ZOOM, MAX_ZOOM ); this.addChild( zoomControl ); zoomControl.top = clipAreaBounds.y; diff --git a/js/neuron/view/controlpanel/SimSpeedControlPanel.js b/js/neuron/view/controlpanel/SimSpeedControlPanel.js deleted file mode 100644 index 8740e15..0000000 --- a/js/neuron/view/controlpanel/SimSpeedControlPanel.js +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2014-2020, University of Colorado Boulder - -/** - * Control panel for choosing the sim speed - * - * @author John Blanco - * @author Sharfudeen Ashraf (for Ghent University) - */ - -import inherit from '../../../../../phet-core/js/inherit.js'; -import merge from '../../../../../phet-core/js/merge.js'; -import Text from '../../../../../scenery/js/nodes/Text.js'; -import Panel from '../../../../../sun/js/Panel.js'; -import VerticalAquaRadioButtonGroup from '../../../../../sun/js/VerticalAquaRadioButtonGroup.js'; -import neuronStrings from '../../../neuron-strings.js'; -import neuron from '../../../neuron.js'; -import NeuronConstants from '../../common/NeuronConstants.js'; - -// strings - labels for speed radio buttons -const fastForwardString = neuronStrings.fastForward; -const normalString = neuronStrings.normal; -const slowMotionString = neuronStrings.slowMotion; - -/** - * @param {Property.} speedProperty - * @param {Object} [options] - * @constructor - */ -function SimSpeedControlPanel( speedProperty, options ) { - - options = merge( { - fill: NeuronConstants.CONTROL_PANEL_BACKGROUND, - stroke: NeuronConstants.CONTROL_PANEL_STROKE, - xMargin: 8, - yMargin: 6 - }, options ); - - const radioButtonFont = NeuronConstants.CONTROL_PANEL_CONTROL_FONT; - const speedRadioButtonGroup = new VerticalAquaRadioButtonGroup( speedProperty, [ - { node: new Text( fastForwardString, { font: radioButtonFont } ), value: 2 }, - { node: new Text( normalString, { font: radioButtonFont } ), value: 1 }, - { node: new Text( slowMotionString, { font: radioButtonFont } ), value: 0.5 } - ], { - radioButtonOptions: { radius: 8 }, - spacing: 8, - touchAreaXDilation: 5 - } ); - - Panel.call( this, speedRadioButtonGroup, options ); -} - -neuron.register( 'SimSpeedControlPanel', SimSpeedControlPanel ); - -inherit( Panel, SimSpeedControlPanel ); -export default SimSpeedControlPanel; \ No newline at end of file