Skip to content

Commit

Permalink
Rename getLineValue to getPixelForGridLine
Browse files Browse the repository at this point in the history
  • Loading branch information
nagix committed Aug 5, 2018
1 parent d238044 commit b15bcfb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/core.scale.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function labelsFromTicks(ticks) {
return labels;
}

function getLineValue(scale, index, offsetGridLines) {
function getPixelForGridLine(scale, index, offsetGridLines) {
var lineValue = scale.getPixelForTick(index);

if (offsetGridLines) {
Expand Down Expand Up @@ -756,7 +756,7 @@ module.exports = Element.extend({
labelY = me.bottom - labelYOffset;
}

var xLineValue = getLineValue(me, index, gridLines.offsetGridLines);
var xLineValue = getPixelForGridLine(me, index, gridLines.offsetGridLines);
if (xLineValue < me.left) {
lineColor = 'rgba(0,0,0,0)';
}
Expand All @@ -783,7 +783,7 @@ module.exports = Element.extend({

labelX = isLeft ? me.right - labelXOffset : me.left + labelXOffset;

var yLineValue = getLineValue(me, index, gridLines.offsetGridLines);
var yLineValue = getPixelForGridLine(me, index, gridLines.offsetGridLines);
if (yLineValue < me.top) {
lineColor = 'rgba(0,0,0,0)';
}
Expand Down

0 comments on commit b15bcfb

Please sign in to comment.