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

Function toTRBL

src/helpers/helpers.options.ts:75–77  ·  view source on GitHub ↗
(value: number | TRBL | Point)

Source from the content-addressed store, hash-verified

73 * @since 3.0.0
74 */
75export function toTRBL(value: number | TRBL | Point) {
76 return _readValueToProps(value, {top: 'y', right: 'x', bottom: 'y', left: 'x'});
77}
78
79/**
80 * Converts the given value into a TRBL corners object (similar with css border-radius).

Callers 2

toPaddingFunction · 0.85
parseBorderWidthFunction · 0.85

Calls 1

_readValueToPropsFunction · 0.85

Tested by

no test coverage detected