Skip to content

Commit

Permalink
Added TODOs, see #64
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Feb 13, 2018
1 parent 657c534 commit 07dad3c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions js/friction/model/FrictionModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ define( function( require ) {
this.hintProperty = new Property( true );

// @public (read-only)- update every step
// TODO: Use an emitter here
this.newStepProperty = new Property( false );

// @public (read-only) - drag and drop book coordinates conversion coefficient
Expand Down
2 changes: 1 addition & 1 deletion js/friction/view/book/BookNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ define( function( require ) {
var bookTitleStringPattern = FrictionA11yStrings.bookTitleStringPattern.value;

/**
* @param {FrictionModel} model
* @param {FrictionModel} model TODO: after making TODO changes below, maybe the entire model doesn't need to be passed in
* @param {string} title - title that appears on the book spine
* @param {Object} [options]
* @constructor
Expand Down
3 changes: 3 additions & 0 deletions js/friction/view/magnifier/AtomNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,14 @@ define( function( require ) {
// Scale up before rasterization so it won't be too pixellated/fuzzy, value empirically determined.
var scale = AtomNode.imageScale;
var container = new Node( { scale: 1 / scale } );

// TODO: should we use shaded sphere?
var atomNode = new Circle( radius, { fill: options.color, stroke: 'black', lineWidth: 1, scale: scale } );
atomNode.addChild( new Circle( radius * 0.3, { fill: 'white', x: radius * 0.3, y: -radius * 0.3 } ) );
atomNode.toImage( function( img, x, y ) {

// add our actual HTMLImageElement to atomImages
// TODO: what is happening here?
AtomNode.atomImages[ self.isTopAtom ] = img;
AtomNode.atomOffset = new Vector2( -x, -y );

Expand Down

0 comments on commit 07dad3c

Please sign in to comment.