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

Function updateMaxPadding

src/core/core.layouts.ts:157–162  ·  view source on GitHub ↗
(maxPadding: ChartArea, boxPadding: ChartArea)

Source from the content-addressed store, hash-verified

155}
156
157function updateMaxPadding(maxPadding: ChartArea, boxPadding: ChartArea) {
158 maxPadding.top = Math.max(maxPadding.top, boxPadding.top);
159 maxPadding.left = Math.max(maxPadding.left, boxPadding.left);
160 maxPadding.bottom = Math.max(maxPadding.bottom, boxPadding.bottom);
161 maxPadding.right = Math.max(maxPadding.right, boxPadding.right);
162}
163
164function updateDims(chartArea: LayoutArea, params: LayoutParams, layout: LayoutBox, stacks: Record<string, LayoutStack>) {
165 const {pos, box} = layout;

Callers 2

updateDimsFunction · 0.85
updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected