()
| 434 | } |
| 435 | |
| 436 | leftKeepRatio() { |
| 437 | const newW = this.area.rect.clientHeight * this.placedRatio; |
| 438 | const suggLeft = this.main.elLeft() + |
| 439 | (this.area.el.clientWidth - this.right - newW - 2); |
| 440 | const absLeft = this.fixCropperLeft(suggLeft); |
| 441 | this.setLeft(absLeft - this.main.elLeft()); |
| 442 | } |
| 443 | |
| 444 | topKeepRatio() { |
| 445 | const newH = this.area.rect.clientWidth / this.placedRatio; |
no test coverage detected