BaseObject
BaseObject
Overview needed
Constructor
protected BaseObject
new BaseObject(initialProps)
*Description needed*Parameters
-
initialProps: Record
– Description needed
Properties
No publicly accessible properties on BaseObject
protected props: Record
Description needed
Methods
public hasProp
hasProp(key) => false | true
Description needed
Parameters
-
key: string
– Description needed
Returns
-
false | true
– Description needed
public setProp
setProp(key, val) => void
Description needed
Parameters
key: string
– Description neededval: any
– Description needed
public getProp
getProp(key) => any
Description needed
Parameters
-
key: string
– Description needed
Returns
-
any
– Description needed
public getPropInfo
getPropInfo(_key) => BasePropInfo & { type: "boolean"; } | BasePropInfo & { type: "button"; getText: (states: any[]) => string; getNewState: (states: any[]) => any; } | BasePropInfo & UnitInfo | BasePropInfo & { type: "string"; constraint?: RegExp; } | BasePropInfo & { type: "color"; } | BasePropInfo & { type: "string[]"; options: [string, string][]; } | BasePropInfo & { type: "number[]"; options: [string, number][]; } | BasePropInfo & { type: "veci" | "vecf"; min?: Vector; max?: Vector; step?: Vector; }
Description needed
Parameters
-
_key: string
– Description needed
Returns
-
BasePropInfo & { type: "boolean"; } | BasePropInfo & { type: "button"; getText: (states: any[]) => string; getNewState: (states: any[]) => any; } | BasePropInfo & UnitInfo | BasePropInfo & { type: "string"; constraint?: RegExp; } | BasePropInfo & { type: "color"; } | BasePropInfo & { type: "string[]"; options: [string, string][]; } | BasePropInfo & { type: "number[]"; options: [string, number][]; } | BasePropInfo & { type: "veci" | "vecf"; min?: Vector; max?: Vector; step?: Vector; }
– Description needed
Static Methods
No static methods for BaseObject