phetsims / buoyancy

"Buoyancy" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
2 stars 2 forks source link

Updates to bottle, block, boat controls on Applications Screen #180

Open arouinfar opened 1 week ago

arouinfar commented 1 week ago

Related to #51. Since the Applications Screen only exists in Buoyancy, the buoyancy repo seems appropriate for this issue, but apologies in advance if it should go in density-buoyancy-common.

On the Applications Screen, the panel in the upper-right corner contains all of the controls associated with the bottle, boat, and block. Here's what the panels and tree structure currently look like for each scene.

Bottle Boat
image image
image image

@DianaTavares and I reviewed these controls and would like to make some changes:

Assigning to the dev team.

AgustinVallejo commented 4 days ago

[boat.displacementVolumeProperty] Range should match Boat Volume slider.

I see @zepumph unified those ranges here https://github.com/phetsims/density-buoyancy-common/commit/32624356967482f40095dfad7b6181af8bcb3322 but the one in the model is in m^3, then multiplied to be L in the view. Is that good as is, or should something change there? @arouinfar @zepumph

arouinfar commented 4 days ago

[boat.displacementVolumeProperty] Range should match Boat Volume slider.

Apologies, this was a bit unclear. Model units of volume should always be m3, so when I ask for the "range to match", I mean the range should be the equivalent to what we use in the view. So 1-10L would be 0.001-0.01 m3

AgustinVallejo commented 1 day ago

Most of this is done, one question for @arouinfar:

Name [boat.displacementVolumeProperty] is unclear. Rename to boat.totalVolumeProperty

Bottle also has a displacementVolumeProperty, should that change as well?

And I might need further help on this:

There are dynamic layout issues with the Block's *DensityMassNumberControl. For example:

I added stretch: true to some components that supported them, like the containers for normal VolumeNumberControl or MassNumberControl. But the *Density ones are children of a BooleanToggleNode, which doesn't support stretching. So i'm not sure how to proceed here.

AgustinVallejo commented 20 hours ago

Moved the above mentioned items to https://github.com/phetsims/density-buoyancy-common/issues/245 and https://github.com/phetsims/density-buoyancy-common/issues/246

Now this is ready for review