mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-10-10 06:54:18 +00:00
30 lines
353 B
JavaScript
30 lines
353 B
JavaScript
var GUI = new function() {
|
|
|
|
|
|
|
|
var addHandlers = {
|
|
|
|
"number": function() {
|
|
//
|
|
}
|
|
|
|
}
|
|
|
|
|
|
this.add = function() {
|
|
|
|
var object = arguments[0];
|
|
var property = arguments[1];
|
|
|
|
var value = object[property];
|
|
var type = typeof value;
|
|
|
|
if (addHandlers[type]) {
|
|
|
|
} else {
|
|
// don't know how to handle this data type
|
|
}
|
|
|
|
}
|
|
|
|
}; |