Skip to content

KBE3D / KBCore / Cesium / InfoBoxViewModel

类: InfoBoxViewModel

The view model for InfoBox.

属性

maxHeight

maxHeight: number

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


enableCamera

enableCamera: boolean

Gets or sets whether the camera tracking icon is enabled.


isCameraTracking

isCameraTracking: boolean

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


showInfo

showInfo: boolean

Gets or sets the visibility of the info box.


titleText

titleText: string

Gets or sets the title text in the info box.


description

description: string

Gets or sets the description HTML for the info box.


cameraIconPath

cameraIconPath: string

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


cameraClicked

cameraClicked: Event

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


closeClicked

closeClicked: Event

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

方法

maxHeightOffset()

maxHeightOffset(offset: number): string

Gets the maximum height of sections within the info box, minus an offset, in CSS-ready form.

参数

offset

number

The offset in pixels.

返回

string

构造函数

构造函数

new InfoBoxViewModel(): InfoBoxViewModel

返回

InfoBoxViewModel

KBE3D @3.0.0 Copyright © 2024-present KBE3D