MRDivEntity
MREntity
MRDivEntity ⇐ 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 ⇐
MREntity
- .MRDivEntity
- .height() ⇒
number
- .width() ⇒
number
- .borderRadii() ⇒
number
- .add(entity)
- .removeEntity(entity)
- .connected()
mrDivEntity.MRDivEntity
Kind: instance class of MRDivEntity
new exports.MRDivEntity()
Constructor sets up the defaults for the background mesh, scaling, and world relevant elements.
number
mrDivEntity.height() ⇒ 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
number
mrDivEntity.width() ⇒ 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
number
mrDivEntity.borderRadii() ⇒ 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