MCPcopy
hub / github.com/dataarts/dat.gui / onBlur

Method onBlur

src/dat/controllers/ColorController.js:192–200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

190 }
191
192 function onBlur() {
193 const i = interpret(this.value);
194 if (i !== false) {
195 _this.__color.__state = i;
196 _this.setValue(_this.__color.toOriginal());
197 } else {
198 this.value = _this.__color.toString();
199 }
200 }
201
202 function onFinish() {
203 if (_this.__onFinishChange) {

Callers

nothing calls this directly

Calls 4

interpretFunction · 0.85
toOriginalMethod · 0.80
toStringMethod · 0.80
setValueMethod · 0.45

Tested by

no test coverage detected