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

Method validationWidth

js/resizer.js:131–146  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

129 }
130
131 validationWidth(value) {
132 if (this.validationWidthValue(value)) {
133 this.newW = value;
134 } else {
135 this.inputW.value = this.inputWLimit;
136 this.newW = this.inputWLimit;
137 return;
138 }
139
140 if (Resizer.validationEmptyValue(value)) {
141 this.newW = value;
142 } else {
143 this.inputW.value = '0';
144 this.newW = 0;
145 }
146 }
147
148 open() {
149 this.wrapper.removeAttribute('hidden');

Callers 1

constructorMethod · 0.95

Calls 2

validationWidthValueMethod · 0.95
validationEmptyValueMethod · 0.80

Tested by

no test coverage detected