Skip to content

Commit

Permalink
Rename chocolate bar, see: #52
Browse files Browse the repository at this point in the history
  • Loading branch information
marlitas committed Jun 30, 2022
1 parent 1a054f7 commit 7f36668
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ import optionize from '../../../../phet-core/js/optionize.js';
import { Rectangle, RectangleOptions } from '../../../../scenery/js/imports.js';
import MeanShareAndBalanceColors from '../../common/MeanShareAndBalanceColors.js';
import MeanShareAndBalanceConstants from '../../common/MeanShareAndBalanceConstants.js';
import meanShareAndBalance from '../../meanShareAndBalance.js';

type SelfOptions = {
visiblePieces?: number; // The number of visible chocolate pieces in the bar. max of 4, min of 1
}
type ChocolateBarNodeOptions = SelfOptions & RectangleOptions;

export default class ChocolateBarNode extends Rectangle {
export default class ChocolateBarRectangle extends Rectangle {
public constructor( providedOptions?: ChocolateBarNodeOptions ) {

const options = optionize<ChocolateBarNodeOptions, SelfOptions, RectangleOptions>()( {
Expand All @@ -31,4 +32,6 @@ export default class ChocolateBarNode extends Rectangle {

super( 0, 0, x2, y2, options );
}
}
}

meanShareAndBalance.register( 'ChocolateBarRectangle', ChocolateBarRectangle );

0 comments on commit 7f36668

Please sign in to comment.