Closed DianaTavares closed 2 months ago
@AgustinVallejo and I are curious why these blocks are called 1A and 1B. @DianaTavares is this correct to you?
Discussed the above, and I didn't realize that the number changes from the radio buttons (same mass/density/volume). Thanks!
A total mess:
I think we can almost consider this to be progress.
Good progress!!
Close to commit, just need to clean up other usages, and trim the margins for extra wide tags
All the above work in patches for changing the mass tag color will be done up in https://github.com/phetsims/buoyancy/issues/102. All that is left here is:
Add the Density panel (close by default) like is shown in the following mockups
@AgustinVallejo would you like to take this on and let me know if you have any questions?
All that is left here is the density panel for the intro screen.
I think the best way to do this is to try to make DensityReadoutNode a more reusable component. I'll take a look. I think this also related to #112 because that view is set up kinda the same way (mass-> data), vs material->data which is directly gathered from the mass.materialProperty. I'll take a look (maybe in a separate issue). Tagging @AgustinVallejo so that he knows where all the work for the density readout is going.
[ ] Add the Density panel (close by default) like is shown in the following mockups:
This will be much easy after we do https://github.com/phetsims/density-buoyancy-common/issues/103.
https://github.com/phetsims/density-buoyancy-common/issues/103 is now far enough along to add the density panel on the right side.
UPDATE: I'm actually going to wait a bit longer on this one, as it has a very similar pattern to the explore screen, which is still getting settled.
For added density/submerged panels in the intro screen:
In terms of calculating how much width we have on the right, I tried this patch, but I'm running into a strange startup state for three js, since the dimension of the state is 0x0. I will need to reach out to JO
After discussing with @AgustinVallejo, we created https://github.com/phetsims/density-buoyancy-common/issues/104 to investigate modelToViewPoint, but for now I would like to proceed with making the max content width a Property for ReadoutAccordionBox.
From #112, @DianaTavares had some ideas for this:
Getting close:
Ok. I believe that everything here is now done. Please give this a review, noting that since this issue was created, the % submerged panel was added over in https://github.com/phetsims/buoyancy/issues/112, but still has some work to be done (off by default from the preferences, etc).
Let me know what your think!
Looks amazing, thanks!!!
As a result of the 8/Feb/24 design meeting discussion: