Container
Extends:
Direct Subclass:
Indirect Subclass:
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public set |
|
|
| public get |
children: * |
|
| public |
ctx: * |
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
packflag: * |
|
| public |
|
|
| Private Members | ||
| private |
__background: * |
|
| private |
_mass_prefixstack: *[] |
|
| private |
_menu: * |
|
| private |
_prefixstack: *[] |
|
Method Summary
| Public Methods | ||
| public |
add(child: *): * |
|
| public |
appendChild(child: *): * |
|
| public |
asDialogFooter(): * |
|
| public |
|
|
| public |
changePathPrefix(newprefix: *) recursively change path prefix for all children |
|
| public |
|
|
| public |
checkenum(inpath: *, name: *, packflag: *, enummap: *, defaultval: *, callback: *, iconmap: *, mass_set_path: *): * |
|
| public |
checkenum_panel(inpath: *, name: *, packflag: number, callback: *, mass_set_path: *, prop: *): * |
|
| public |
|
|
| public |
|
|
| public |
colorPicker(inpath: *, packflag_or_args: number, mass_set_path: *, themeOverride: *): * |
|
| public |
colorbutton(inpath: *, packflag: *, mass_set_path: *): * |
|
| public |
|
|
| public |
dynamicMenu(title: *, list: *, packflag: number): * |
|
| public |
getroot(): * |
|
| public |
helppicker(): * makes a button for a help picker tool to view tooltips on mobile devices |
|
| public |
iconbutton(icon: *, description: *, cb: *, thisvar: *, packflag: number): * |
|
| public |
iconcheck(inpath: *, icon: *, name: *, mass_set_path: *): * |
|
| public |
init() |
|
| public |
insert(i: *, ch: *) |
|
| public |
label(text: *): * |
|
| public |
|
|
| public |
listen() |
|
| public |
listenum(inpath: *, name: *, enumDef: *, defaultval: *, callback: *, iconmap: *, packflag: number): * |
|
| public |
load() |
|
| public |
loadData(obj: *) |
|
| public |
loadJSON(obj: *): * |
|
| public |
loadVisibility(): * |
|
| public |
example usage: |
|
| public |
noMarginsOrPadding(): * |
|
| public |
|
|
| public |
oneAxisMargin(m: *, m2: number): * tries to set margin along one axis only in smart manner |
|
| public |
oneAxisPadding(axisPadding: *, otherPadding: number): * tries to set padding along one axis only in smart manner |
|
| public |
overrideDefault(key: *, val: *): * |
|
| public |
|
|
| public |
|
|
| public |
popDataPrefix(): * |
|
| public |
popMassSetPrefix(): * |
|
| public |
prepend(child: *) |
|
| public |
|
|
| public |
pushDataPrefix(val: *): * |
|
| public |
pushMassSetPrefix(val: *): * |
|
| public |
|
|
| public |
removeChild(child: *, trigger_on_destroy: boolean): * |
|
| public |
reverse(): * |
|
| public |
|
|
| public |
save() |
|
| public |
saveData(): {} |
|
| public |
saveVisibility(): * |
|
| public |
setCSS() |
|
| public |
setMargin(m: *): * |
|
| public |
setPadding(m: *): * |
|
| public |
setSize(width: *, height: *): * |
|
| public |
simpleslider(inpath: *, name: *, defaultval: *, min: *, max: *, step: *, is_int: *, do_redraw: *, callback: *, packflag: number): * |
|
| public |
slider(inpath: *, name: *, defaultval: *, min: *, max: *, step: *, is_int: *, do_redraw: *, callback: *, packflag: number): * usage: .slider(inpath, { name : bleh, defaultval : number, etc... |
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
toJSON(): * |
|
| public |
tool(path_or_cls: *, packflag_or_args: {}, createCb: *, label: *): * |
|
| public |
toolPanel(path_or_cls: *, args: {}): * |
|
| public |
treeview(): * |
|
| public |
|
|
| public |
update() |
|
| public |
Returns previous icon flags |
|
| public |
|
|
| public |
html5 viewer |
|
| public |
|
|
| Private Methods | ||
| private |
|
|
| private |
_container_inherit(elem: *, packflag: number) |
|
| private |
_getMassPath(ctx: *, inpath: *, mass_set_path: *): * |
|
| private |
_joinPrefix(path: *, prefix: *): * |
|
| private |
|
|
| private |
_prepend(child: *): * |
|
Static Public Methods
Public Constructors
public constructor() source
Public Members
public set background source
public get children: * source
public ctx: * source
public packflag: * source
Private Members
private __background: * source
private _mass_prefixstack: *[] source
private _menu: * source
private _prefixstack: *[] source
Public Methods
public button(label: *, cb: *, thisvar: *, id: *, packflag: number): * source
Params:
| Name | Type | Attribute | Description |
| label | * | ||
| cb | * | ||
| thisvar | * | ||
| id | * | ||
| packflag | number |
|
Return:
| * |
public changePathPrefix(newprefix: *) source
recursively change path prefix for all children
Params:
| Name | Type | Attribute | Description |
| newprefix | * |
public check(inpath: *, name: *, packflag: number, mass_set_path: *): * source
Params:
| Name | Type | Attribute | Description |
| inpath | * | ||
| name | * | ||
| packflag | number |
|
|
| mass_set_path | * |
|
Return:
| * |
public checkenum(inpath: *, name: *, packflag: *, enummap: *, defaultval: *, callback: *, iconmap: *, mass_set_path: *): * source
Params:
| Name | Type | Attribute | Description |
| inpath | * | ||
| name | * | ||
| packflag | * | ||
| enummap | * | ||
| defaultval | * | ||
| callback | * | ||
| iconmap | * | ||
| mass_set_path | * |
Return:
| * |
public checkenum_panel(inpath: *, name: *, packflag: number, callback: *, mass_set_path: *, prop: *): * source
Params:
| Name | Type | Attribute | Description |
| inpath | * | ||
| name | * | ||
| packflag | number |
|
|
| callback | * |
|
|
| mass_set_path | * |
|
|
| prop | * |
|
Return:
| * |
public clear(trigger_on_destroy: boolean) source
Params:
| Name | Type | Attribute | Description |
| trigger_on_destroy | boolean |
|
public col(packflag: number): * source
Params:
| Name | Type | Attribute | Description |
| packflag | number |
|
Return:
| * |
public colorPicker(inpath: *, packflag_or_args: number, mass_set_path: *, themeOverride: *): * source
Params:
| Name | Type | Attribute | Description |
| inpath | * | ||
| packflag_or_args | number |
|
|
| mass_set_path | * |
|
|
| themeOverride | * |
|
Return:
| * |
public colorbutton(inpath: *, packflag: *, mass_set_path: *): * source
Params:
| Name | Type | Attribute | Description |
| inpath | * | ||
| packflag | * | ||
| mass_set_path | * |
|
Return:
| * |
public curve1d(inpath: *, packflag: number, mass_set_path: *): * source
Params:
| Name | Type | Attribute | Description |
| inpath | * | ||
| packflag | number |
|
|
| mass_set_path | * |
|
Return:
| * |
public dynamicMenu(title: *, list: *, packflag: number): * source
Params:
| Name | Type | Attribute | Description |
| title | * | ||
| list | * | ||
| packflag | number |
|
Return:
| * |
public helppicker(): * source
makes a button for a help picker tool to view tooltips on mobile devices
Return:
| * |
public iconbutton(icon: *, description: *, cb: *, thisvar: *, packflag: number): * source
Params:
| Name | Type | Attribute | Description |
| icon | * | ||
| description | * | ||
| cb | * | ||
| thisvar | * | ||
| packflag | number |
|
Return:
| * |
public iconcheck(inpath: *, icon: *, name: *, mass_set_path: *): * source
Params:
| Name | Type | Attribute | Description |
| inpath | * | ||
| icon | * | ||
| name | * | ||
| mass_set_path | * |
Return:
| * |
public init() source
public insert(i: *, ch: *) source
Params:
| Name | Type | Attribute | Description |
| i | * | ||
| ch | * |
public listbox(packflag: number): * source
Params:
| Name | Type | Attribute | Description |
| packflag | number |
|
Return:
| * |
public listen() source
public listenum(inpath: *, name: *, enumDef: *, defaultval: *, callback: *, iconmap: *, packflag: number): * source
Params:
| Name | Type | Attribute | Description |
| inpath | * | ||
| name | * | ||
| enumDef | * | ||
| defaultval | * | ||
| callback | * | ||
| iconmap | * | ||
| packflag | number |
|
Return:
| * |
public load() source
public loadData(obj: *) source
Params:
| Name | Type | Attribute | Description |
| obj | * |
public menu(title: *, list: *, packflag: number): * source
example usage:
.menu([ "some_tool_path.tool()|CustomLabel", ui_widgets.Menu.SEP, "some_tool_path.another_tool()", ["Name", () => {console.log("do something")}] ])
Params:
| Name | Type | Attribute | Description |
| title | * | ||
| list | * | ||
| packflag | number |
|
Return:
| * |
public noteframe(packflag: number): * source
Params:
| Name | Type | Attribute | Description |
| packflag | number |
|
Return:
| * |
public oneAxisMargin(m: *, m2: number): * source
tries to set margin along one axis only in smart manner
Params:
| Name | Type | Attribute | Description |
| m | * |
|
|
| m2 | number |
|
Return:
| * |
public oneAxisPadding(axisPadding: *, otherPadding: number): * source
tries to set padding along one axis only in smart manner
Params:
| Name | Type | Attribute | Description |
| axisPadding | * |
|
|
| otherPadding | number |
|
Return:
| * |
public overrideDefault(key: *, val: *): * source
Params:
| Name | Type | Attribute | Description |
| key | * | ||
| val | * |
Return:
| * |
public panel(name: *, id: *, packflag: number, tooltip: *): * source
Params:
| Name | Type | Attribute | Description |
| name | * | ||
| id | * | ||
| packflag | number |
|
|
| tooltip | * |
|
Return:
| * |
public prepend(child: *) source
Params:
| Name | Type | Attribute | Description |
| child | * |
public prop(inpath: *, packflag: number, mass_set_path: *): * source
Params:
| Name | Type | Attribute | Description |
| inpath | * | ||
| packflag | number |
|
|
| mass_set_path | * |
|
Return:
| * |
public redrawCurves() source
public removeChild(child: *, trigger_on_destroy: boolean): * source
Params:
| Name | Type | Attribute | Description |
| child | * | ||
| trigger_on_destroy | boolean |
|
Return:
| * |
public row(packflag: number): * source
Params:
| Name | Type | Attribute | Description |
| packflag | number |
|
Return:
| * |
public save() source
public setCSS() source
public setSize(width: *, height: *): * source
Params:
| Name | Type | Attribute | Description |
| width | * | ||
| height | * |
Return:
| * |
public simpleslider(inpath: *, name: *, defaultval: *, min: *, max: *, step: *, is_int: *, do_redraw: *, callback: *, packflag: number): * source
Params:
| Name | Type | Attribute | Description |
| inpath | * | ||
| name | * | ||
| defaultval | * | ||
| min | * | ||
| max | * | ||
| step | * | ||
| is_int | * | ||
| do_redraw | * | ||
| callback | * | ||
| packflag | number |
|
Return:
| * |
public slider(inpath: *, name: *, defaultval: *, min: *, max: *, step: *, is_int: *, do_redraw: *, callback: *, packflag: number): * source
usage: .slider(inpath, { name : bleh, defaultval : number, etc... });
Params:
| Name | Type | Attribute | Description |
| inpath | * | ||
| name | * | ||
| defaultval | * | ||
| min | * | ||
| max | * | ||
| step | * | ||
| is_int | * | ||
| do_redraw | * | ||
| callback | * | ||
| packflag | number |
|
Return:
| * |
public table(packflag: number): * source
Params:
| Name | Type | Attribute | Description |
| packflag | number |
|
Return:
| * |
public textbox(inpath: *, text: *, cb: *, packflag: number): * source
Params:
| Name | Type | Attribute | Description |
| inpath | * | ||
| text | * | ||
| cb | * |
|
|
| packflag | number |
|
Return:
| * |
public tool(path_or_cls: *, packflag_or_args: {}, createCb: *, label: *): * source
Params:
| Name | Type | Attribute | Description |
| path_or_cls | * | ||
| packflag_or_args | {} |
|
|
| createCb | * |
|
|
| label | * |
|
Return:
| * |
public toolPanel(path_or_cls: *, args: {}): * source
Params:
| Name | Type | Attribute | Description |
| path_or_cls | * | ||
| args | {} |
|
Return:
| * |
public update() source
public useIcons(enabled_or_sheet: boolean): * source
Returns previous icon flags
Params:
| Name | Type | Attribute | Description |
| enabled_or_sheet | boolean |
|
Return:
| * |
public vecpopup(inpath: *, packflag: number, mass_set_path: *): * source
Params:
| Name | Type | Attribute | Description |
| inpath | * | ||
| packflag | number |
|
|
| mass_set_path | * |
|
Return:
| * |
public viewer(datapath: *, value: string, packflag: number, mass_set_path: *): * source
html5 viewer
Return:
| * |
public wrap(mode:: *): Container source
Params:
| Name | Type | Attribute | Description |
| mode: | * | flexbox wrap mode, can be wrap, nowrap, or wrap-reverse |
Private Methods
private _add(child: *, prepend: boolean): * source
Params:
| Name | Type | Attribute | Description |
| child | * | ||
| prepend | boolean |
|
Return:
| * |
private _container_inherit(elem: *, packflag: number) source
Params:
| Name | Type | Attribute | Description |
| elem | * | ||
| packflag | number |
|
private _getMassPath(ctx: *, inpath: *, mass_set_path: *): * source
Params:
| Name | Type | Attribute | Description |
| ctx | * | ||
| inpath | * | ||
| mass_set_path | * |
Return:
| * |
private _joinPrefix(path: *, prefix: *): * source
Params:
| Name | Type | Attribute | Description |
| path | * | ||
| prefix | * |
|
Return:
| * |
