mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
0.7.8
This commit is contained in:
parent
103be80b63
commit
6a444cca62
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* dat-gui JavaScript Controller Library
|
||||
* http://code.google.com/p/dat-gui
|
||||
* https://github.com/dataarts/dat.gui
|
||||
*
|
||||
* Copyright 2011 Data Arts Team, Google Creative Lab
|
||||
*
|
||||
@ -222,7 +222,7 @@ var INTERPRETATIONS = [
|
||||
},
|
||||
CSS_RGB: {
|
||||
read: function read(original) {
|
||||
var test = original.match(/^rgb\(\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*\)/);
|
||||
var test = original.match(/^rgb\(\s*(\S+)\s*,\s*(\S+)\s*,\s*(\S+)\s*\)/);
|
||||
if (test === null) {
|
||||
return false;
|
||||
}
|
||||
@ -237,7 +237,7 @@ var INTERPRETATIONS = [
|
||||
},
|
||||
CSS_RGBA: {
|
||||
read: function read(original) {
|
||||
var test = original.match(/^rgba\(\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*\)/);
|
||||
var test = original.match(/^rgba\(\s*(\S+)\s*,\s*(\S+)\s*,\s*(\S+)\s*,\s*(\S+)\s*\)/);
|
||||
if (test === null) {
|
||||
return false;
|
||||
}
|
||||
@ -1315,13 +1315,13 @@ var ColorController = function (_Controller) {
|
||||
}
|
||||
});
|
||||
dom.bind(_this2.__input, 'blur', onBlur);
|
||||
dom.bind(_this2.__selector, 'mousedown', function () {
|
||||
dom.addClass(this, 'drag').bind(window, 'mouseup', function () {
|
||||
dom.bind(_this2.__selector, 'mousedown', function () {
|
||||
dom.addClass(this, 'drag').bind(window, 'mouseup', function () {
|
||||
dom.removeClass(_this.__selector, 'drag');
|
||||
});
|
||||
});
|
||||
dom.bind(_this2.__selector, 'touchstart', function () {
|
||||
dom.addClass(this, 'drag').bind(window, 'touchend', function () {
|
||||
dom.bind(_this2.__selector, 'touchstart', function () {
|
||||
dom.addClass(this, 'drag').bind(window, 'touchend', function () {
|
||||
dom.removeClass(_this.__selector, 'drag');
|
||||
});
|
||||
});
|
||||
@ -2176,7 +2176,7 @@ function markPresetModified(gui, modified) {
|
||||
function augmentController(gui, li, controller) {
|
||||
controller.__li = li;
|
||||
controller.__gui = gui;
|
||||
Common.extend(controller, {
|
||||
Common.extend(controller, {
|
||||
options: function options(_options) {
|
||||
if (arguments.length > 1) {
|
||||
var nextSibling = controller.__li.nextElementSibling;
|
||||
|
File diff suppressed because one or more lines are too long
4
build/dat.gui.min.js
vendored
4
build/dat.gui.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* dat-gui JavaScript Controller Library
|
||||
* http://code.google.com/p/dat-gui
|
||||
* https://github.com/dataarts/dat.gui
|
||||
*
|
||||
* Copyright 2011 Data Arts Team, Google Creative Lab
|
||||
*
|
||||
@ -216,7 +216,7 @@ var INTERPRETATIONS = [
|
||||
},
|
||||
CSS_RGB: {
|
||||
read: function read(original) {
|
||||
var test = original.match(/^rgb\(\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*\)/);
|
||||
var test = original.match(/^rgb\(\s*(\S+)\s*,\s*(\S+)\s*,\s*(\S+)\s*\)/);
|
||||
if (test === null) {
|
||||
return false;
|
||||
}
|
||||
@ -231,7 +231,7 @@ var INTERPRETATIONS = [
|
||||
},
|
||||
CSS_RGBA: {
|
||||
read: function read(original) {
|
||||
var test = original.match(/^rgba\(\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*,\s*(.+)\s*\)/);
|
||||
var test = original.match(/^rgba\(\s*(\S+)\s*,\s*(\S+)\s*,\s*(\S+)\s*,\s*(\S+)\s*\)/);
|
||||
if (test === null) {
|
||||
return false;
|
||||
}
|
||||
@ -1309,13 +1309,13 @@ var ColorController = function (_Controller) {
|
||||
}
|
||||
});
|
||||
dom.bind(_this2.__input, 'blur', onBlur);
|
||||
dom.bind(_this2.__selector, 'mousedown', function () {
|
||||
dom.addClass(this, 'drag').bind(window, 'mouseup', function () {
|
||||
dom.bind(_this2.__selector, 'mousedown', function () {
|
||||
dom.addClass(this, 'drag').bind(window, 'mouseup', function () {
|
||||
dom.removeClass(_this.__selector, 'drag');
|
||||
});
|
||||
});
|
||||
dom.bind(_this2.__selector, 'touchstart', function () {
|
||||
dom.addClass(this, 'drag').bind(window, 'touchend', function () {
|
||||
dom.bind(_this2.__selector, 'touchstart', function () {
|
||||
dom.addClass(this, 'drag').bind(window, 'touchend', function () {
|
||||
dom.removeClass(_this.__selector, 'drag');
|
||||
});
|
||||
});
|
||||
@ -2170,7 +2170,7 @@ function markPresetModified(gui, modified) {
|
||||
function augmentController(gui, li, controller) {
|
||||
controller.__li = li;
|
||||
controller.__gui = gui;
|
||||
Common.extend(controller, {
|
||||
Common.extend(controller, {
|
||||
options: function options(_options) {
|
||||
if (arguments.length > 1) {
|
||||
var nextSibling = controller.__li.nextElementSibling;
|
||||
|
File diff suppressed because one or more lines are too long
7029
package-lock.json
generated
7029
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "dat.gui",
|
||||
"version": "0.7.7",
|
||||
"version": "0.7.8",
|
||||
"description": "A lightweight graphical user interface for changing variables in JavaScript.",
|
||||
"main": "build/dat.gui.js",
|
||||
"module": "build/dat.gui.module.js",
|
||||
|
Loading…
Reference in New Issue
Block a user