CS559 3D World Framework Code
Simple, automatic UI from an object with properly declared parameters
Classes
Type Definitions
AutoUIOptions
AutoUI options for world-scoped UI assembly.
World-level defaults come from GrWorld.setAutoUIOptions(...).
Per-object overrides can be supplied here when constructing AutoUI.
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
world |
GrWorld |
<optional> |
world that owns UI policy and shared GUI root |
|
width |
number |
<optional> |
300 | panel width |
where |
InputHelpers.WhereSpec |
<optional> |
explicit container (overrides world default) |
|
widthdiv |
number |
<optional> |
1 | panel width subdivision |
adjusted |
boolean |
<optional> |
false | adjust label widths for sliders |
useLilGUI |
boolean |
<optional> |
true | true for lil-gui controls, false for div/slider controls |
labelDisplay |
string |
<optional> |
"inline-block" | CSS display style for slider labels in div mode |
guiPlacement |
"where" | "floating" | "canvas-overlay" |
<optional> |
"canvas-overlay" | lil-gui placement strategy |