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

Method selectAll

js/selecter.js:124–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122 }
123
124 selectAll() {
125 this.setLeft(0);
126 this.setRight(0);
127 this.setBottom(0);
128 this.setTop(0);
129 this.show();
130 this.reCalcCropperCords();
131 if (this.area.activated) {
132 this.areaionCallback(!this.imagePlaced &&
133 this.area.rect.clientWidth > 0 &&
134 this.area.rect.clientHeight > 0);
135 }
136 }
137
138 getScale() {
139 return this.canvas.clientWidth / this.canvas.getAttribute('width');

Callers 1

handleKeyDownMethod · 0.95

Calls 6

setLeftMethod · 0.95
setRightMethod · 0.95
setBottomMethod · 0.95
setTopMethod · 0.95
showMethod · 0.95
reCalcCropperCordsMethod · 0.95

Tested by

no test coverage detected