Closed samreid closed 1 week ago
modeProperty
have a better name.If we follow the naming convention from explore screen we could use shapeA
and shapeB
. However, in the code they are still referred as primary and secondary, even in the Explore Screen code. If we rename, those should be consistent as well.
[x] Studio tree for each model object:
objectA
[x] primaryShapeSizeControlNode -> objectAShapeSizeControlNode
[x] Internal variable renames too like primary/secondary/aMap
[x] Don't forget about renaming primary/secondary on other screens that use two block modes called blockA/blockB.
I also recommend using a class for this structure, so that we don't have to repeat this twice. It could be something like "ShapedMassModel.ts"
working on this now.
Still more to do to get the right phet-io tree structure and renames, but good progress.
Started replacing but based on the initial comment, decided to stash it, as I'm not totally sure that the decision is. To go from primary to A or viceversa. Personally, I also prefer primary, as MK said originally. PrimarySecondary*
is a clearer name than AB*
and so on.
So holding for discussion...
Addressed I think most of the renamings, there's still some strings, tags and string keys to look into. As well as the three structure
Studio tree for each model object:
@zepumph can you please double check that the structure is as it was desired? That item was a bit confusing as there is already a shapeProperty and massProperty in Mass.ts, which were in no way related to the shapeProperty in ShapeModel.ts... could lead to confusions.
Excellent. I changed the serialization to make it a reference. We don't need a copy of the actual Mass, just a pointer to the one that exists in the shapes
collection:
I wish that the shapeProperty could be a DerivedProperty, but I sorta gave up because of the complexity of changeShape()
. Oh well! Thanks for doing this, I know it was confusing. Ready to close?
Ready to close, bye!
From https://github.com/phetsims/buoyancy/issues/160#issuecomment-2145925951 @zepumph said:
Let's consult with @arouinfar