Skip to main content

Interface: IWidget<T, TE>

Core-API.IWidget

Type parameters

NameType
Tany
TEextends IObject3DEventMap = IObject3DEventMap

Hierarchy

Implemented by

Methods

attach

attach(object): IWidget<T, TE>

Parameters

NameType
objectany

Returns

IWidget<T, TE>


detach

detach(): IWidget<T, TE>

Returns

IWidget<T, TE>


update

Optional update(): void

Returns

void


setMaterial

Optional setMaterial(material): IMaterial<any, IMaterialEventMap>[]

Parameters

NameType
materialundefined | IMaterial<any, IMaterialEventMap> | IMaterial<any, IMaterialEventMap>[]

Returns

IMaterial<any, IMaterialEventMap>[]

Inherited from

IModel.setMaterial


setGeometry

Optional setGeometry(geometry, force?): any

returns the old geometry.

Parameters

NameType
geometryany
force?boolean

Returns

any

Inherited from

IModel.setGeometry


setDirty

Optional setDirty(options?): void

Parameters

NameType
options?AnyOptions

Returns

void

Inherited from

IModel.setDirty

Properties

modelObject

modelObject: any

Internal three.js Object3D instance (like Mesh, Group, etc)

Overrides

IModel.modelObject


object

object: any


material

Optional material: any

Use setMaterial to change the material Get one or more materials applied to an object

Overrides

IModel.material


name

name: string

Inherited from

IModel.name


uuid

Readonly uuid: string

Inherited from

IModel.uuid


visible

visible: boolean

Inherited from

IModel.visible


assetType

assetType: "model" | "widget" | "light"

Inherited from

IModel.assetType


geometry

Optional Readonly geometry: any

Inherited from

IModel.geometry


userData

userData: any

Inherited from

IModel.userData


uiConfig

Optional uiConfig: UiObjectConfig<any, string>

Inherited from

IModel.uiConfig