MCPcopy Create free account
hub / github.com/devforth/painterro / bottomKeepRatio

Method bottomKeepRatio

js/selecter.js:451–457  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

449 }
450
451 bottomKeepRatio() {
452 const newH = this.area.rect.clientWidth / this.placedRatio;
453 const absBottom = this.fixCropperBottom(
454 this.main.elTop() +
455 this.top + newH + 2);
456 this.setBottom((this.area.el.clientHeight + this.main.elTop()) - absBottom);
457 }
458
459 rightKeepRatio() {
460 const newW = this.area.rect.clientHeight * this.placedRatio;

Callers 1

handleMouseMoveMethod · 0.95

Calls 3

fixCropperBottomMethod · 0.95
setBottomMethod · 0.95
elTopMethod · 0.80

Tested by

no test coverage detected