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

Method configure

src/core/core.scale.js:480–498  ·  view source on GitHub ↗

* @protected

()

Source from the content-addressed store, hash-verified

478 * @protected
479 */
480 configure() {
481 let reversePixels = this.options.reverse;
482 let startPixel, endPixel;
483
484 if (this.isHorizontal()) {
485 startPixel = this.left;
486 endPixel = this.right;
487 } else {
488 startPixel = this.top;
489 endPixel = this.bottom;
490 // by default vertical scales are from bottom to top, so pixels are reversed
491 reversePixels = !reversePixels;
492 }
493 this._startPixel = startPixel;
494 this._endPixel = endPixel;
495 this._reversePixels = reversePixels;
496 this._length = endPixel - startPixel;
497 this._alignToPixels = this.options.alignToPixels;
498 }
499
500 afterUpdate() {
501 call(this.options.afterUpdate, [this]);

Callers 1

updateMethod · 0.95

Calls 1

isHorizontalMethod · 0.95

Tested by

no test coverage detected