Class: InfoBoxViewModel

InfoBoxViewModel

new InfoBoxViewModel()

The view model for InfoBox.
Source:

Members

cameraClicked :Event

Gets an Event that is fired when the user clicks the camera icon.
Type:
Source:

cameraIconPath :String

Gets the SVG path of the camera icon, which can change to be "crossed out" or not.
Type:
  • String
Source:

closeClicked :Event

Gets an Event that is fired when the user closes the info box.
Type:
Source:

description :String

Gets or sets the description HTML for the info box.
Type:
  • String
Source:

enableCamera :Boolean

Gets or sets whether the camera tracking icon is enabled.
Type:
  • Boolean
Source:

isCameraTracking :Boolean

Gets or sets the status of current camera tracking of the selected object.
Type:
  • Boolean
Source:

maxHeight :Number

Gets or sets the maximum height of the info box in pixels. This property is observable.
Type:
  • Number
Source:

showInfo :Boolean

Gets or sets the visibility of the info box.
Type:
  • Boolean
Source:

titleText :String

Gets or sets the title text in the info box.
Type:
  • String
Source:

Methods

maxHeightOffset(offset) → {String}

Gets the maximum height of sections within the info box, minus an offset, in CSS-ready form.
Parameters:
Name Type Description
offset Number The offset in pixels.
Source:
Returns:
Type
String