- interpret
- toString
- toString
- tmpComponent
- Controller
- Controller
- Controller
- Controller
- Controller
- Controller
- Controller
- dat.controllers
- dat.controllers
- dat.controllers
- dat.controllers
- dat.controllers
- dat.controllers
- dat.controllers
- dat.controllers
- OptionController
- NumberController
- NumberController
- dom
- hide
- common
- dat.dom
- css
- css
- CSS_NAMESPACE
- CLOSE_BUTTON_HEIGHT
- autoPlaceVirgin
- autoPlaceContainer
- hide
- hideableGuis
- dat.gui
- domElement
- parent
- autoPlace
- closeOnTop
- preset
- width
- name
- closed
- load
- useLocalStorage
- add
- addColor
- remove
- addFolder
- remember
- getRoot
- getSaveObject
- addRow
- Color
- ARR_EACH
- Common
- requestAnimationFrame
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
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
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
Parameters
color
forceCSSHex
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
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
Those who extend this class will put their DOM elements in here.
The object to manipulate
The name of the property to manipulate
Specify that a function fire every time someone changes the value with this Controller.
Parameters
fnc
Function This function will be called whenever the value is modified via this Controller.
Returns Controller this
Specify that a function fire every time someone "finishes" changing the value wih this Controller. Useful for values that change incrementally like numbers or strings.
Parameters
fnc
Function This function will be called whenever someone "finishes" changing the value via this Controller.
Returns Controller this
Change the value of object[property]
Parameters
newValue
Object The new value ofobject[property]
Gets the value of object[property]
Returns Object The current value of object[property]
Refreshes the visual display of a Controller in order to keep sync with the object's current value.
Returns Controller this
Returns Boolean true if the value has deviated from initialValue
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
Those who extend this class will put their DOM elements in here.
The object to manipulate
The name of the property to manipulate
Specify that a function fire every time someone changes the value with this Controller.
Parameters
fnc
Function This function will be called whenever the value is modified via this Controller.
Returns Controller this
Specify that a function fire every time someone "finishes" changing the value wih this Controller. Useful for values that change incrementally like numbers or strings.
Parameters
fnc
Function This function will be called whenever someone "finishes" changing the value via this Controller.
Returns Controller this
Change the value of object[property]
Parameters
newValue
Object The new value ofobject[property]
Gets the value of object[property]
Returns Object The current value of object[property]
Refreshes the visual display of a Controller in order to keep sync with the object's current value.
Returns Controller this
Returns Boolean true if the value has deviated from initialValue
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
Parameters
object
property
Those who extend this class will put their DOM elements in here.
The object to manipulate
The name of the property to manipulate
Specify that a function fire every time someone changes the value with this Controller.
Parameters
fnc
Function This function will be called whenever the value is modified via this Controller.
Returns Controller this
Specify that a function fire every time someone "finishes" changing the value wih this Controller. Useful for values that change incrementally like numbers or strings.
Parameters
fnc
Function This function will be called whenever someone "finishes" changing the value via this Controller.
Returns Controller this
Change the value of object[property]
Parameters
newValue
Object The new value ofobject[property]
Gets the value of object[property]
Returns Object The current value of object[property]
Refreshes the visual display of a Controller in order to keep sync with the object's current value.
Returns Controller this
Returns Boolean true if the value has deviated from initialValue
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
Those who extend this class will put their DOM elements in here.
The object to manipulate
The name of the property to manipulate
Specify that a function fire every time someone changes the value with this Controller.
Parameters
fnc
Function This function will be called whenever the value is modified via this Controller.
Returns Controller this
Specify that a function fire every time someone "finishes" changing the value wih this Controller. Useful for values that change incrementally like numbers or strings.
Parameters
fnc
Function This function will be called whenever someone "finishes" changing the value via this Controller.
Returns Controller this
Change the value of object[property]
Parameters
newValue
Object The new value ofobject[property]
Gets the value of object[property]
Returns Object The current value of object[property]
Refreshes the visual display of a Controller in order to keep sync with the object's current value.
Returns Controller this
Returns Boolean true if the value has deviated from initialValue
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
Those who extend this class will put their DOM elements in here.
The object to manipulate
The name of the property to manipulate
Specify that a function fire every time someone changes the value with this Controller.
Parameters
fnc
Function This function will be called whenever the value is modified via this Controller.
Returns Controller this
Specify that a function fire every time someone "finishes" changing the value wih this Controller. Useful for values that change incrementally like numbers or strings.
Parameters
fnc
Function This function will be called whenever someone "finishes" changing the value via this Controller.
Returns Controller this
Change the value of object[property]
Parameters
newValue
Object The new value ofobject[property]
Gets the value of object[property]
Returns Object The current value of object[property]
Refreshes the visual display of a Controller in order to keep sync with the object's current value.
Returns Controller this
Returns Boolean true if the value has deviated from initialValue
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
Those who extend this class will put their DOM elements in here.
The object to manipulate
The name of the property to manipulate
Specify that a function fire every time someone changes the value with this Controller.
Parameters
fnc
Function This function will be called whenever the value is modified via this Controller.
Returns Controller this
Specify that a function fire every time someone "finishes" changing the value wih this Controller. Useful for values that change incrementally like numbers or strings.
Parameters
fnc
Function This function will be called whenever someone "finishes" changing the value via this Controller.
Returns Controller this
Change the value of object[property]
Parameters
newValue
Object The new value ofobject[property]
Gets the value of object[property]
Returns Object The current value of object[property]
Refreshes the visual display of a Controller in order to keep sync with the object's current value.
Returns Controller this
Returns Boolean true if the value has deviated from initialValue
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
Those who extend this class will put their DOM elements in here.
The object to manipulate
The name of the property to manipulate
Specify that a function fire every time someone changes the value with this Controller.
Parameters
fnc
Function This function will be called whenever the value is modified via this Controller.
Returns Controller this
Specify that a function fire every time someone "finishes" changing the value wih this Controller. Useful for values that change incrementally like numbers or strings.
Parameters
fnc
Function This function will be called whenever someone "finishes" changing the value via this Controller.
Returns Controller this
Change the value of object[property]
Parameters
newValue
Object The new value ofobject[property]
Gets the value of object[property]
Returns Object The current value of object[property]
Refreshes the visual display of a Controller in order to keep sync with the object's current value.
Returns Controller this
Returns Boolean true if the value has deviated from initialValue
Extends dat.controllers.Controller
Parameters
object
Object The object to be manipulatedproperty
string The name of the property to be manipulated
Parameters
object
Object The object to be manipulatedproperty
string The name of the property to be manipulated
Extends dat.controllers.Controller
Parameters
object
Object The object to be manipulatedproperty
string The name of the property to be manipulated
Extends dat.controllers.Controller
Parameters
object
Object The object to be manipulatedproperty
string The name of the property to be manipulatedparams
Object? Optional parameters
Extends dat.controllers.Controller, dat.controllers.NumberController
Parameters
object
Object The object to be manipulatedproperty
string The name of the property to be manipulatedparams
Object? Optional parameters
Extends dat.controllers.Controller, dat.controllers.NumberController
Parameters
object
Object The object to be manipulatedproperty
string The name of the property to be manipulatedminValue
Number Minimum allowed valuemaxValue
Number Maximum allowed valuestepValue
Number Increment by which to change value
Extends dat.controllers.Controller
Parameters
object
Object The object to be manipulatedproperty
string The name of the property to be manipulatedoptions
(Object | Array<string>) A map of labels to acceptable values, or a list of acceptable string values.
Extends dat.controllers.Controller
Parameters
object
Object The object to be manipulatedproperty
string The name of the property to be manipulated
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
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
Specify a minimum value for object[property]
.
Parameters
v
minValue
Number The minimum value forobject[property]
Returns dat.controllers.NumberController this
Specify a maximum value for object[property]
.
Parameters
v
maxValue
Number The maximum value forobject[property]
Returns dat.controllers.NumberController this
Specify a step value that dat.controllers.NumberController increments by.
Parameters
v
stepValue
Number The step value for dat.controllers.NumberController
Returns dat.controllers.NumberController this
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
Specify a minimum value for object[property]
.
Parameters
v
minValue
Number The minimum value forobject[property]
Returns dat.controllers.NumberController this
Specify a maximum value for object[property]
.
Parameters
v
maxValue
Number The maximum value forobject[property]
Returns dat.controllers.NumberController this
Specify a step value that dat.controllers.NumberController increments by.
Parameters
v
stepValue
Number The step value for dat.controllers.NumberController
Returns dat.controllers.NumberController this
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
Parameters
elem
selectable
Parameters
elem
hor
vert
horizontal
Parameters
elem
eventType
pars
aux
params
Parameters
elem
event
func
newBool
bool
Parameters
elem
event
func
newBool
bool
Parameters
elem
className
Parameters
elem
className
Parameters
elem
Parameters
elem
Parameters
el
Parameters
elem
Hide centered div
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
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
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
Outer-most className for GUI's
Type: string
The only value shared between the JS and SCSS. Use caution.
Type: number
Have we yet to create an autoPlace GUI?
Fixed position div that auto place GUI's go inside
Are we hiding the GUI's ?
GUI's which should be hidden
A lightweight controller library for JavaScript. It allows you to easily manipulate variables and fire functions on the fly.
Parameters
params
Object?params.name
String? The name of this GUI.params.load
Object? JSON object representing the saved state of this GUI.params.auto
Boolean (optional, defaulttrue
)params.parent
dat.gui.GUI? The GUI I'm nested in.params.closed
Boolean? If true, starts closedparams.closeOnTop
Boolean? If true, close/open button shows on top of the GUI
Outermost DOM Element
The parent GUI
Handles GUI
's element placement for you
Handles GUI
's position of open/close button
The identifier for a set of saved values
The width of GUI
element
The name of GUI
. Used for folders. i.e
a folder's name
Whether the GUI
is collapsed or not
Contains all presets
Determines whether or not to use localStorage as the means for
remember
ing
Parameters
object
property
Returns dat.controllers.Controller The new controller that was added.
Parameters
object
property
Returns dat.controllers.ColorController The new controller that was added.
Parameters
controller
Parameters
-
name
-
Throws Error if this GUI already has a folder by the specified name
Returns dat.gui.GUI The new folder.
Mark objects for saving. The order of these objects cannot change as the GUI grows. When remembering new objects, append them to the end of the list.
- Throws Error if not called on a top level GUI.
Returns dat.gui.GUI the topmost parent GUI of a nested GUI.
Returns Object a JSON object representing the current state of this GUI as well as its remembered properties.
Add a row to the end of the GUI or before another row.
Parameters
gui
newDom
If specified, inserts the dom content in the new rowliBefore
If specified, places the new row before another row
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
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
Band-aid methods for things that should be a lot easier in JavaScript. Implementation and structure inspired by underscore.js http://documentcloud.github.com/underscore/
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
Parameters
callback