MRDivEntity

MRDivEntity ⇐ MREntity

The MREntity that is used to solely describe UI Elements. Defaults as the html mr-div representation. mr-div

Kind: global class
Extends: MREntity

mrDivEntity.MRDivEntity

Kind: instance class of MRDivEntity

new exports.MRDivEntity()

Constructor sets up the defaults for the background mesh, scaling, and world relevant elements.

mrDivEntity.height() ⇒ number

Calculates the height of the Entity based on the viewing-client’s shape. If in Mixed Reality, adjusts the value appropriately.

Kind: instance method of MRDivEntity
Returns: number - - the resolved height

mrDivEntity.width() ⇒ number

Calculates the width of the Entity based on the viewing-client’s shape. If in Mixed Reality, adjusts the value appropriately.

Kind: instance method of MRDivEntity
Returns: number - - the resolved width

mrDivEntity.borderRadii() ⇒ number

Calculates the border radius of the img based on the img tag in the shadow root

Kind: instance method of MRDivEntity
Returns: number - - the resolved height

mrDivEntity.add(entity)

Adding an entity as a sub-object of this panel (for example an mr-model, button, etc).

Kind: instance method of MRDivEntity

Param Type Description
entity MREntity the entity to be added.

mrDivEntity.removeEntity(entity)

Removing an entity as a sub-object of this panel (for example an mr-model, button, etc).

Kind: instance method of MRDivEntity

Param Type Description
entity MREntity the entity to be removed added.

mrDivEntity.connected()

(async) connects the background geometry of this item to an actual UIPlane geometry.

Kind: instance method of MRDivEntity