Skip to content

Commit

Permalink
#67 rename method isContainsPoint in isPointInsideGraph
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-zelenkov committed Sep 13, 2015
1 parent b81adf0 commit 950d10f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/curve-fitting/view/GraphAreaNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ define( function( require ) {
return inherit( Node, GraphAreaNode, {
// check that point dropped into graph area
checkDropPointAndSetValues: function( point ) {
var isDropped = this.isContainsPoint( point );
var isDropped = this.isPointInsideGraph( point );

if ( isDropped ) {
this.setValues( point );
Expand Down Expand Up @@ -183,14 +183,14 @@ define( function( require ) {
},

// whether the point is inside the GraphAreaNode (or on the boundary)
isContainsPoint: function( point ) {
isPointInsideGraph: function( point ) {
return this.localBounds.containsPoint( this.globalToLocalPoint( point.position ) );
},

// set value of point
setValues: function( point ) {
var values;
if ( this.isContainsPoint( point ) ) {
if ( this.isPointInsideGraph( point ) ) {
values = this.getGraphValuesFromPosition( point.position );
point.x = values.x;
point.y = values.y;
Expand Down

0 comments on commit 950d10f

Please sign in to comment.