Open arouinfar opened 1 week 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
[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
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.
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
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 indensity-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.
@DianaTavares and I reviewed these controls and would like to make some changes:
bottleControlNode.insideMaterialControlNode
implies that it includes everything above the divider line, includingcustomBottleDensityNumberControl
. Is it possible to makecustomBottleDensityNumberControl
a child ofinsideMaterialControlNode
? That way, settinginsideMaterialControlNode.visibleProperty
tofalse
will hide everything above the dividing line. Currently, it looks like this if a non-custom material is selected.bottleControlNode.insideMaterialControlNode.massNumberControl
...visibleProperty
?massDisplay
? The "NumberControl" bit seems like an implementation detail and doesn't provide useful context.visibleProperty
tofalse
. A hole is left behind in the panel:bottleControlNode.airVolumeDisplay
and give it avisibleProperty
that isphetioFeatured: true
.model.objects.boat.displacementVolumeProperty
...boatVolumeNumberControl.slider
pointing to this.boat.totalVolumeProperty
, withphetioDocumentation
to be added over in https://github.com/phetsims/density-buoyancy-common/issues/232.~ Will be done in https://github.com/phetsims/density-buoyancy-common/issues/245blockControlNode.massNumberControl
: There needs to be a way to permanently hide the MassNumberControl, regardless of whether it is the high/low density variety. Unfortunately, this doesn't look like an instrumented thing we can just add avisibleProperty
to.*DensityMassNumberControl
. For example:~ Will be done in https://github.com/phetsims/density-buoyancy-common/issues/246bottleControlNode
>bottleControls
insideMaterialControlNode
>materialInsideControls
blockControlNode
>blockControls
Assigning to the dev team.