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

Function toPadding

src/helpers/helpers.options.ts:98–105  ·  view source on GitHub ↗
(value?: number | TRBL)

Source from the content-addressed store, hash-verified

96 * @since 2.7.0
97 */
98export function toPadding(value?: number | TRBL): ChartArea {
99 const obj = toTRBL(value) as ChartArea;
100
101 obj.width = obj.left + obj.right;
102 obj.height = obj.top + obj.bottom;
103
104 return obj;
105}
106
107/**
108 * Parses font options and returns the font object.

Callers 15

updateFunction · 0.85
getTitleHeightFunction · 0.85
_computeLabelItemsMethod · 0.85
drawTitleMethod · 0.85
drawTitleMethod · 0.85
_computeTitleHeightMethod · 0.85
generateLabelsFunction · 0.85
getTooltipSizeFunction · 0.85
getAlignedXFunction · 0.85
drawMethod · 0.85
updateMethod · 0.85

Calls 1

toTRBLFunction · 0.85

Tested by

no test coverage detected