Skip to content

Commit

Permalink
Add REVIEW comments, see #398
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Mar 2, 2023
1 parent a530d4c commit a7db241
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions js/quadrilateral/QuadrilateralQueryParameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ const QuadrilateralQueryParameters = QueryStringMachine.getAll( {
// QuadrilateralSoundOptionsModel.SoundDesign as a string. See https://github.com/phetsims/quadrilateral/blob/master/js/quadrilateral/model/QuadrilateralSoundOptionsModel.ts#L37-L53
soundDesign: {
type: 'string',

// REVIEW: This value doesn't seem to be cased like other query parameter values
defaultValue: 'TRACKS_LAYER',
validValues: SoundDesign.enumeration.keys
},
Expand Down
6 changes: 4 additions & 2 deletions js/quadrilateral/model/QuadrilateralShapeDetector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ import NamedQuadrilateral from './NamedQuadrilateral.js';
const CONCAVE = Math.pow( 2, 0 );
const ONE_PARALLEL_PAIR = Math.pow( 2, 1 );
const TWO_PARALLEL_PAIR = Math.pow( 2, 2 );
const TWO_EQUAL_ADJACENT_ANGLE_PAIR = Math.pow( 2, 4 );
const TWO_EQUAL_ADJACENT_ANGLE_PAIR = Math.pow( 2, 4 ); // REVIEW: Are we skipping 3?
const ONE_EQUAL_OPPOSITE_ANGLE_PAIR = Math.pow( 2, 5 );
const TWO_EQUAL_OPPOSITE_ANGLE_PAIR = Math.pow( 2, 6 );
const ALL_EQUAL_ANGLE = Math.pow( 2, 7 );
const ALL_EQUAL_ANGLE = Math.pow( 2, 7 );// REVIEW: Are we skipping 8?
const TWO_EQUAL_ADJACENT_SIDE_PAIR = Math.pow( 2, 9 );
const ONE_EQUAL_OPPOSITE_SIDE_PAIR = Math.pow( 2, 10 );
const TWO_EQUAL_OPPOSITE_SIDE_PAIR = Math.pow( 2, 11 );
Expand Down Expand Up @@ -100,6 +100,8 @@ export default class QuadrilateralShapeDetector {
this.quadrilateralShapeModel = quadrilateralShapeModel;
}

// REVIEW: This method should be made static, and pass in the QuadrilateralShapeModel as an argument
// REVIEW: Add some unit tests to make sure this method and the masks are working as expected
/**
* Compute the name of the quadrilateral. Note this must be called AFTER all order dependent Properties are updated
* because it relies on vertex positions to be stable and all shape attributes to be calculated. See
Expand Down
1 change: 1 addition & 0 deletions js/quadrilateral/model/QuadrilateralVisibilityModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default class QuadrilateralVisibilityModel {
public readonly vertexLabelsVisibleProperty: BooleanProperty;

// Whether the grid is visible.
// REVIEW: Should and other boolean options start with "is"?
public readonly gridVisibleProperty: BooleanProperty;

// Whether the diagonal guides are visible.
Expand Down

0 comments on commit a7db241

Please sign in to comment.