Skip to content

KBE3D / KBCore / Cesium / Label / ConstructorOptions

接口: ConstructorOptions

Initialization options for the Label constructor

属性

position

position: Cartesian3

The cartesian position of the label.


id?

optional id: any

A user-defined object to return when the label is picked with Scene#pick.


show?

optional show: boolean

Determines if this label will be shown.


text?

optional text: string

A string specifying the text of the label.


font?

optional font: string

A string specifying the font used to draw this label. Fonts are specified using the same syntax as the CSS 'font' property.


style?

optional style: LabelStyle

A LabelStyle specifying the style of the label.


scale?

optional scale: number

A number specifying the uniform scale that is multiplied with the label size.


showBackground?

optional showBackground: boolean

Determines if a background behind this label will be shown.


backgroundColor?

optional backgroundColor: Color

A Color specifying the background color of the label.


backgroundPadding?

optional backgroundPadding: Cartesian2

A Cartesian2 Specifying the horizontal and vertical background padding in pixels.


pixelOffset?

optional pixelOffset: Cartesian2

A Cartesian2 specifying the pixel offset in screen space from the origin of this label.


eyeOffset?

optional eyeOffset: Cartesian3

A Cartesian3 specifying the 3D Cartesian offset applied to this label in eye coordinates.


horizontalOrigin?

optional horizontalOrigin: HorizontalOrigin

A HorizontalOrigin specifying the horizontal origin of this label.


verticalOrigin?

optional verticalOrigin: VerticalOrigin

A VerticalOrigin specifying the vertical origin of this label.


heightReference?

optional heightReference: HeightReference

A HeightReference specifying the height reference of this label.


fillColor?

optional fillColor: Color

A Color specifying the fill color of the label.


outlineColor?

optional outlineColor: Color

A Color specifying the outline color of the label.


outlineWidth?

optional outlineWidth: number

A number specifying the outline width of the label.


translucencyByDistance?

optional translucencyByDistance: NearFarScalar

A NearFarScalar specifying near and far translucency properties of the label based on the label's distance from the camera.


pixelOffsetScaleByDistance?

optional pixelOffsetScaleByDistance: NearFarScalar

A NearFarScalar specifying near and far pixel offset scaling properties of the label based on the label's distance from the camera.


scaleByDistance?

optional scaleByDistance: NearFarScalar

A NearFarScalar specifying near and far scaling properties of the label based on the label's distance from the camera.


distanceDisplayCondition?

optional distanceDisplayCondition: DistanceDisplayCondition

A DistanceDisplayCondition specifying at what distance from the camera that this label will be displayed.


disableDepthTestDistance?

optional disableDepthTestDistance: number

The distance from the camera, beyond which, depth testing is disabled—to, for example, prevent clipping against terrain.

KBE3D @3.0.0 Copyright © 2024-present KBE3D