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

Method rightKeepRatio

js/selecter.js:459–465  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

457 }
458
459 rightKeepRatio() {
460 const newW = this.area.rect.clientHeight * this.placedRatio;
461 const absRight = this.fixCropperRight(
462 this.main.elLeft() +
463 this.left + newW + 2);
464 this.setRight((this.area.el.clientWidth + this.main.elLeft()) - absRight);
465 }
466
467 show() {
468 this.shown = true;

Callers 1

handleMouseMoveMethod · 0.95

Calls 3

fixCropperRightMethod · 0.95
setRightMethod · 0.95
elLeftMethod · 0.80

Tested by

no test coverage detected