Skip to content

Commit

Permalink
Add assertions to remind devs that there should be a LinkedElement to…
Browse files Browse the repository at this point in the history
… the associated Property and that the Property itself should be featured, see phetsims/sun#920
  • Loading branch information
samreid committed Dec 30, 2024
1 parent 677c2aa commit fbd9e8d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions js/common/model/ProjectileMotionModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ class ProjectileMotionModel implements TModel {
this.timeSpeedProperty = new EnumerationProperty( TimeSpeed.NORMAL, {
validValues: [ TimeSpeed.NORMAL, TimeSpeed.SLOW ],
tandem: tandem.createTandem( 'timeSpeedProperty' ),
phetioFeatured: true,
phetioDocumentation: 'Speed of animation, either normal or slow.'
} );

Expand Down
1 change: 1 addition & 0 deletions js/drag/view/DragViewProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class DragViewProperties extends ProjectileMotionViewProperties {
} );
this.vectorsDisplayProperty = new EnumerationDeprecatedProperty( VectorsDisplayEnumeration, VectorsDisplayEnumeration.TOTAL, {
tandem: tandem.createTandem( 'vectorsDisplayProperty' ),
phetioFeatured: true,
phetioDocumentation: 'Property for which type of vectors are displayed for flying projectiles: either component ' +
'vectors or total vectors.'
} );
Expand Down
1 change: 1 addition & 0 deletions js/vectors/view/VectorsViewProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class VectorsViewProperties extends ProjectileMotionViewProperties {
} );
this.vectorsDisplayProperty = new EnumerationDeprecatedProperty( VectorsDisplayEnumeration, VectorsDisplayEnumeration.TOTAL, {
tandem: tandem.createTandem( 'vectorsDisplayProperty' ),
phetioFeatured: true,
phetioDocumentation: 'Property for which type of vectors are displayed for flying projectiles: either component ' +
'vectors or total vectors.'
} );
Expand Down

0 comments on commit fbd9e8d

Please sign in to comment.