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