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

Method getPadding

src/core/core.scale.js:337–344  ·  view source on GitHub ↗

* Get the padding needed for the scale * @return {{top: number, left: number, bottom: number, right: number}} the necessary padding * @private

()

Source from the content-addressed store, hash-verified

335 * @private
336 */
337 getPadding() {
338 return {
339 left: this.paddingLeft || 0,
340 top: this.paddingTop || 0,
341 right: this.paddingRight || 0,
342 bottom: this.paddingBottom || 0
343 };
344 }
345
346 /**
347 * Returns the scale tick objects

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected