Skip to main content

BaseObject

BaseObject

Overview needed


Constructor

protected BaseObject

new BaseObject(initialProps)

*Description needed*

Parameters

  •  initialProps: RecordDescription needed

Properties

No publicly accessible properties on BaseObject

protected props: Record

Description needed


Methods

public hasProp

hasProp(key) => false | true

Description needed

Parameters

  •  key: stringDescription needed

Returns

  •   false | trueDescription needed

public setProp

setProp(key, val) => void

Description needed

Parameters

  •  key: stringDescription needed

  •  val: anyDescription needed

public getProp

getProp(key) => any

Description needed

Parameters

  •  key: stringDescription needed

Returns

  •   anyDescription 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: stringDescription needed

Returns

public getProps

getProps() => Record

Description needed

Returns

  •   RecordDescription needed

Static Methods

No static methods for BaseObject