diff --git a/README.md b/README.md
index 28fad05..4d30a63 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,13 @@
dat-gui creates an interface that you can use to modify variables with very little code.
+[ Basic Usage ]( #basic-usage ) •
+[ Limits ]( #limits ) •
+[ Colors ]( #colors ) •
+[ Events ]( #events ) •
+[ Folders ]( #folders ) •
+[ Saving ]( #saving )
+
### Basic Usage
Download the [minified library]( todo ) and include it in your html.
@@ -20,7 +27,7 @@ gui.add( object, 'booleanProperty' ); // Check box
gui.add( object, 'functionProperty' ); // Button
```
-### Limiting Input
+### Limits
You can specify limits on numbers. A number with a min and max value becomes a slider.
@@ -40,7 +47,7 @@ gui.add( text, 'message', [ 'pizza', 'chrome', 'hooray' ] );
gui.add( text, 'speed', { Stopped: 0, Slow: 0.1, Fast: 5 } );
```
-### Color Controllers
+### Colors
dat-gui has a color selector and understands many different representations of color. The following creates color controllers for color variables of different formats.
@@ -77,7 +84,7 @@ controller.onFinishChange(function(value) {
});
```
-### Folders & Comments
+### Folders
You can nest as many dat-gui as you want. Nested dat-gui act as collapsible folders.
@@ -101,7 +108,7 @@ The comment method adds a tooltip to a controller.
f2.add(text, 'message').comment( 'This is the comment.' );
```
-### Saving Values
+### Saving
Add a save menu to the interface by calling `gui.remember` on all the objects you've added to the Gui.
diff --git a/TODO b/TODO
index fb44361..5fb1956 100644
--- a/TODO
+++ b/TODO
@@ -1,10 +1,37 @@
+BUILD
+
+- [x] single import
+
+DOCS
+
+- [ ] table of contents ( is going to be really long )
+
+STYLE
+
+- [ ] sharing more styles
+- [ ] css linter?
+
+- [ ] touch styles: bigger please!
+- [ ] kill hover behavior if touch
+
+CLEANLINESS
+
- [ ] can gui-row be baked into base-controller somehow?
+- [ ] strip component-slider from number-controller
+- [ ] strip component-input from number-controller, unify with string-controller
+
+PARITY
- [ ] folders
-
- [ ] function controller
- [ ] color controller
-
- [x] string controller
- [x] boolean controller
+
+- [ ] remember
+ - [ ] presets
+
+NEW FEATURES
+
+- [ ] save server
\ No newline at end of file
diff --git a/build/gui.html b/build/gui.html
index f4dd94c..81c2844 100644
--- a/build/gui.html
+++ b/build/gui.html
@@ -10,11 +10,11 @@ var e,f,g,h=b.type;if("load"===h&&!b.bubbles){var i=c;i instanceof Q.Document&&(
{{ name }}
{{ comment }}
{{ open ? 'Close' : 'Open' }} Controls
+},_register:function(){c(this.extends)&&!b(this.extends)&&console.warn("%s is attempting to extend %s, an unregistered element or one that was not registered with Polymer.",this.name,this.extends),this.register(this.name,this.extends),this.registered=!0},waitingForPrototype:function(a){return h(a)?void 0:(i(a,this),this.handleNoScript(a),!0)},handleNoScript:function(a){this.hasAttribute("noscript")&&!this.noscript&&(this.noscript=!0,Polymer(a))},waitingForResources:function(){return this._needsResources},waitingForQueue:function(){return f.enqueue(this,this.registerWhenReady,this._register)},loadResources:function(){this._needsResources=!0,this.loadStyles(function(){this._needsResources=!1,this.registerWhenReady()}.bind(this))}});e.publish(e.declaration,j),g(function(){document.body.removeAttribute("unresolved"),document.dispatchEvent(new CustomEvent("polymer-ready",{bubbles:!0}))}),document.registerElement("polymer-element",{prototype:j})}(Polymer),function(){var a=document.createElement("polymer-element");a.setAttribute("name","auto-binding"),a.setAttribute("extends","template"),a.init(),Polymer("auto-binding",{createdCallback:function(){this.syntax=this.bindingDelegate=this.makeSyntax(),Polymer.whenPolymerReady(function(){this.model=this,this.setAttribute("bind",""),this.async(function(){this.marshalNodeReferences(this.parentNode),this.fire("template-bound")})}.bind(this))},makeSyntax:function(){var a=Object.create(Polymer.api.declaration.events),b=this;a.findController=function(){return b.model};var c=new PolymerExpressions,d=c.prepareBinding;return c.prepareBinding=function(b,e,f){return a.prepareEventBinding(b,e,f)||d.call(c,b,e,f)},c}})}();
{{ name }}
{{ comment }}
{{ open ? 'Close' : 'Open' }} Controls
undefined
-
-
+
+
\ No newline at end of file
diff --git a/build/gui.js b/build/gui.js
index 18aa86b..35f1233 100644
--- a/build/gui.js
+++ b/build/gui.js
@@ -10,11 +10,11 @@ document.write(['
{{ name }}
{{ comment }}
{{ open ? 'Close' : 'Open' }} Controls
',
+'},_register:function(){c(this.extends)&&!b(this.extends)&&console.warn("%s is attempting to extend %s, an unregistered element or one that was not registered with Polymer.",this.name,this.extends),this.register(this.name,this.extends),this.registered=!0},waitingForPrototype:function(a){return h(a)?void 0:(i(a,this),this.handleNoScript(a),!0)},handleNoScript:function(a){this.hasAttribute("noscript")&&!this.noscript&&(this.noscript=!0,Polymer(a))},waitingForResources:function(){return this._needsResources},waitingForQueue:function(){return f.enqueue(this,this.registerWhenReady,this._register)},loadResources:function(){this._needsResources=!0,this.loadStyles(function(){this._needsResources=!1,this.registerWhenReady()}.bind(this))}});e.publish(e.declaration,j),g(function(){document.body.removeAttribute("unresolved"),document.dispatchEvent(new CustomEvent("polymer-ready",{bubbles:!0}))}),document.registerElement("polymer-element",{prototype:j})}(Polymer),function(){var a=document.createElement("polymer-element");a.setAttribute("name","auto-binding"),a.setAttribute("extends","template"),a.init(),Polymer("auto-binding",{createdCallback:function(){this.syntax=this.bindingDelegate=this.makeSyntax(),Polymer.whenPolymerReady(function(){this.model=this,this.setAttribute("bind",""),this.async(function(){this.marshalNodeReferences(this.parentNode),this.fire("template-bound")})}.bind(this))},makeSyntax:function(){var a=Object.create(Polymer.api.declaration.events),b=this;a.findController=function(){return b.model};var c=new PolymerExpressions,d=c.prepareBinding;return c.prepareBinding=function(b,e,f){return a.prepareEventBinding(b,e,f)||d.call(c,b,e,f)},c}})}();
{{ name }}
{{ comment }}
{{ open ? 'Close' : 'Open' }} Controls
',
'
undefined
',
'',
'',
-'
',
-'
',
+'
',
+'
',
'
',
'
',].join("\n"))
\ No newline at end of file
diff --git a/elements/controller-function/controller-function.html b/elements/controller-function/controller-function.html
index 8d40c71..21886fa 100644
--- a/elements/controller-function/controller-function.html
+++ b/elements/controller-function/controller-function.html
@@ -12,8 +12,7 @@
-