Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Vector2Property #88

Closed
samreid opened this issue Feb 24, 2019 · 11 comments
Closed

Create Vector2Property #88

samreid opened this issue Feb 24, 2019 · 11 comments

Comments

@samreid
Copy link
Member

samreid commented Feb 24, 2019

From phetsims/axon#221 we would like to create a custom Vector2Property type.

@samreid samreid self-assigned this Feb 24, 2019
@samreid
Copy link
Member Author

samreid commented Mar 6, 2019

I've created Vector2Property and revised sites with these options to use it:

  • phetioType: PropertyIO( Vector2IO )
  • valueType: Vector2

Aqua is partway through testing phet brand and phet-io brand and no systemic issues are revealed. If sim-specific issues appear on CT, I will look into them.

I'll send a note on slack, since this is a large-ish commit.

Committing 44 files across 21 repos to introduce Vector2Property, please see #88 for details.

I saw issues in Blackbody Spectrum and Charges and Fields, but the former doesn't look related and I'm not sure about the latter.

samreid added a commit to phetsims/circuit-construction-kit-common that referenced this issue Mar 6, 2019
samreid added a commit to phetsims/balloons-and-static-electricity that referenced this issue Mar 6, 2019
samreid added a commit to phetsims/forces-and-motion-basics that referenced this issue Mar 6, 2019
samreid added a commit to phetsims/capacitor-lab-basics that referenced this issue Mar 6, 2019
samreid added a commit to phetsims/graphing-quadratics that referenced this issue Mar 6, 2019
samreid added a commit to phetsims/molecules-and-light that referenced this issue Mar 6, 2019
samreid added a commit to phetsims/masses-and-springs that referenced this issue Mar 6, 2019
samreid added a commit to phetsims/charges-and-fields that referenced this issue Mar 6, 2019
samreid added a commit to phetsims/wave-interference that referenced this issue Mar 6, 2019
samreid added a commit to phetsims/equality-explorer that referenced this issue Mar 6, 2019
samreid added a commit to phetsims/energy-skate-park that referenced this issue Mar 6, 2019
samreid added a commit to phetsims/gravity-force-lab that referenced this issue Mar 6, 2019
samreid added a commit to phetsims/fractions-common that referenced this issue Mar 6, 2019
samreid added a commit to phetsims/john-travoltage that referenced this issue Mar 6, 2019
samreid added a commit to phetsims/gas-properties that referenced this issue Mar 6, 2019
samreid added a commit to phetsims/beers-law-lab that referenced this issue Mar 6, 2019
samreid added a commit to phetsims/coulombs-law that referenced this issue Mar 6, 2019
samreid added a commit to phetsims/faradays-law that referenced this issue Mar 6, 2019
samreid added a commit to phetsims/friction that referenced this issue Mar 6, 2019
samreid added a commit to phetsims/shred that referenced this issue Mar 6, 2019
samreid added a commit that referenced this issue Mar 6, 2019
samreid added a commit that referenced this issue Mar 6, 2019
pixelzoom added a commit to phetsims/equality-explorer that referenced this issue Mar 6, 2019
pixelzoom added a commit to phetsims/graphing-quadratics that referenced this issue Mar 6, 2019
pixelzoom added a commit to phetsims/function-builder that referenced this issue Mar 6, 2019
@samreid
Copy link
Member Author

samreid commented Mar 6, 2019

From slack:

Chris Malley [9:45 AM]
Was the goal to convert all {Property.<Vector2>}, or just the ones that specified valueType or phetioType?
I still see 127 occurrences of “{Property.}“. Our goal in phetsims/axon#196 was to proactively convert to type-specific Properties, so that things are ready for PhET-iO.
Some of those “{Property.}” are bugs introduced by dot#88, documentation was not changed.

Chris Malley [9:55 AM]
I’m fixing doc in my sims.

Sam Reid [9:59 AM]
Some of those annotations should presumably be removed as redundant?

Chris Malley [9:59 AM]
yes

Sam Reid [10:00 AM]
I have meetings starting now but can look into that afterwards

pixelzoom added a commit to phetsims/graphing-lines that referenced this issue Mar 6, 2019
pixelzoom added a commit to phetsims/acid-base-solutions that referenced this issue Mar 6, 2019
samreid added a commit to phetsims/gravity-and-orbits that referenced this issue Mar 7, 2019
samreid added a commit to phetsims/energy-skate-park that referenced this issue Mar 7, 2019
samreid added a commit to phetsims/wave-interference that referenced this issue Mar 7, 2019
samreid added a commit to phetsims/area-model-common that referenced this issue Mar 7, 2019
samreid added a commit to phetsims/projectile-motion that referenced this issue Mar 7, 2019
samreid added a commit to phetsims/wave-on-a-string that referenced this issue Mar 7, 2019
samreid added a commit to phetsims/bending-light that referenced this issue Mar 7, 2019
samreid added a commit to phetsims/scenery-phet that referenced this issue Mar 7, 2019
samreid added a commit to phetsims/estimation that referenced this issue Mar 7, 2019
samreid added a commit to phetsims/scenery that referenced this issue Mar 7, 2019
samreid added a commit to phetsims/seasons that referenced this issue Mar 7, 2019
samreid added a commit to phetsims/energy-forms-and-changes that referenced this issue Mar 7, 2019
samreid added a commit to phetsims/gas-properties that referenced this issue Mar 7, 2019
@samreid
Copy link
Member Author

samreid commented Mar 7, 2019

I replaced more patterns that were creating new Property(Vector.ZERO) and new Property(new Vector2()). I could probably find more cases if I put a check in the Property constructor, but not sure whether that's beyond the point of diminishing returns.

@pixelzoom
Copy link
Contributor

Re the change to BooleanProperty in #88 (comment)...
Tracking changes to how options are handled in phetsims/axon#234.
Discussing best practices for options in phetsims/phet-info#96.

@pixelzoom
Copy link
Contributor

Looks like unit tests have not been implemented for Vector2Property.

@pixelzoom
Copy link
Contributor

I added unit tests in the previous commit.

@samreid anything else to do here other than review?

@samreid
Copy link
Member Author

samreid commented Jun 30, 2019

The unit tests look like they have good coverage. I can't think of anything else for this issue. @pixelzoom does Vector2Property need further review? Can this issue be closed?

@samreid samreid assigned pixelzoom and unassigned samreid Jun 30, 2019
@pixelzoom
Copy link
Contributor

I think this is OK to close.

jessegreenberg pushed a commit to phetsims/greenhouse-effect that referenced this issue Apr 21, 2021
jessegreenberg pushed a commit to phetsims/greenhouse-effect that referenced this issue Apr 21, 2021
chrisklus pushed a commit to phetsims/counting-common that referenced this issue Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants