InfoBoxViewModel

InfoBoxViewModel

Members

:String

Gets the SVG path of the camera icon, which can change to be "crossed out" or not.

:String

Gets or sets the un-sanitized description HTML for the info box.

:String

Gets the sanitized description HTML for the info box.

:Boolean

Gets or sets whether the camera tracking icon is enabled.

:Boolean

Gets or sets the status of current camera tracking of the selected object.

:Number

Gets or sets the maximum height of the info box in pixels. This property is observable.

:Boolean

Gets or sets the visibility of the info box.

:String

Gets or sets the title text in the info box.

<static>

Gets or sets the default HTML sanitization function to use for all instances. By default, the Google Caja HTML/CSS sanitizer is loaded in a worker. A specific instance can override this property by setting its sanitizer property. This property returns a function which takes a unsanitized HTML String and returns a sanitized String, or a Promise which resolves to the sanitized version.

Methods

<static>

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.
Returns: