Skip to content

Commit

Permalink
address code review comments, see #109
Browse files Browse the repository at this point in the history
  • Loading branch information
jbphet committed Mar 7, 2025
1 parent e1872ff commit 4e8fd8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions js/coins/view/CoinNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,11 @@ export default class CoinNode extends Node {

public constructor( radius: number,
crossFadeProperty: TReadOnlyProperty<number>,
coinFaceParameters: CoinFaceParameters[],
coinFaceParameters: [ CoinFaceParameters, CoinFaceParameters ],
providedOptions?: CoinNodeOptions ) {

const options = optionize<CoinNodeOptions, SelfOptions, NodeOptions>()( {}, providedOptions );

// parameter checking
assert && assert( coinFaceParameters.length === 2, 'there should be exactly two sets of coin face parameters' );

super( options );

// Create the nodes that represent each of the two faces.
Expand Down
4 changes: 2 additions & 2 deletions js/photons/view/PhotonSprites.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class PhotonSprites extends Sprites {
private readonly photonScale: number;

// The sprites used to render the photons.
private readonly photonInteriorSprite: Sprite | null = null;
private readonly photonOutlineSprite: Sprite | null = null;
private readonly photonInteriorSprite: Sprite;
private readonly photonOutlineSprite: Sprite;

public static readonly TARGET_PHOTON_VIEW_WIDTH = 10; // in screen coords, empirically determined to match the design

Expand Down

0 comments on commit 4e8fd8b

Please sign in to comment.