diff --git a/js/common/view/PHMeterNodeAccordionBox.ts b/js/common/view/PHAccordionBox.ts similarity index 94% rename from js/common/view/PHMeterNodeAccordionBox.ts rename to js/common/view/PHAccordionBox.ts index ded01993..e689cd22 100644 --- a/js/common/view/PHMeterNodeAccordionBox.ts +++ b/js/common/view/PHAccordionBox.ts @@ -1,7 +1,7 @@ // Copyright 2014-2022, University of Colorado Boulder /** - * PHMeterNodeAccordionBox is the base class for the pH in the 'Micro' and 'My Solution' screens. + * PHAccordionBox is the base class for the pH in the 'Micro' and 'My Solution' screens. * - Origin is at top left. * - Can be expanded and collapsed. * - Has a probe that extends down into the solution. @@ -33,7 +33,7 @@ type SelfOptions = { export type PHMeterNodeAccordionBoxOptions = SelfOptions & PickRequired; -export default class PHMeterNodeAccordionBox extends AccordionBox { +export default class PHAccordionBox extends AccordionBox { protected static readonly CORNER_RADIUS = 8; @@ -54,7 +54,7 @@ export default class PHMeterNodeAccordionBox extends AccordionBox { // AccordionBoxOptions fill: PHScaleColors.PANEL_FILL, lineWidth: 2, - cornerRadius: PHMeterNodeAccordionBox.CORNER_RADIUS, + cornerRadius: PHAccordionBox.CORNER_RADIUS, contentYSpacing: 10, titleAlignX: 'left', titleXMargin: 15, @@ -141,4 +141,4 @@ class ProbeNode extends Node { } } -phScale.register( 'PHMeterNodeAccordionBox', PHMeterNodeAccordionBox ); \ No newline at end of file +phScale.register( 'PHAccordionBox', PHAccordionBox ); \ No newline at end of file diff --git a/js/micro/view/MicroPHAccordionBox.ts b/js/micro/view/MicroPHAccordionBox.ts index da0a3f0f..9d8d1035 100644 --- a/js/micro/view/MicroPHAccordionBox.ts +++ b/js/micro/view/MicroPHAccordionBox.ts @@ -6,7 +6,7 @@ * @author Chris Malley (PixelZoom, Inc.) */ -import PHMeterNodeAccordionBox, { PHMeterNodeAccordionBoxOptions } from '../../common/view/PHMeterNodeAccordionBox.js'; +import PHAccordionBox, { PHMeterNodeAccordionBoxOptions } from '../../common/view/PHAccordionBox.js'; import phScale from '../../phScale.js'; import { PHValue } from '../../common/model/PHModel.js'; import { EmptySelfOptions } from '../../../../phet-core/js/optionize.js'; @@ -21,7 +21,7 @@ type SelfOptions = EmptySelfOptions; export type MicroPHAccordionBoxOptions = SelfOptions & PickRequired; -export default class MicroPHAccordionBox extends PHMeterNodeAccordionBox { +export default class MicroPHAccordionBox extends PHAccordionBox { /** * @param pHProperty - pH of the solution @@ -34,7 +34,7 @@ export default class MicroPHAccordionBox extends PHMeterNodeAccordionBox { const contentNode = new NumberDisplay( pHProperty, PHScaleConstants.PH_RANGE, { decimalPlaces: PHScaleConstants.PH_METER_DECIMAL_PLACES, - cornerRadius: PHMeterNodeAccordionBox.CORNER_RADIUS, + cornerRadius: PHAccordionBox.CORNER_RADIUS, textOptions: { font: new PhetFont( 28 ), textPropertyOptions: { phetioHighFrequency: true } diff --git a/js/mysolution/view/MySolutionPHAccordionBox.ts b/js/mysolution/view/MySolutionPHAccordionBox.ts index beb85064..4a7652a1 100644 --- a/js/mysolution/view/MySolutionPHAccordionBox.ts +++ b/js/mysolution/view/MySolutionPHAccordionBox.ts @@ -7,7 +7,7 @@ * @author Chris Malley (PixelZoom, Inc.) */ -import PHMeterNodeAccordionBox, { PHMeterNodeAccordionBoxOptions } from '../../common/view/PHMeterNodeAccordionBox.js'; +import PHAccordionBox, { PHMeterNodeAccordionBoxOptions } from '../../common/view/PHAccordionBox.js'; import phScale from '../../phScale.js'; import { EmptySelfOptions } from '../../../../phet-core/js/optionize.js'; import PickRequired from '../../../../phet-core/js/types/PickRequired.js'; @@ -18,7 +18,7 @@ type SelfOptions = EmptySelfOptions; export type MySolutionPHAccordionBoxOptions = SelfOptions & PickRequired; -export default class MySolutionPHAccordionBox extends PHMeterNodeAccordionBox { +export default class MySolutionPHAccordionBox extends PHAccordionBox { /** * @param pHProperty - pH of the solution