mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
0.7.7
This commit is contained in:
parent
b7e28a67f4
commit
b0c59d6a71
@ -186,7 +186,7 @@ var Common = {
|
|||||||
return obj === false || obj === true;
|
return obj === false || obj === true;
|
||||||
},
|
},
|
||||||
isFunction: function isFunction(obj) {
|
isFunction: function isFunction(obj) {
|
||||||
return Object.prototype.toString.call(obj) === '[object Function]';
|
return obj instanceof Function;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -684,8 +684,9 @@ Object.defineProperty(Color.prototype, 'a', {
|
|||||||
});
|
});
|
||||||
Object.defineProperty(Color.prototype, 'hex', {
|
Object.defineProperty(Color.prototype, 'hex', {
|
||||||
get: function get$$1() {
|
get: function get$$1() {
|
||||||
if (!this.__state.space !== 'HEX') {
|
if (this.__state.space !== 'HEX') {
|
||||||
this.__state.hex = ColorMath.rgb_to_hex(this.r, this.g, this.b);
|
this.__state.hex = ColorMath.rgb_to_hex(this.r, this.g, this.b);
|
||||||
|
this.__state.space = 'HEX';
|
||||||
}
|
}
|
||||||
return this.__state.hex;
|
return this.__state.hex;
|
||||||
},
|
},
|
||||||
|
File diff suppressed because one or more lines are too long
2
build/dat.gui.min.js
vendored
2
build/dat.gui.min.js
vendored
File diff suppressed because one or more lines are too long
@ -180,7 +180,7 @@ var Common = {
|
|||||||
return obj === false || obj === true;
|
return obj === false || obj === true;
|
||||||
},
|
},
|
||||||
isFunction: function isFunction(obj) {
|
isFunction: function isFunction(obj) {
|
||||||
return Object.prototype.toString.call(obj) === '[object Function]';
|
return obj instanceof Function;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -678,8 +678,9 @@ Object.defineProperty(Color.prototype, 'a', {
|
|||||||
});
|
});
|
||||||
Object.defineProperty(Color.prototype, 'hex', {
|
Object.defineProperty(Color.prototype, 'hex', {
|
||||||
get: function get$$1() {
|
get: function get$$1() {
|
||||||
if (!this.__state.space !== 'HEX') {
|
if (this.__state.space !== 'HEX') {
|
||||||
this.__state.hex = ColorMath.rgb_to_hex(this.r, this.g, this.b);
|
this.__state.hex = ColorMath.rgb_to_hex(this.r, this.g, this.b);
|
||||||
|
this.__state.space = 'HEX';
|
||||||
}
|
}
|
||||||
return this.__state.hex;
|
return this.__state.hex;
|
||||||
},
|
},
|
||||||
|
File diff suppressed because one or more lines are too long
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dat.gui",
|
"name": "dat.gui",
|
||||||
"version": "0.7.6",
|
"version": "0.7.7",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dat.gui",
|
"name": "dat.gui",
|
||||||
"version": "0.7.6",
|
"version": "0.7.7",
|
||||||
"description": "A lightweight graphical user interface for changing variables in JavaScript.",
|
"description": "A lightweight graphical user interface for changing variables in JavaScript.",
|
||||||
"main": "build/dat.gui.js",
|
"main": "build/dat.gui.js",
|
||||||
"module": "build/dat.gui.module.js",
|
"module": "build/dat.gui.module.js",
|
||||||
|
Loading…
Reference in New Issue
Block a user