Skip to content

Commit

Permalink
REVIEW comments, #225
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Mar 4, 2024
1 parent d663ba1 commit 8042b77
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions js/common/model/Histogram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import PickRequired from '../../../../phet-core/js/types/PickRequired.js';
import { PhetioObjectOptions } from '../../../../tandem/js/PhetioObject.js';
import PDLPreferences from '../PDLPreferences.js';

//REVIEW document and create 'type ZoomLevel'
export const ZOOM_LEVELS = [ {
maxCount: 500,
minorSpacing: 10,
Expand Down
1 change: 1 addition & 0 deletions js/common/model/HistogramSonifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const MEAN_HIGHLIGHT_DURATION = 0.4;

export default class HistogramSonifier {

//REVIEW document
public readonly histogramSonifierPhaseProperty = new Property<HistogramSonifierPhase>( { phaseName: 'idlePhase' } );

// The sorted data from the left to the rightmost bin
Expand Down
1 change: 1 addition & 0 deletions js/common/model/Projectile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import ProjectileType from './ProjectileType.js';

export default class Projectile {

//REVIEW document - not obvious why we need to know what screen a Projectile belongs to
public screenIdentifier: ScreenIdentifier;

public fieldIdentifier: string;
Expand Down
1 change: 1 addition & 0 deletions js/common/model/ProjectileSound.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const playbackRateForPosition = ( x: number ): number => {
return Utils.linear( 0, 100, 0.2, 3.5, x );
};

//REVIEW Lots of if-then-else logic and duplicated code here. Should soundClip be an attribute of ProjectileType?
export default class ProjectileSound {

public static play( projectileType: ProjectileType, x: number, isLanding: boolean ): void {
Expand Down

0 comments on commit 8042b77

Please sign in to comment.