MCPcopy Create free account
hub / github.com/chartjs/Chart.js / alignBorderValue

Method alignBorderValue

src/core/core.scale.js:1033–1035  ·  view source on GitHub ↗
(pixel)

Source from the content-addressed store, hash-verified

1031 const axisWidth = borderOpts.display ? borderOpts.width : 0;
1032 const axisHalfWidth = axisWidth / 2;
1033 const alignBorderValue = function(pixel) {
1034 return _alignPixel(chart, pixel, axisWidth);
1035 };
1036 let borderValue, i, lineValue, alignedLineValue;
1037 let tx1, ty1, tx2, ty2, x1, y1, x2, y2;
1038

Callers

nothing calls this directly

Calls 1

_alignPixelFunction · 0.85

Tested by

no test coverage detected