- 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
colorforceCSSHex
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
fncFunction 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
fncFunction This function will be called whenever someone "finishes" changing the value via this Controller.
Returns Controller this
Change the value of object[property]
Parameters
newValueObject 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
fncFunction 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
fncFunction This function will be called whenever someone "finishes" changing the value via this Controller.
Returns Controller this
Change the value of object[property]
Parameters
newValueObject 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
objectproperty
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
fncFunction 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
fncFunction This function will be called whenever someone "finishes" changing the value via this Controller.
Returns Controller this
Change the value of object[property]
Parameters
newValueObject 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
fncFunction 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
fncFunction This function will be called whenever someone "finishes" changing the value via this Controller.
Returns Controller this
Change the value of object[property]
Parameters
newValueObject 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
fncFunction 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
fncFunction This function will be called whenever someone "finishes" changing the value via this Controller.
Returns Controller this
Change the value of object[property]
Parameters
newValueObject 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
fncFunction 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
fncFunction This function will be called whenever someone "finishes" changing the value via this Controller.
Returns Controller this
Change the value of object[property]
Parameters
newValueObject 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
fncFunction 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
fncFunction This function will be called whenever someone "finishes" changing the value via this Controller.
Returns Controller this
Change the value of object[property]
Parameters
newValueObject 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
objectObject The object to be manipulatedpropertystring The name of the property to be manipulated
Parameters
objectObject The object to be manipulatedpropertystring The name of the property to be manipulated
Extends dat.controllers.Controller
Parameters
objectObject The object to be manipulatedpropertystring The name of the property to be manipulated
Extends dat.controllers.Controller
Parameters
objectObject The object to be manipulatedpropertystring The name of the property to be manipulatedparamsObject? Optional parameters
Extends dat.controllers.Controller, dat.controllers.NumberController
Parameters
objectObject The object to be manipulatedpropertystring The name of the property to be manipulatedparamsObject? Optional parameters
Extends dat.controllers.Controller, dat.controllers.NumberController
Parameters
objectObject The object to be manipulatedpropertystring The name of the property to be manipulatedminValueNumber Minimum allowed valuemaxValueNumber Maximum allowed valuestepValueNumber Increment by which to change value
Extends dat.controllers.Controller
Parameters
objectObject The object to be manipulatedpropertystring 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
objectObject The object to be manipulatedpropertystring 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
vminValueNumber The minimum value forobject[property]
Returns dat.controllers.NumberController this
Specify a maximum value for object[property].
Parameters
vmaxValueNumber The maximum value forobject[property]
Returns dat.controllers.NumberController this
Specify a step value that dat.controllers.NumberController increments by.
Parameters
vstepValueNumber 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
vminValueNumber The minimum value forobject[property]
Returns dat.controllers.NumberController this
Specify a maximum value for object[property].
Parameters
vmaxValueNumber The maximum value forobject[property]
Returns dat.controllers.NumberController this
Specify a step value that dat.controllers.NumberController increments by.
Parameters
vstepValueNumber 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
elemselectable
Parameters
elemhorverthorizontal
Parameters
elemeventTypeparsauxparams
Parameters
elemeventfuncnewBoolbool
Parameters
elemeventfuncnewBoolbool
Parameters
elemclassName
Parameters
elemclassName
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
paramsObject?params.nameString? The name of this GUI.params.loadObject? JSON object representing the saved state of this GUI.params.autoBoolean (optional, defaulttrue)params.parentdat.gui.GUI? The GUI I'm nested in.params.closedBoolean? If true, starts closedparams.closeOnTopBoolean? 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
remembering
Parameters
objectproperty
Returns dat.controllers.Controller The new controller that was added.
Parameters
objectproperty
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
guinewDomIf specified, inserts the dom content in the new rowliBeforeIf 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