Closed Nancy-Salpepi closed 8 months ago
I believe the current implementation of BodyInfo
doesn't allow to pass options (such as phetioReadonly: true
) into those individual properties. If I recall correctly that's why we changed the range to [50,50]. Could you chime in, @pixelzoom?
BodyInfo supports specifying metadata for positionProperty
and velocityProperty
via options positionPropertyOptions
and velocityPropertyOptions
respectively. Following the same pattern, I added massPropertyOptions
, specified phetioReadOnly: true
for planet.massProperty
, and regenerated the API file.
@AgustinVallejo please review. And you'll need to cherry-pick to the 1.2 release branch.
Good changes! Thanks @pixelzoom. Assigning back to QA to double check and mark as ready to cherry pick
Looks good!
looks good in rc.2
Test device MacBook Air M1 chip
Operating System 14.3
Browser Safari 17.3
Problem description For https://github.com/phetsims/qa/issues/1034, the acceptable range for the planet.massProperty is only 1 value (50). Discussed with @arouinfar over slack and it makes more sense for this property to be Read Only.
Visuals