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

Method fit

src/scales/scale.radialLinear.js:466–474  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

464 }
465
466 fit() {
467 const opts = this.options;
468
469 if (opts.display && opts.pointLabels.display) {
470 fitWithPointLabels(this);
471 } else {
472 this.setCenterPoint(0, 0, 0, 0);
473 }
474 }
475
476 setCenterPoint(leftMovement, rightMovement, topMovement, bottomMovement) {
477 this.xCenter += Math.floor((leftMovement - rightMovement) / 2);

Callers

nothing calls this directly

Calls 2

setCenterPointMethod · 0.95
fitWithPointLabelsFunction · 0.85

Tested by

no test coverage detected