import {DataPath} from './scripts/path-controller/controller/controller_base.js'
DataPath
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
apiname: * |
|
public |
data: * |
|
public |
|
|
public |
getSet: {"get": *, "set": *} |
|
public |
path: * |
|
public |
propGetter: * |
|
public |
struct: * |
|
public |
type: * |
|
public |
ui_name_get: * |
Method Summary
Public Methods | ||
public |
baseUnit(unit: *): * |
|
public |
copy(): * |
|
public |
customGet(get: *): * |
|
public |
customGetSet(get: *, set: *): * For the callbacks 'this' points to an internal ToolProperty; Referencing object lives in 'this.dataref'; calling context in 'this.ctx'; and the datapath is 'this.datapath' |
|
public |
customPropCallback(callback: *): * used to override tool property settings, e.g. |
|
public |
customSet(set: *): * |
|
public |
decimalPlaces(n: *): * |
|
public |
description(d: *): * |
|
public |
descriptions(description_map: *): * |
|
public |
displayUnit(unit: *): * |
|
public |
editAsBaseUnit(): * |
|
public |
expRate(exp: *): * |
|
public |
fullSaveUndo(): * Tell DataPathSetOp to save/load entire app state for undo/redo |
|
public |
icon(i: *): * |
|
public |
icon2(i: *): * |
|
public |
icons(icons: *): * |
|
public |
icons2(icons: *): * secondary icons (e.g. |
|
public |
noUndo(): * this property should not be treated as something that should be kept track off in the undo stack |
|
public |
noUnits(): * |
|
public |
off(type: *, cb: *) |
|
public |
on(type: *, cb: *): * db will be executed with underlying data object that contains this path in 'this.dataref' |
|
public |
radix(r: *): * |
|
public |
range(min: *, max: *): * |
|
public |
readOnly(): * |
|
public |
read_only(): * |
|
public |
relativeStep(s: *): * |
|
public |
rollerSlider(): * |
|
public |
setProp(prop: *) |
|
public |
simpleSlider(): * |
|
public |
slideSpeed(speed: *): * |
|
public |
step(s: *): * |
|
public |
uiNameGetter(func: *): * like other callbacks (until I refactor it), func will be called with a mysterious object that stores the following properties: |
|
public |
uiNames(uinames: *): * |
|
public |
uiRange(min: *, max: *): * |
|
public |
uniformSlider(state: boolean): * adds a slider for moving vector component sliders simultaneously |
|
public |
unit(unit: *): * |
Public Constructors
public constructor() source
Public Members
public apiname: * source
public data: * source
public getSet: {"get": *, "set": *} source
public path: * source
public propGetter: * source
public struct: * source
public type: * source
public ui_name_get: * source
Public Methods
public customGetSet(get: *, set: *): * source
For the callbacks 'this' points to an internal ToolProperty; Referencing object lives in 'this.dataref'; calling context in 'this.ctx'; and the datapath is 'this.datapath'
Params:
Name | Type | Attribute | Description |
get | * | ||
set | * |
Return:
* |
public customPropCallback(callback: *): * source
used to override tool property settings, e.g. ranges, units, etc; returns a base class instance of ToolProperty.
The this context points to the original ToolProperty and contains a few useful references:
this.dataref - an object instance of this struct type this.ctx - a context
callback takes one argument, a new (freshly copied of original) tool property to modify
Params:
Name | Type | Attribute | Description |
callback | * |
Return:
* |
public descriptions(description_map: *): * source
Params:
Name | Type | Attribute | Description |
description_map | * |
Return:
* |
public fullSaveUndo(): * source
Tell DataPathSetOp to save/load entire app state for undo/redo
Return:
* |
public icons2(icons: *): * source
secondary icons (e.g. disabled states)
Params:
Name | Type | Attribute | Description |
icons | * |
Return:
* |
public noUndo(): * source
this property should not be treated as something that should be kept track off in the undo stack
Return:
* |
public off(type: *, cb: *) source
Params:
Name | Type | Attribute | Description |
type | * | ||
cb | * |
public on(type: *, cb: *): * source
db will be executed with underlying data object that contains this path in 'this.dataref'
main event is 'change'
Params:
Name | Type | Attribute | Description |
type | * | ||
cb | * |
Return:
* |
public setProp(prop: *) source
Params:
Name | Type | Attribute | Description |
prop | * |
public uiNameGetter(func: *): * source
like other callbacks (until I refactor it), func will be called with a mysterious object that stores the following properties:
this.dataref : owning object reference this.datactx : ctx this.datapath : datapath
Params:
Name | Type | Attribute | Description |
func | * |
Return:
* |