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

Method validationHeight

js/resizer.js:114–129  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

112 }
113
114 validationHeight(value) {
115 if (this.validationHeightValue(value)) {
116 this.newH = value;
117 } else {
118 this.inputH.value = this.inputHLimit;
119 this.newH = this.inputHLimit;
120 return;
121 }
122
123 if (Resizer.validationEmptyValue(value)) {
124 this.newH = value;
125 } else {
126 this.inputH.value = 0;
127 this.newH = 0;
128 }
129 }
130
131 validationWidth(value) {
132 if (this.validationWidthValue(value)) {

Callers 1

constructorMethod · 0.95

Calls 2

validationHeightValueMethod · 0.95
validationEmptyValueMethod · 0.80

Tested by

no test coverage detected