diff --git a/README.md b/README.md index 149e749..57284a0 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,12 @@ In the terminal, enter the following: $ npm run build ``` +## npm scripts + +- npm test - Run ESLint +- npm run build - Build development and production version of scripts. +- npm run dev - Build development version of script watch for changes. + This will create a namespaced, unminified build of dat.GUI at `build/dat.gui.js` ## Thanks diff --git a/build/dat.gui.js b/build/dat.gui.js index 08beb8b..ad49d20 100644 --- a/build/dat.gui.js +++ b/build/dat.gui.js @@ -54,48 +54,4848 @@ return /******/ (function(modules) { // webpackBootstrap /* 0 */ /***/ function(module, exports, __webpack_require__) { + /** + * dat-gui JavaScript Controller Library + * http://code.google.com/p/dat-gui + * + * Copyright 2011 Data Arts Team, Google Creative Lab + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + */ + 'use strict'; - module.exports = __webpack_require__(1); + exports.__esModule = true; + __webpack_require__(1); + + exports['default'] = __webpack_require__(169); + module.exports = exports['default']; /***/ }, /* 1 */ /***/ function(module, exports, __webpack_require__) { - 'use strict'; - - module.exports = { - color: { - Color: __webpack_require__(2), - math: __webpack_require__(6), - interpret: __webpack_require__(3) - }, - - controllers: { - Controller: __webpack_require__(7), - BooleanController: __webpack_require__(8), - OptionController: __webpack_require__(10), - StringController: __webpack_require__(11), - NumberController: __webpack_require__(12), - NumberControllerBox: __webpack_require__(13), - NumberControllerSlider: __webpack_require__(14), - FunctionController: __webpack_require__(20), - ColorController: __webpack_require__(21) - }, - - dom: { - dom: __webpack_require__(9) - }, - - gui: { - GUI: __webpack_require__(22) - }, - - GUI: __webpack_require__(22) - }; + module.exports = __webpack_require__(2); + /***/ }, /* 2 */ +/***/ function(module, exports, __webpack_require__) { + + module.exports = __webpack_require__(3); + + +/***/ }, +/* 3 */ +/***/ function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(global) {"use strict"; + + __webpack_require__(4); + + __webpack_require__(167); + + if (global._babelPolyfill) { + throw new Error("only one instance of babel/polyfill is allowed"); + } + global._babelPolyfill = true; + /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) + +/***/ }, +/* 4 */ +/***/ function(module, exports, __webpack_require__) { + + __webpack_require__(5); + __webpack_require__(34); + __webpack_require__(42); + __webpack_require__(44); + __webpack_require__(46); + __webpack_require__(48); + __webpack_require__(50); + __webpack_require__(51); + __webpack_require__(52); + __webpack_require__(53); + __webpack_require__(54); + __webpack_require__(55); + __webpack_require__(56); + __webpack_require__(58); + __webpack_require__(59); + __webpack_require__(60); + __webpack_require__(61); + __webpack_require__(62); + __webpack_require__(63); + __webpack_require__(64); + __webpack_require__(65); + __webpack_require__(66); + __webpack_require__(67); + __webpack_require__(69); + __webpack_require__(70); + __webpack_require__(71); + __webpack_require__(73); + __webpack_require__(74); + __webpack_require__(75); + __webpack_require__(76); + __webpack_require__(77); + __webpack_require__(78); + __webpack_require__(79); + __webpack_require__(80); + __webpack_require__(81); + __webpack_require__(82); + __webpack_require__(83); + __webpack_require__(84); + __webpack_require__(85); + __webpack_require__(91); + __webpack_require__(92); + __webpack_require__(94); + __webpack_require__(95); + __webpack_require__(97); + __webpack_require__(98); + __webpack_require__(103); + __webpack_require__(104); + __webpack_require__(107); + __webpack_require__(109); + __webpack_require__(110); + __webpack_require__(111); + __webpack_require__(112); + __webpack_require__(113); + __webpack_require__(115); + __webpack_require__(116); + __webpack_require__(118); + __webpack_require__(119); + __webpack_require__(120); + __webpack_require__(121); + __webpack_require__(126); + __webpack_require__(129); + __webpack_require__(130); + __webpack_require__(132); + __webpack_require__(133); + __webpack_require__(134); + __webpack_require__(135); + __webpack_require__(136); + __webpack_require__(137); + __webpack_require__(138); + __webpack_require__(139); + __webpack_require__(140); + __webpack_require__(141); + __webpack_require__(142); + __webpack_require__(143); + __webpack_require__(145); + __webpack_require__(146); + __webpack_require__(147); + __webpack_require__(148); + __webpack_require__(149); + __webpack_require__(150); + __webpack_require__(152); + __webpack_require__(153); + __webpack_require__(154); + __webpack_require__(155); + __webpack_require__(157); + __webpack_require__(158); + __webpack_require__(160); + __webpack_require__(161); + __webpack_require__(162); + __webpack_require__(165); + __webpack_require__(166); + module.exports = __webpack_require__(16); + +/***/ }, +/* 5 */ +/***/ function(module, exports, __webpack_require__) { + + var $ = __webpack_require__(6) + , SUPPORT_DESC = __webpack_require__(7) + , createDesc = __webpack_require__(8) + , html = __webpack_require__(9) + , cel = __webpack_require__(11) + , has = __webpack_require__(13) + , cof = __webpack_require__(14) + , $def = __webpack_require__(15) + , invoke = __webpack_require__(20) + , arrayMethod = __webpack_require__(21) + , IE_PROTO = __webpack_require__(19)('__proto__') + , isObject = __webpack_require__(12) + , anObject = __webpack_require__(29) + , aFunction = __webpack_require__(26) + , toObject = __webpack_require__(22) + , toInteger = __webpack_require__(28) + , toIndex = __webpack_require__(30) + , toLength = __webpack_require__(27) + , ES5Object = __webpack_require__(23) + , ObjectProto = Object.prototype + , A = [] + , _slice = A.slice + , _join = A.join + , defineProperty = $.setDesc + , getOwnDescriptor = $.getDesc + , defineProperties = $.setDescs + , IE8_DOM_DEFINE = false + , $indexOf = __webpack_require__(31)(false) + , $forEach = arrayMethod(0) + , $map = arrayMethod(1) + , $filter = arrayMethod(2) + , $some = arrayMethod(3) + , $every = arrayMethod(4) + , factories = {} + , $trim = __webpack_require__(32)(/^\s*([\s\S]*\S)?\s*$/, '$1'); + + if(!SUPPORT_DESC){ + try { + IE8_DOM_DEFINE = defineProperty(cel('div'), 'x', + {get: function(){ return 8; }} + ).x == 8; + } catch(e){ /* empty */ } + $.setDesc = function(O, P, Attributes){ + if(IE8_DOM_DEFINE)try { + return defineProperty(O, P, Attributes); + } catch(e){ /* empty */ } + if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!'); + if('value' in Attributes)anObject(O)[P] = Attributes.value; + return O; + }; + $.getDesc = function(O, P){ + if(IE8_DOM_DEFINE)try { + return getOwnDescriptor(O, P); + } catch(e){ /* empty */ } + if(has(O, P))return createDesc(!ObjectProto.propertyIsEnumerable.call(O, P), O[P]); + }; + $.setDescs = defineProperties = function(O, Properties){ + anObject(O); + var keys = $.getKeys(Properties) + , length = keys.length + , i = 0 + , P; + while(length > i)$.setDesc(O, P = keys[i++], Properties[P]); + return O; + }; + } + $def($def.S + $def.F * !SUPPORT_DESC, 'Object', { + // 19.1.2.6 / 15.2.3.3 Object.getOwnPropertyDescriptor(O, P) + getOwnPropertyDescriptor: $.getDesc, + // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) + defineProperty: $.setDesc, + // 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties) + defineProperties: defineProperties + }); + + // IE 8- don't enum bug keys + var keys1 = ('constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,' + + 'toLocaleString,toString,valueOf').split(',') + // Additional keys for getOwnPropertyNames + , keys2 = keys1.concat('length', 'prototype') + , keysLen1 = keys1.length; + + // Create object with `null` prototype: use iframe Object with cleared prototype + var createDict = function(){ + // Thrash, waste and sodomy: IE GC bug + var iframe = cel('iframe') + , i = keysLen1 + , gt = '>' + , iframeDocument; + iframe.style.display = 'none'; + html.appendChild(iframe); + iframe.src = 'javascript:'; // eslint-disable-line no-script-url + // createDict = iframe.contentWindow.Object; + // html.removeChild(iframe); + iframeDocument = iframe.contentWindow.document; + iframeDocument.open(); + iframeDocument.write('