Class: functionsFolder

functionsFolder~functionsFolder(fParent, scales, onFinishChange, options, vectoropt)

new functionsFolder(fParent, scales, onFinishChange, options, vectoropt)

Adds the Functions folder into dat.gui.
Parameters:
Name Type Attributes Description
fParent GUI parent folder for functions folder.
scales Object AxesHelper options.scales for details.
onFinishChange function callback function is called every time, when user have entered new value of the function and the function controller is lost of the focus.
parameter value is new value of the function.
options Options Options instance. The following options are available. See the options parameter of the MyThree class.
Properties
Name Type Attributes Default Description
getLanguageCode function <optional>
language code of your browser returns the "primary language" subtag of the version of the browser.
vector object <optional>
Vector with initial text of the function
Properties
Name Type Attributes Description
x string <optional>
text of the x axis function
y string <optional>
text of the y axis function
z string <optional>
text of the z axis function
Source:

Methods

displayFolder(display)

Display functions folder
Parameters:
Name Type Description
display string | boolean 'block' or true - functions folder is visible.

'none' or false - functions folder is hide.

Source:

setFocus(axisName)

set focus to controller
Parameters:
Name Type Description
axisName string Name of the axis of the controller
Source:

setFunction(_vector)

set the function text
Parameters:
Name Type Description
_vector object vector of the axis functions.
Properties
Name Type Description
x object x axis function.
y object y axis function.
z object z axis function.
Source: