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

Method setValue

src/dat/controllers/OptionController.js:69–76  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

67 }
68
69 setValue(v) {
70 const toReturn = super.setValue(v);
71
72 if (this.__onFinishChange) {
73 this.__onFinishChange.call(this, this.getValue());
74 }
75 return toReturn;
76 }
77
78 updateDisplay() {
79 if (dom.isActive(this.__select)) return this; // prevent number from updating if user is trying to manually update

Callers 1

constructorMethod · 0.45

Calls 1

getValueMethod · 0.80

Tested by

no test coverage detected