* @protected
()
| 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]); |