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

Function updatePos

src/core/core.layouts.js:152–156  ·  view source on GitHub ↗
(pos)

Source from the content-addressed store, hash-verified

150 const maxPadding = chartArea.maxPadding;
151
152 function updatePos(pos) {
153 const change = Math.max(maxPadding[pos] - chartArea[pos], 0);
154 chartArea[pos] += change;
155 return change;
156 }
157 chartArea.y += updatePos('top');
158 chartArea.x += updatePos('left');
159 updatePos('right');

Callers 1

handleMaxPaddingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected