MCPcopy
hub / github.com/chartjs/Chart.js / alignBorderValue

Method alignBorderValue

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

_alignPixelFunction · 0.85

Tested by

no test coverage detected