Skip to content

Commit

Permalink
rename to accordion box, phetsims/buoyancy#150
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kauzmann <[email protected]>
  • Loading branch information
zepumph committed May 15, 2024
1 parent 739c4ea commit ac603f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions js/buoyancy/view/BuoyancyLabScreenView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import DensityAccordionBox from './DensityAccordionBox.js';
import BuoyancyDisplayOptionsNode from '../../common/view/BuoyancyDisplayOptionsNode.js';
import BlockControlNode from '../../common/view/BlockControlNode.js';
import MultiSectionPanelsNode from '../../common/view/MultiSectionPanelsNode.js';
import FluidDisplacedPanel from './FluidDisplacedPanel.js';
import FluidDisplacedAccordionBox from './FluidDisplacedAccordionBox.js';
import SubmergedAccordionBox from './SubmergedAccordionBox.js';
import DensityBuoyancyCommonStrings from '../../DensityBuoyancyCommonStrings.js';
import ThreeUtils from '../../../../mobius/js/ThreeUtils.js';
Expand Down Expand Up @@ -55,7 +55,7 @@ export default class BuoyancyLabScreenView extends DensityBuoyancyScreenView<Buo
// In liters
const maxBlockVolume = 10;

const fluidDisplacedAccordionBox = new FluidDisplacedPanel( this.waterLevelVolumeProperty,
const fluidDisplacedAccordionBox = new FluidDisplacedAccordionBox( this.waterLevelVolumeProperty,
maxBlockVolume,
model.liquidMaterialProperty,
model.gravityProperty , {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const CONTENT_WIDTH = 105;
// Beaker expects a range between 0 (empty) and 1 (full)
const BEAKER_RANGE = new Range( 0, 1 );

export default class FluidDisplacedPanel extends AccordionBox {
export default class FluidDisplacedAccordionBox extends AccordionBox {

public constructor( poolVolumeProperty: TReadOnlyProperty<number>,
maxBeakerVolume: number,
Expand Down Expand Up @@ -87,7 +87,7 @@ export default class FluidDisplacedPanel extends AccordionBox {

const beakerNode = new BeakerNode( beakerVolumeProperty, combineOptions<BeakerNodeOptions>( {
solutionFill: solutionFillProperty
}, FluidDisplacedPanel.getBeakerOptions() ) );
}, FluidDisplacedAccordionBox.getBeakerOptions() ) );

displayedDisplacedVolumeProperty.link( displayedLiters => {
beakerVolumeProperty.value = displayedLiters / maxBeakerVolume;
Expand Down Expand Up @@ -192,7 +192,7 @@ export default class FluidDisplacedPanel extends AccordionBox {
range: BEAKER_RANGE.copy()
} ), combineOptions<BeakerNodeOptions>( {
solutionFill: Material.WATER.liquidColor
}, FluidDisplacedPanel.getBeakerOptions() ) );
}, FluidDisplacedAccordionBox.getBeakerOptions() ) );

scaleIcon.top = beakerNode.bottom - 30;
scaleIcon.centerX = beakerNode.centerX;
Expand All @@ -205,4 +205,4 @@ export default class FluidDisplacedPanel extends AccordionBox {
}
}

densityBuoyancyCommon.register( 'FluidDisplacedPanel', FluidDisplacedPanel );
densityBuoyancyCommon.register( 'FluidDisplacedAccordionBox', FluidDisplacedAccordionBox );

0 comments on commit ac603f5

Please sign in to comment.