Constructor
new AutoUI(object, optionsopt)
Create a UI panel for a GrObject
UI layout defaults are world-scoped. The object declares its parameters, while the world controls overall panel placement and style.
This does place the panel into the DOM (onto the web page)
using insertElement in the CS559 helper library. The place
it is placed is controlled the where parameter. By default,
it is taken from the world's AutoUI options.
Compact slider usage (no lil-gui):
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
object |
GrObject | ||
options |
AutoUIOptions |
<optional> |
Examples
new AutoUI(obj, {
world,
where: panel,
useLilGUI: false,
labelDisplay: "inline"
});
Default lil-gui usage:
new AutoUI(obj, {
world,
where: panel
});
Members
controllers :Array.<any>|undefined
Type:
- Array.<any> | undefined
pendingSetOps :Array.<Object>
Type:
- Array.<Object>
Methods
set(param, value)
Parameters:
| Name | Type | Description |
|---|---|---|
param |
number | string | |
value |
number |