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

Function interpret

src/dat/color/interpret.js:277–299  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

275let toReturn;
276
277const interpret = function() {
278 toReturn = false;
279
280 const original = arguments.length > 1 ? common.toArray(arguments) : arguments[0];
281 common.each(INTERPRETATIONS, function(family) {
282 if (family.litmus(original)) {
283 common.each(family.conversions, function(conversion, conversionName) {
284 result = conversion.read(original);
285
286 if (toReturn === false && result !== false) {
287 toReturn = result;
288 result.conversionName = conversionName;
289 result.conversion = conversion;
290 return common.BREAK;
291 }
292 });
293
294 return common.BREAK;
295 }
296 });
297
298 return toReturn;
299};
300
301export default interpret;

Callers 2

onBlurMethod · 0.85
updateDisplayMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…