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

Method alignBorderValue

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

_alignPixelFunction · 0.85

Tested by

no test coverage detected