Skip to content

Commit

Permalink
rename params for modelToViewX and modelToViewY, #27
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Jul 6, 2021
1 parent 07b76a4 commit 9a852e9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions js/ChartTransform.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,22 +111,22 @@ class ChartTransform {

/**
* Transforms a model coordinate {number} to a view coordinate {number} for the x axis.
* @param {number} value
* @param {number} x
* @returns {number}
* @public
*/
modelToViewX( value ) {
return this.modelToView( Orientation.HORIZONTAL, value );
modelToViewX( x ) {
return this.modelToView( Orientation.HORIZONTAL, x );
}

/**
* Transforms a model coordinate {number} to a view coordinate {number} for the y axis.
* @param {number} value
* @param {number} y
* @returns {number}
* @public
*/
modelToViewY( value ) {
return this.modelToView( Orientation.VERTICAL, value );
modelToViewY( y ) {
return this.modelToView( Orientation.VERTICAL, y );
}

/**
Expand Down

0 comments on commit 9a852e9

Please sign in to comment.