Skip to content

Commit

Permalink
Converted TNumber to a parametric type and added units as a required …
Browse files Browse the repository at this point in the history
…argument, see #41
  • Loading branch information
samreid committed Mar 13, 2017
1 parent 51f5557 commit 1473463
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/types/scenery/nodes/TNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ define( function( require ) {
},
setOpacity: {
returnType: TVoid,
parameterTypes: [ TNumber ],
parameterTypes: [ TNumber( 'unitless' ) ],
implementation: function( opacity ) {
this.instance.opacity = opacity;
},
documentation: 'Set opacity between 0-1 (inclusive)'
},
setRotation: {
returnType: TVoid,
parameterTypes: [ TNumber ],
parameterTypes: [ TNumber( 'unitless' ) ],
implementation: function( rotation ) {
this.instance.rotation = rotation;
},
Expand Down

0 comments on commit 1473463

Please sign in to comment.