Skip to content

Commit

Permalink
update major tick marks and 9 tick marks bug fix, phetsims/buoyancy#113
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kauzmann <[email protected]>
  • Loading branch information
zepumph committed Mar 27, 2024
1 parent 35ab6e0 commit efd8e41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/buoyancy/view/FluidDisplacedPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ export default class FluidDisplacedPanel extends MultiSectionPanelsNode {
const beakerRange = new Range( 0, 1 );
const beakerVolumeProperty = new NumberProperty( 0, { range: beakerRange } );

// TODO: add majorTickMarkModulus: 5 as an option, https://github.com/phetsims/buoyancy/issues/113
const beakerNode = new BeakerNode( beakerVolumeProperty, {
lineWidth: 1,
beakerHeight: CONTENT_WIDTH * 0.8,
beakerWidth: CONTENT_WIDTH,
yRadiusOfEnds: CONTENT_WIDTH * 0.12,
ticksVisible: true,
numberOfTicks: 10
numberOfTicks: 9, // The top is the 10th tick mark
majorTickMarkModulus: 5
} );

displayedDisplacedVolumeProperty.link( displayedLiters => {
Expand Down

0 comments on commit efd8e41

Please sign in to comment.